As a [developer]
I need [to ensure every merged pull request triggers our CD pipeline, automatically deploying our service to a Kubernetes cluster and running BDD tests to verify the deployment]
So that [our deployment process can be automated]
Details and Assumptions
Manually deploy PostgreSQL to your cluster
Create a route to your microservice so that it can be accessed from outside the cluster.
Create a new Task to run Behave against the deployment in OpenShift. It will need an argument called BASE_URL which also needs to be an environment variable that contains the route to your microservice.
Nominate one person on your team to own the OpenShift cluster that will be used to create a webhook for the team deployment.
Create a WebHook on your class project repo to call your pipeline whenever a push is made to the master branch. You will need to request that the Maintainer of your repo be promoted to Admin temporarily so that this hook can be established.
Acceptance Criteria
Given [all test cases pass]
When [a new Pull Request is merged to the master branch on GitHub]
Then [it will be automatically trigger this pipeline]
As a [developer] I need [to ensure every merged pull request triggers our CD pipeline, automatically deploying our service to a Kubernetes cluster and running BDD tests to verify the deployment] So that [our deployment process can be automated]
Details and Assumptions
Acceptance Criteria
Given [all test cases pass] When [a new Pull Request is merged to the master branch on GitHub] Then [it will be automatically trigger this pipeline]