Skip to content

Commit

Permalink
Deploy Application using Templates
Browse files Browse the repository at this point in the history
  • Loading branch information
gajanan-more committed Feb 22, 2021
1 parent bcf4515 commit 6311e15
Show file tree
Hide file tree
Showing 2 changed files with 228 additions and 174 deletions.
Original file line number Diff line number Diff line change
@@ -1,176 +1,176 @@
@add-flow
Feature: Create Application from git form
As a user, I want to create the application, component or service from Add options

Background:
Given user is at developer perspective
And user is at Add page
And user has created or selected namespace "aut-addflow-git"


@smoke
Scenario Outline: Add new git workload with new application for resoruce type "<resource_type>" : A-04-TC02, A-04-TC13
Given user is at Import from git page
When user enters Git Repo url as "https://github.com/sclorg/dancer-ex.git"
And user enters Application name as "dancer-ex-git-app"
And user enters Name as "<name>"
And user selects resource type as "<resource_type>"
And user clicks Create button on Add page
Then user will be redirected to Topology page
And user is able to see workload "<name>" in topology page

Examples:
| name | resource_type |
| dancer-ex-git | Deployment |
| dancer-ex-git-1 | Deployment Config |


@regression
Scenario: Add new git workload to the existing application : A-04-TC03
Given user has created workload "nodejs-ex-git" with resource type "Deployment"
And user is at Add page
And user is at Import from git page
When user enters Git Repo url as "https://github.com/sclorg/dancer-ex.git"
And user enters Application name as "nodejs-ex-git-app"
And user enters Name as "dancer-ex.git"
And user selects resource type as "Deployment Config"
And user clicks Create button on Add page
Then user will be redirected to Topology page
And user can see the created workload "dancer-ex.git" is linked to existing application "nodejs-ex-git-app"


@regression
Scenario: Cancel the git workload creation : A-04-TC04
Given user is at Import from git page
When user enters Git Repo url as "https://github.com/sclorg/dancer-ex.git"
And user clicks Cancel button on Add page
Then user will be redirected to Add page


@regression
Scenario: Create workload without application route : A-04-TC05
Given user is at Import from git page
When user enters Git Repo url as "https://github.com/sclorg/dancer-ex.git"
And user enters Application name as "app-no-route"
And user enters Name as "name-no-route"
And user unselects the advanced option Create a route to the application
And user clicks Create button on Add page
Then user will be redirected to Topology page
And public url is not created for node "name-no-route" in the workload sidebar


@regression
Scenario: Create a git workload with advanced option "Routing" : A-04-TC06
Given user is at Import from git page
When user enters Git Repo url as "https://github.com/sclorg/dancer-ex.git"
And user enters name as "nodejs-ex-git" in General section
And user clicks "Routing" link in Advanced Options section
And user enters Hostname as "home"
And user enters Path as "/home"
And user selects default Target Port
And user clicks Create button on Add page
Then user will be redirected to Topology page
And the route of application "nodejs-ex-git" contains "home" in the Routes section of the workload sidebar


@regression
Scenario: Creaete the workload by unselecting options in "Build Configuration" section: A-04-TC07
Given user is at Import from git page
When user enters Git Repo url as "https://github.com/sclorg/dancer-ex.git"
And user enters name as "nodejs-ex-git" in General section
And user clicks "Build Configuration" link in Advanced Options section
And user unselects Configure a webhook build trigger checkbox in build configuration section
And user unselects Automatically build a new image when the builder image changes checkbox in build configuration section
And user unselects Launch the first build when the build configuration is created checkbox in build configuration section
And user enters Name as "home" in Environment Variables section
And user enters Value as "value" in Environment Variables section
And user clicks Create button on Add page
Then user will be redirected to Topology page
And build does not get started for "nodejs-ex-git"


@regression
Scenario: Create a git workload with advanced option "Deployment" : A-04-TC08
Given user is at Import from git page
When user enters Git Repo url as "https://github.com/sclorg/dancer-ex.git"
And user enters name as "nodejs-ex-5-git" in General section
And user clicks "Deployment" link in Advanced Options section
And user verify the Auto deploy when new image is available checkbox is selected
And user enters Name as "home" in Environment Variables Runtime only section
And user enters Value as "value" in Environment Variables Runtime only section
And user clicks Create button on Add page
Then user will be redirected to Topology page


@regression
Scenario: Create a git workload with advanced option "Resource Limits" : A-04-TC09
Given user is at Import from git page
When user enters Git Repo url as "https://github.com/sclorg/dancer-ex.git"
And user enters name as "nodejs-ex-git" in General section
And user clicks "Resource Limits" link in Advanced Options section
And user enters CPU Request as "10" in CPU section
And user enters CPU Limits as "12" in CPU section
And user enters Memory Request as "200" in Memory section
And user enters Memory Limit as "300" in Memory section
And user clicks Create button on Add page
Then user will be redirected to Topology page


