From 05e96a0232ad0c7184c0156de7acd0b311925d5b Mon Sep 17 00:00:00 2001 From: karthikmsqa Date: Tue, 21 Jul 2020 16:28:57 -0700 Subject: [PATCH] added backend tags --- .../jagefilingapi/qa/cucumber/Options/RunCucumberTest.java | 1 + .../java/features/backendfeatures/createCsoAccount.feature | 3 +++ 2 files changed, 4 insertions(+) diff --git a/tests/src/test/java/ca/bc/gov/open/jagefilingapi/qa/cucumber/Options/RunCucumberTest.java b/tests/src/test/java/ca/bc/gov/open/jagefilingapi/qa/cucumber/Options/RunCucumberTest.java index 159588f1aa..eb47905b66 100644 --- a/tests/src/test/java/ca/bc/gov/open/jagefilingapi/qa/cucumber/Options/RunCucumberTest.java +++ b/tests/src/test/java/ca/bc/gov/open/jagefilingapi/qa/cucumber/Options/RunCucumberTest.java @@ -9,6 +9,7 @@ features = {"src/test/java/features"}, glue ={"stepDefinitions"}, monochrome = true, + tags = "@backend", plugin = { "pretty", "html:target/cucumber-reports/cucumber-pretty", diff --git a/tests/src/test/java/features/backendfeatures/createCsoAccount.feature b/tests/src/test/java/features/backendfeatures/createCsoAccount.feature index e77115e5b7..3498716b27 100644 --- a/tests/src/test/java/features/backendfeatures/createCsoAccount.feature +++ b/tests/src/test/java/features/backendfeatures/createCsoAccount.feature @@ -1,16 +1,19 @@ Feature: New CSO accounts can be created if a BCeID profile is not associated with a CSO account @cso + @backend Scenario: Verify a CSO account can be created successfully for requests made with valid request body Given POST http request is made to "CREATE_CSO_ACCOUNT_API" with a valid request body When status is 201 and content type is verified Then verify response returns names, email and accounts with type and identifiers @cso + @backend Scenario: Verify a CSO account cannot be created for requests made with incorrect account type Given POST http request is made to "CREATE_CSO_ACCOUNT_API" with incorrect account type When status is 400 and content type is verified Then verify response body has error, status and an empty message @cso + @backend Scenario: Verify a CSO account cannot be created for requests made with incorrect path Given POST http request is made to "INCORRECT_CREATE_CSO_ACCOUNT_API" with incorrect path value When status is 404 and content type is verified