Skip to content
This repository has been archived by the owner on Nov 11, 2024. It is now read-only.

Commit

Permalink
Create an application/service in the new environment and push configu…
Browse files Browse the repository at this point in the history
…ration to GitOps repository scenarios (#265)
  • Loading branch information
varshab1210 authored Aug 24, 2021
1 parent fc54eb5 commit 4c6863c
Showing 1 changed file with 27 additions and 1 deletion.
28 changes: 27 additions & 1 deletion test/e2e/features/basic.feature
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,35 @@ Feature: Basic test
Then executing "git push -u origin main" succeeds
Then executing "oc apply -k config/argocd/" succeeds
Then login argocd API server
And Wait for "120" seconds
And Wait for "180" seconds
Then application "argo-app" should be in "Synced" state
And application "dev-app-taxi" should be in "Synced" state
And application "dev-env" should be in "Synced" state
And application "stage-env" should be in "Synced" state
And application "cicd-app" should be in "Synced" state
Then executing "oc delete -k config/argocd"
Then executing "cd .." succeeds

Scenario: Create an Application/Service in the new Environment
Given gitops repository is created
When executing "kam bootstrap --service-repo-url $SERVICE_REPO_URL --gitops-repo-url $GITOPS_REPO_URL --image-repo $IMAGE_REPO --dockercfgjson $DOCKERCONFIGJSON_PATH --git-host-access-token $GIT_ACCESS_TOKEN --output servicescenario --overwrite" succeeds
Then executing "cd servicescenario" succeeds
Then executing "git init ." succeeds
Then executing "git add ." succeeds
Then executing "git commit -m 'Initial commit.'" succeeds
Then executing "git remote add origin $GITOPS_REPO_URL" succeeds
Then executing "git branch -M main" succeeds
Then executing "git push -u origin main" succeeds
Then executing "oc apply -k config/argocd/" succeeds
Then login argocd API server
And Wait for "180" seconds
Then application "argo-app" should be in "Synced" state
And application "dev-app-taxi" should be in "Synced" state
And application "dev-env" should be in "Synced" state
And application "stage-env" should be in "Synced" state
And application "cicd-app" should be in "Synced" state
Then executing "cd .."
When executing "kam environment add --env-name new-env --pipelines-folder servicescenario" succeeds
Then stderr should be empty
When executing "kam service add --env-name new-env --app-name app-bus --service-name bus --git-repo-url https://github.com/kam-bot/bus.git --pipelines-folder servicescenario" succeeds
Then stderr should be empty

0 comments on commit 4c6863c

Please sign in to comment.