Logo: Relish

  1. Sign in

Project: Living-documentation-demo

Genealogy - APS Definitions/Delete

   A Robot should be able to interact with Delete service of APS Definitions namespace using XYZ API
Scenarios
  • @positive
  • @acceptance
Create a new APS
Given
XYZ API domain, APS definitions namespace and username "[email protected]" with password "aut"
When
Robot requests service name "create"
And
uses XML-file "CreateNewAPS.xml"
And
uses HTTP method "POST"
Then
Robot should see response status "success"
  • @positive
  • @acceptance
Validate the previous scenario that "PREFIX_APS" was created
Given
XYZ API domain, APS definitions namespace and username "[email protected]" with password "aut"
When
Robot requests service name "find-by-name"
And
with "name" parameter "PREFIX_APS"
And
uses HTTP method "GET"
Then
Robot should see response status "success"
And
returned node "aps-definition" should contain following attributes:
name
PREFIX_APS
And
returned node "aps-definition" should contain following attributes:
tlp-name
QC1 TLP
  • @negative
Provide incorrect Service name (i.e. "deletes" instead of "delete")
Given
XYZ API domain, APS definitions namespace and username "[email protected]" with password "aut"
When
Robot requests service name "deletes"
And
with "name" parameter "PREFIX_APS"
And
uses HTTP method "POST"
Then
Robot should see response status "failure"
And
Robot should see error type "NoSuchService"
And
Robot should see msg "No service exists with name: deletes"
  • @negative
Provide incomplete request where required parameter name= is missing
Given
XYZ API domain, APS definitions namespace and username "[email protected]" with password "aut"
When
Robot requests service name "delete"
And
uses HTTP method "POST"
Then
Robot should see response status "failure"
And
Robot should see error type "RequiredParameter"
And
Robot should see msg "Missing required parameter [APS Name]"
  • @negative
Provide incomplete request where value for required parameter name= is missing, blank
Given
XYZ API domain, APS definitions namespace and username "[email protected]" with password "aut"
When
Robot requests service name "delete"
And
with "name" parameter ""
And
uses HTTP method "POST"
Then
Robot should see response status "failure"
And
Robot should see error type "RequiredParameter"
And
Robot should see msg "Missing required parameter [APS Name]"
  • @negative
Provide incorrect parameter name(i.e. "names" instead of "name")
Given
XYZ API domain, APS definitions namespace and username "[email protected]" with password "aut"
When
Robot requests service name "delete"
And
with "names" parameter "PREFIX_APS"
And
uses HTTP method "POST"
Then
Robot should see response status "failure"
And
Robot should see error type "RequiredParameter"
And
Robot should see msg "Missing required parameter [APS Name]"
  • @negative
Delete non existing APS
Given
XYZ API domain, APS definitions namespace and username "[email protected]" with password "aut"
When
Robot requests service name "delete"
And
with "name" parameter "A1A2A3A4A5A6"
And
uses HTTP method "POST"
Then
Robot should see response status "failure"
And
Robot should see error type "NoSuchAPSName"
And
Robot should see msg "No such APS defined with name 'A1A2A3A4A5A6'"
  • @negative
Delete APS using "*" - wild character
Given
XYZ API domain, APS definitions namespace and username "[email protected]" with password "aut"
When
Robot requests service name "delete"
And
with "name" parameter "PREFIX_*"
And
uses HTTP method "POST"
Then
Robot should see response status "failure"
And
Robot should see error type "NoSuchAPSName"
And
Robot should see msg "No such APS defined with name 'PREFIX_*'"
  • @negative
Delete APS and use incorrect HTTP Method GET instead of POST
Given
XYZ API domain, APS definitions namespace and username "[email protected]" with password "aut"
When
Robot requests service name "delete"
And
with "name" parameter "PREFIX_APS"
And
uses HTTP method "GET"
Then
Robot should see response status "failure"
And
Robot should see error type "PostRequired"
And
Robot should see msg "Unsupported HTTP method (expected POST) : POST"
  • @positive
  • @acceptance
Delete existing APS
Given
XYZ API domain, APS definitions namespace and username "[email protected]" with password "aut"
When
Robot requests service name "delete"
And
with "name" parameter "PREFIX_APS"
And
uses HTTP method "POST"
Then
Robot should see response status "success"
  • @negative
  • @acceptance
Validate the previous scenario that APS was deleted
Given
XYZ API domain, APS definitions namespace and username "[email protected]" with password "aut"
When
Robot requests service name "find-by-name"
And
with "name" parameter "PREFIX_APS"
And
uses HTTP method "GET"
Then
Robot should see response status "failure"
And
Robot should see error type "NoSuchAPSName"
And
Robot should see msg "No such APS defined with name 'PREFIX_APS'"

Last published almost 7 years ago by dabravolski.