@regression
Scenario: Create a git workload with advanced option "Scaling" : A-04-TC10
Given user is at Import from git page
When user enters Git Repo url as "https://github.com/sclorg/dancer-ex.git"
And user enters name as "nodejs-ex-git" in General section
And user clicks "Scaling" link in Advanced Options section
And user enters number of replicas as "5" in Replicas section
And user clicks Create button on Add page
Then user will be redirected to Topology page


@regression
Scenario: Create a git workload with advanced option "Labels" : A-04-TC11
Given user is at Import from git page
When user enters Git Repo url as "https://github.com/sclorg/dancer-ex.git"
And user enters name as "nodejs-ex-git" in General section
And user clicks "Labels" link in Advanced Options section
And user enters label as "app=frontend"
And user clicks Create button on Add page
Then user will be redirected to Topology page
And verify the label "app=frontend" in side bar of application node "nodejs-ex-git"


@regression
Scenario: Create a git workload with advanced option "Health Checks" : A-04-TC12
Given user is at Import from git page
When user enters Git Repo url as "https://github.com/sclorg/dancer-ex.git"
And user enters name as "nodejs-ex-git" in General section
And user clicks "Health Checks" link in Advanced Options section
And user fills the Readiness Probe details
And user fills the Liveness Probe details
And user fills the Startup Probe details
And user clicks Create button on Add page
Then user will be redirected to Topology page


@addFlow-git
Scenario Outline: Builder iamge detected for git url "<git_url>" : A-04-TC01
Given user is at Import from git page
When user enters Git Repo url as "<git_url>"
Then git url gets Validated
And builder image is detected
And builder image version drop down is displayed
And Application name displays as "<app_name>"
And Name displays as "<name>"

Examples:
| git_url | app_name | name |
| https://github.com/sclorg/dancer-ex.git | dancer-ex-git-app | dancer-ex-git |
| https://github.com/sclorg/cakephp-ex.git | cakephp-ex-git-app | cakephp-ex-git |
| https://github.com/sclorg/nginx-ex.git | nginx-ex-git-app | nginx-ex-git |
| https://github.com/sclorg/httpd-ex.git | httpd-ex-git-app | httpd-ex-git |
| https://github.com/redhat-developer/s2i-dotnetcore-ex.git | s2i-dotnetcore-ex-git-app | s2i-dotnetcore-ex-git |
| https://github.com/sclorg/golang-ex.git | golang-ex-git-app | golang-ex-git |
| https://github.com/sclorg/ruby-ex.git | ruby-ex-git-app | ruby-ex-git |
| https://github.com/sclorg/django-ex.git | django-ex-git-app | django-ex-git |
| https://github.com/jboss-openshift/openshift-quickstarts | openshift-quickstarts-app | openshift-quickstarts |
| https://github.com/sclorg/nodejs-ex.git | nodejs-ex-git-app | nodejs-ex-git |
As a user, I want to create the application, component or service from Add options

Background:
Given user is at developer perspective
And user is at Add page
And user has created or selected namespace "aut-addflow-git"


@smoke
Scenario Outline: Add new git workload with new application for resoruce type "<resource_type>" : A-04-TC02, A-04-TC13
Given user is at Import from git page
When user enters Git Repo url as "https://github.com/sclorg/dancer-ex.git"
And user enters Application name as "dancer-ex-git-app"
And user enters Name as "<name>"
And user selects resource type as "<resource_type>"
And user clicks Create button on Add page
Then user will be redirected to Topology page
And user is able to see workload "<name>" in topology page

Examples:
| name | resource_type |
| dancer-ex-git | Deployment |
| dancer-ex-git-1 | Deployment Config |


@regression
Scenario: Add new git workload to the existing application : A-04-TC03
Given user has created workload "nodejs-ex-git" with resource type "Deployment"
And user is at Add page
And user is at Import from git page
When user enters Git Repo url as "https://github.com/sclorg/dancer-ex.git"
And user enters Application name as "nodejs-ex-git-app"
And user enters Name as "dancer-ex.git"
And user selects resource type as "Deployment Config"
And user clicks Create button on Add page
Then user will be redirected to Topology page
And user can see the created workload "dancer-ex.git" is linked to existing application "nodejs-ex-git-app"


@regression
Scenario: Cancel the git workload creation : A-04-TC04
Given user is at Import from git page
When user enters Git Repo url as "https://github.com/sclorg/dancer-ex.git"
And user clicks Cancel button on Add page
Then user will be redirected to Add page


@regression
Scenario: Create workload without application route : A-04-TC05
Given user is at Import from git page
When user enters Git Repo url as "https://github.com/sclorg/dancer-ex.git"
And user enters Application name as "app-no-route"
And user enters Name as "name-no-route"
And user unselects the advanced option Create a route to the application
And user clicks Create button on Add page
Then user will be redirected to Topology page
And public url is not created for node "name-no-route" in the workload sidebar


@regression
Scenario: Create a git workload with advanced option "Routing" : A-04-TC06
Given user is at Import from git page
When user enters Git Repo url as "https://github.com/sclorg/dancer-ex.git"
And user enters name as "nodejs-ex-git" in General section
And user clicks "Routing" link in Advanced Options section
And user enters Hostname as "home"
And user enters Path as "/home"
And user selects default Target Port
And user clicks Create button on Add page
Then user will be redirected to Topology page
And the route of application "nodejs-ex-git" contains "home" in the Routes section of the workload sidebar


