|
| 1 | +@endpoint(servicenow-integration) @endpoint(servicenow-integration-v2) |
| 2 | +Feature: ServiceNow Integration |
| 3 | + Manage your ServiceNow Integration. ServiceNow is a cloud-based platform |
| 4 | + that helps organizations manage digital workflows for enterprise |
| 5 | + operations. |
| 6 | + |
| 7 | + Background: |
| 8 | + Given a valid "apiKeyAuth" key in the system |
| 9 | + And a valid "appKeyAuth" key in the system |
| 10 | + And an instance of "ServiceNowIntegration" API |
| 11 | + |
| 12 | + @generated @skip @team:Datadog/collaboration-integrations |
| 13 | + Scenario: Create ServiceNow template returns "Bad Request" response |
| 14 | + Given operation "CreateServiceNowTemplate" enabled |
| 15 | + And new "CreateServiceNowTemplate" request |
| 16 | + And body with value {"data": {"attributes": {"assignment_group_id": "65b3341b-0680-47f9-a6d4-134db45c603e", "business_service_id": "65b3341b-0680-47f9-a6d4-134db45c603e", "fields_mapping": {"category": "software", "priority": "1"}, "handle_name": "incident-template", "instance_id": "65b3341b-0680-47f9-a6d4-134db45c603e", "servicenow_tablename": "incident", "user_id": "65b3341b-0680-47f9-a6d4-134db45c603e"}, "type": "servicenow_templates"}} |
| 17 | + When the request is sent |
| 18 | + Then the response status is 400 Bad Request |
| 19 | + |
| 20 | + @generated @skip @team:Datadog/collaboration-integrations |
| 21 | + Scenario: Create ServiceNow template returns "Created" response |
| 22 | + Given operation "CreateServiceNowTemplate" enabled |
| 23 | + And new "CreateServiceNowTemplate" request |
| 24 | + And body with value {"data": {"attributes": {"assignment_group_id": "65b3341b-0680-47f9-a6d4-134db45c603e", "business_service_id": "65b3341b-0680-47f9-a6d4-134db45c603e", "fields_mapping": {"category": "software", "priority": "1"}, "handle_name": "incident-template", "instance_id": "65b3341b-0680-47f9-a6d4-134db45c603e", "servicenow_tablename": "incident", "user_id": "65b3341b-0680-47f9-a6d4-134db45c603e"}, "type": "servicenow_templates"}} |
| 25 | + When the request is sent |
| 26 | + Then the response status is 201 Created |
| 27 | + |
| 28 | + @generated @skip @team:Datadog/collaboration-integrations |
| 29 | + Scenario: Delete ServiceNow template returns "Bad Request" response |
| 30 | + Given operation "DeleteServiceNowTemplate" enabled |
| 31 | + And new "DeleteServiceNowTemplate" request |
| 32 | + And request contains "template_id" parameter from "REPLACE.ME" |
| 33 | + When the request is sent |
| 34 | + Then the response status is 400 Bad Request |
| 35 | + |
| 36 | + @generated @skip @team:Datadog/collaboration-integrations |
| 37 | + Scenario: Delete ServiceNow template returns "Not Found" response |
| 38 | + Given operation "DeleteServiceNowTemplate" enabled |
| 39 | + And new "DeleteServiceNowTemplate" request |
| 40 | + And request contains "template_id" parameter from "REPLACE.ME" |
| 41 | + When the request is sent |
| 42 | + Then the response status is 404 Not Found |
| 43 | + |
| 44 | + @generated @skip @team:Datadog/collaboration-integrations |
| 45 | + Scenario: Delete ServiceNow template returns "OK" response |
| 46 | + Given operation "DeleteServiceNowTemplate" enabled |
| 47 | + And new "DeleteServiceNowTemplate" request |
| 48 | + And request contains "template_id" parameter from "REPLACE.ME" |
| 49 | + When the request is sent |
| 50 | + Then the response status is 200 OK |
| 51 | + |
| 52 | + @generated @skip @team:Datadog/collaboration-integrations |
| 53 | + Scenario: Get ServiceNow template returns "Bad Request" response |
| 54 | + Given operation "GetServiceNowTemplate" enabled |
| 55 | + And new "GetServiceNowTemplate" request |
| 56 | + And request contains "template_id" parameter from "REPLACE.ME" |
| 57 | + When the request is sent |
| 58 | + Then the response status is 400 Bad Request |
| 59 | + |
| 60 | + @generated @skip @team:Datadog/collaboration-integrations |
| 61 | + Scenario: Get ServiceNow template returns "Not Found" response |
| 62 | + Given operation "GetServiceNowTemplate" enabled |
| 63 | + And new "GetServiceNowTemplate" request |
| 64 | + And request contains "template_id" parameter from "REPLACE.ME" |
| 65 | + When the request is sent |
| 66 | + Then the response status is 404 Not Found |
| 67 | + |
| 68 | + @generated @skip @team:Datadog/collaboration-integrations |
| 69 | + Scenario: Get ServiceNow template returns "OK" response |
| 70 | + Given operation "GetServiceNowTemplate" enabled |
| 71 | + And new "GetServiceNowTemplate" request |
| 72 | + And request contains "template_id" parameter from "REPLACE.ME" |
| 73 | + When the request is sent |
| 74 | + Then the response status is 200 OK |
| 75 | + |
| 76 | + @generated @skip @team:Datadog/collaboration-integrations |
| 77 | + Scenario: List ServiceNow assignment groups returns "Bad Request" response |
| 78 | + Given operation "ListServiceNowAssignmentGroups" enabled |
| 79 | + And new "ListServiceNowAssignmentGroups" request |
| 80 | + And request contains "instance_id" parameter from "REPLACE.ME" |
| 81 | + When the request is sent |
| 82 | + Then the response status is 400 Bad Request |
| 83 | + |
| 84 | + @generated @skip @team:Datadog/collaboration-integrations |
| 85 | + Scenario: List ServiceNow assignment groups returns "Not Found" response |
| 86 | + Given operation "ListServiceNowAssignmentGroups" enabled |
| 87 | + And new "ListServiceNowAssignmentGroups" request |
| 88 | + And request contains "instance_id" parameter from "REPLACE.ME" |
| 89 | + When the request is sent |
| 90 | + Then the response status is 404 Not Found |
| 91 | + |
| 92 | + @generated @skip @team:Datadog/collaboration-integrations |
| 93 | + Scenario: List ServiceNow assignment groups returns "OK" response |
| 94 | + Given operation "ListServiceNowAssignmentGroups" enabled |
| 95 | + And new "ListServiceNowAssignmentGroups" request |
| 96 | + And request contains "instance_id" parameter from "REPLACE.ME" |
| 97 | + When the request is sent |
| 98 | + Then the response status is 200 OK |
| 99 | + |
| 100 | + @generated @skip @team:Datadog/collaboration-integrations |
| 101 | + Scenario: List ServiceNow business services returns "Bad Request" response |
| 102 | + Given operation "ListServiceNowBusinessServices" enabled |
| 103 | + And new "ListServiceNowBusinessServices" request |
| 104 | + And request contains "instance_id" parameter from "REPLACE.ME" |
| 105 | + When the request is sent |
| 106 | + Then the response status is 400 Bad Request |
| 107 | + |
| 108 | + @generated @skip @team:Datadog/collaboration-integrations |
| 109 | + Scenario: List ServiceNow business services returns "Not Found" response |
| 110 | + Given operation "ListServiceNowBusinessServices" enabled |
| 111 | + And new "ListServiceNowBusinessServices" request |
| 112 | + And request contains "instance_id" parameter from "REPLACE.ME" |
| 113 | + When the request is sent |
| 114 | + Then the response status is 404 Not Found |
| 115 | + |
| 116 | + @generated @skip @team:Datadog/collaboration-integrations |
| 117 | + Scenario: List ServiceNow business services returns "OK" response |
| 118 | + Given operation "ListServiceNowBusinessServices" enabled |
| 119 | + And new "ListServiceNowBusinessServices" request |
| 120 | + And request contains "instance_id" parameter from "REPLACE.ME" |
| 121 | + When the request is sent |
| 122 | + Then the response status is 200 OK |
| 123 | + |
| 124 | + @generated @skip @team:Datadog/collaboration-integrations |
| 125 | + Scenario: List ServiceNow instances returns "Not Found" response |
| 126 | + Given operation "ListServiceNowInstances" enabled |
| 127 | + And new "ListServiceNowInstances" request |
| 128 | + When the request is sent |
| 129 | + Then the response status is 404 Not Found |
| 130 | + |
| 131 | + @generated @skip @team:Datadog/collaboration-integrations |
| 132 | + Scenario: List ServiceNow instances returns "OK" response |
| 133 | + Given operation "ListServiceNowInstances" enabled |
| 134 | + And new "ListServiceNowInstances" request |
| 135 | + When the request is sent |
| 136 | + Then the response status is 200 OK |
| 137 | + |
| 138 | + @generated @skip @team:Datadog/collaboration-integrations |
| 139 | + Scenario: List ServiceNow templates returns "OK" response |
| 140 | + Given operation "ListServiceNowTemplates" enabled |
| 141 | + And new "ListServiceNowTemplates" request |
| 142 | + When the request is sent |
| 143 | + Then the response status is 200 OK |
| 144 | + |
| 145 | + @generated @skip @team:Datadog/collaboration-integrations |
| 146 | + Scenario: List ServiceNow users returns "Bad Request" response |
| 147 | + Given operation "ListServiceNowUsers" enabled |
| 148 | + And new "ListServiceNowUsers" request |
| 149 | + And request contains "instance_id" parameter from "REPLACE.ME" |
| 150 | + When the request is sent |
| 151 | + Then the response status is 400 Bad Request |
| 152 | + |
| 153 | + @generated @skip @team:Datadog/collaboration-integrations |
| 154 | + Scenario: List ServiceNow users returns "Not Found" response |
| 155 | + Given operation "ListServiceNowUsers" enabled |
| 156 | + And new "ListServiceNowUsers" request |
| 157 | + And request contains "instance_id" parameter from "REPLACE.ME" |
| 158 | + When the request is sent |
| 159 | + Then the response status is 404 Not Found |
| 160 | + |
| 161 | + @generated @skip @team:Datadog/collaboration-integrations |
| 162 | + Scenario: List ServiceNow users returns "OK" response |
| 163 | + Given operation "ListServiceNowUsers" enabled |
| 164 | + And new "ListServiceNowUsers" request |
| 165 | + And request contains "instance_id" parameter from "REPLACE.ME" |
| 166 | + When the request is sent |
| 167 | + Then the response status is 200 OK |
| 168 | + |
| 169 | + @generated @skip @team:Datadog/collaboration-integrations |
| 170 | + Scenario: Update ServiceNow template returns "Bad Request" response |
| 171 | + Given operation "UpdateServiceNowTemplate" enabled |
| 172 | + And new "UpdateServiceNowTemplate" request |
| 173 | + And request contains "template_id" parameter from "REPLACE.ME" |
| 174 | + And body with value {"data": {"attributes": {"assignment_group_id": "65b3341b-0680-47f9-a6d4-134db45c603e", "business_service_id": "65b3341b-0680-47f9-a6d4-134db45c603e", "fields_mapping": {"category": "hardware", "priority": "2"}, "handle_name": "incident-template-updated", "instance_id": "65b3341b-0680-47f9-a6d4-134db45c603e", "servicenow_tablename": "incident", "user_id": "65b3341b-0680-47f9-a6d4-134db45c603e"}, "type": "servicenow_templates"}} |
| 175 | + When the request is sent |
| 176 | + Then the response status is 400 Bad Request |
| 177 | + |
| 178 | + @generated @skip @team:Datadog/collaboration-integrations |
| 179 | + Scenario: Update ServiceNow template returns "Not Found" response |
| 180 | + Given operation "UpdateServiceNowTemplate" enabled |
| 181 | + And new "UpdateServiceNowTemplate" request |
| 182 | + And request contains "template_id" parameter from "REPLACE.ME" |
| 183 | + And body with value {"data": {"attributes": {"assignment_group_id": "65b3341b-0680-47f9-a6d4-134db45c603e", "business_service_id": "65b3341b-0680-47f9-a6d4-134db45c603e", "fields_mapping": {"category": "hardware", "priority": "2"}, "handle_name": "incident-template-updated", "instance_id": "65b3341b-0680-47f9-a6d4-134db45c603e", "servicenow_tablename": "incident", "user_id": "65b3341b-0680-47f9-a6d4-134db45c603e"}, "type": "servicenow_templates"}} |
| 184 | + When the request is sent |
| 185 | + Then the response status is 404 Not Found |
| 186 | + |
| 187 | + @generated @skip @team:Datadog/collaboration-integrations |
| 188 | + Scenario: Update ServiceNow template returns "OK" response |
| 189 | + Given operation "UpdateServiceNowTemplate" enabled |
| 190 | + And new "UpdateServiceNowTemplate" request |
| 191 | + And request contains "template_id" parameter from "REPLACE.ME" |
| 192 | + And body with value {"data": {"attributes": {"assignment_group_id": "65b3341b-0680-47f9-a6d4-134db45c603e", "business_service_id": "65b3341b-0680-47f9-a6d4-134db45c603e", "fields_mapping": {"category": "hardware", "priority": "2"}, "handle_name": "incident-template-updated", "instance_id": "65b3341b-0680-47f9-a6d4-134db45c603e", "servicenow_tablename": "incident", "user_id": "65b3341b-0680-47f9-a6d4-134db45c603e"}, "type": "servicenow_templates"}} |
| 193 | + When the request is sent |
| 194 | + Then the response status is 200 OK |
0 commit comments