Git Product home page Git Product logo

bitnami-ghost-smoke-tests's Introduction

Bitnami Ghost Smoke Tests

Deployment script and smoke test suite for ensuring the Bitnami Ghost application is working properly.

Requirements

  • Docker Engine 20.10.8+
  • Docker Compose 1.29.2+
  • Helm 3.7.1+
  • Kubernetes & kubectl 1.21.3+
  • Java 11+
  • Maven 3.6.1+
  • Google Chrome 95+

Run the smoke tests

As usual, first step is cloning the repo :)

git clone https://github.com/eduriol/bitnami-ghost-smoke-tests.git
cd  bitnami-ghost-smoke-tests

Docker Compose tests

To test the deployment of Bitnami Ghost using Docker Compose, you need to run the test_compose.sh script, followed by the name of the compose yaml file you want to test. This compose yaml file contains a specific configuration for the Bitnami Ghost application, so the same script can be used to test different configurations:

./test_compose.sh <docker compose file name> 

Examples:

./test_compose.sh compose-scenario1.yml
./test_compose.sh compose-scenario2.yml 

Two compose configuration files have been attached to the repository as an example. These are the differences with respect to the original docker-compose.yml file:

compose-scenario1.yml: User and Site configuration changes. The followings config parameters have been changed:

  • MARIADB_ROOT_PASSWORD=vmw@r3
  • MARIADB_PASSWORD=vmw@r3
  • GHOST_USERNAME=vmware
  • GHOST_PASSWORD=vmw@r3p455w0rd
  • GHOST_EMAIL=[email protected]
  • GHOST_DATABASE_PASSWORD=vmw@r3
  • GHOST_BLOG_TITLE=VMware Blog
  • GHOST_PORT_NUMBER=5454
  • GHOST_EXTERNAL_HTTP_PORT_NUMBER=8080

compose-scenario2.yml: Database connection configuration changes. The followings config parameters have been changed:

  • MARIADB_USER=vmw_ghost
  • MARIADB_DATABASE=vmware_ghost
  • MARIADB_PASSWORD=dbpassword
  • MARIADB_ROOT_PASSWORD=dbpassword
  • GHOST_DATABASE_USER=vmw_ghost
  • GHOST_DATABASE_NAME=vmware_ghost
  • GHOST_DATABASE_PASSWORD=dbpassword

Helm Chart tests

To test the deployment of Bitnami Ghost using Helm Chart, you need to have a Kubernetes cluster and kubectl configurated to use that cluster. After that, run the test_helm.sh script. The script already contains a configuration by default so you only need to run:

./test_helm.sh

Reports

The report showing the result of the smoke tests execution can be seen in the standard output.

Contribution

If you'd like to contribute to the project, please send a Pull Request or contact eduriol [at] gmail.com.

bitnami-ghost-smoke-tests's People

Contributors

eduriol avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.