@regression
Scenario: Create the workload by unselecting options in "Build Configuration" section: A-04-TC07
Given user is at Import from git page
When user enters Git Repo url as "https://github.com/sclorg/dancer-ex.git"
And user enters name as "nodejs-ex-git" in General section
And user clicks "Build Configuration" link in Advanced Options section
And user unselects Configure a webhook build trigger checkbox in build configuration section
And user unselects Automatically build a new image when the builder image changes checkbox in build configuration section
And user unselects Launch the first build when the build configuration is created checkbox in build configuration section
And user enters Name as "home" in Environment Variables section
And user enters Value as "value" in Environment Variables section
And user clicks Create button on Add page
Then user will be redirected to Topology page
And build does not get started for "nodejs-ex-git"


@regression
Scenario: Create a git workload with advanced option "Deployment" : A-04-TC08
Given user is at Import from git page
When user enters Git Repo url as "https://github.com/sclorg/dancer-ex.git"
And user enters name as "nodejs-ex-5-git" in General section
And user clicks "Deployment" link in Advanced Options section
And user verify the Auto deploy when new image is available checkbox is selected
And user enters Name as "home" in Environment Variables Runtime only section
And user enters Value as "value" in Environment Variables Runtime only section
And user clicks Create button on Add page
Then user will be redirected to Topology page


@regression
Scenario: Create a git workload with advanced option "Resource Limits" : A-04-TC09
Given user is at Import from git page
When user enters Git Repo url as "https://github.com/sclorg/dancer-ex.git"
And user enters name as "nodejs-ex-git" in General section
And user clicks "Resource Limits" link in Advanced Options section
And user enters CPU Request as "10" in CPU section
And user enters CPU Limits as "12" in CPU section
And user enters Memory Request as "200" in Memory section
And user enters Memory Limit as "300" in Memory section
And user clicks Create button on Add page
Then user will be redirected to Topology page


@regression
Scenario: Create a git workload with advanced option "Scaling" : A-04-TC10
Given user is at Import from git page
When user enters Git Repo url as "https://github.com/sclorg/dancer-ex.git"
And user enters name as "nodejs-ex-git" in General section
And user clicks "Scaling" link in Advanced Options section
And user enters number of replicas as "5" in Replicas section
And user clicks Create button on Add page
Then user will be redirected to Topology page


@regression
Scenario: Create a git workload with advanced option "Labels" : A-04-TC11
Given user is at Import from git page
When user enters Git Repo url as "https://github.com/sclorg/dancer-ex.git"
And user enters name as "nodejs-ex-git" in General section
And user clicks "Labels" link in Advanced Options section
And user enters label as "app=frontend"
And user clicks Create button on Add page
Then user will be redirected to Topology page
And verify the label "app=frontend" in side bar of application node "nodejs-ex-git"


@regression
Scenario: Create a git workload with advanced option "Health Checks" : A-04-TC12
Given user is at Import from git page
When user enters Git Repo url as "https://github.com/sclorg/dancer-ex.git"
And user enters name as "nodejs-ex-git" in General section
And user clicks "Health Checks" link in Advanced Options section
And user fills the Readiness Probe details
And user fills the Liveness Probe details
And user fills the Startup Probe details
And user clicks Create button on Add page
Then user will be redirected to Topology page


@addFlow-git
Scenario Outline: Builder iamge detected for git url "<git_url>" : A-04-TC01
Given user is at Import from git page
When user enters Git Repo url as "<git_url>"
Then git url gets Validated
And builder image is detected
And builder image version drop down is displayed
And Application name displays as "<app_name>"
And Name displays as "<name>"

Examples:
| git_url | app_name | name |
| https://github.com/sclorg/dancer-ex.git | dancer-ex-git-app | dancer-ex-git |
| https://github.com/sclorg/cakephp-ex.git | cakephp-ex-git-app | cakephp-ex-git |
| https://github.com/sclorg/nginx-ex.git | nginx-ex-git-app | nginx-ex-git |
| https://github.com/sclorg/httpd-ex.git | httpd-ex-git-app | httpd-ex-git |
| https://github.com/redhat-developer/s2i-dotnetcore-ex.git | s2i-dotnetcore-ex-git-app | s2i-dotnetcore-ex-git |
| https://github.com/sclorg/golang-ex.git | golang-ex-git-app | golang-ex-git |
| https://github.com/sclorg/ruby-ex.git | ruby-ex-git-app | ruby-ex-git |
| https://github.com/sclorg/django-ex.git | django-ex-git-app | django-ex-git |
| https://github.com/jboss-openshift/openshift-quickstarts | openshift-quickstarts-app | openshift-quickstarts |
| https://github.com/sclorg/nodejs-ex.git | nodejs-ex-git-app | nodejs-ex-git |
Loading

0 comments on commit 6311e15

Please sign in to comment.