|
| 1 | +@endpoint(jira-integration) @endpoint(jira-integration-v2) |
| 2 | +Feature: Jira Integration |
| 3 | + Manage your Jira Integration. Atlassian Jira is a project management and |
| 4 | + issue tracking tool for teams to coordinate work and handle tasks |
| 5 | + efficiently. |
| 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 "JiraIntegration" API |
| 11 | + |
| 12 | + @generated @skip @team:Datadog/collaboration-integrations |
| 13 | + Scenario: Create Jira issue template returns "Bad Request" response |
| 14 | + Given operation "CreateJiraIssueTemplate" enabled |
| 15 | + And new "CreateJiraIssueTemplate" request |
| 16 | + And body with value {"data": {"attributes": {"fields": {"description": {"payload": "Test", "type": "json"}}, "issue_type_id": "12730", "jira-account": {"id": "80f16d40-1fba-486e-b1fc-983e6ca19bec"}, "name": "test-template", "project_id": "10772"}, "type": "jira-issue-template"}} |
| 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 Jira issue template returns "Created" response |
| 22 | + Given operation "CreateJiraIssueTemplate" enabled |
| 23 | + And new "CreateJiraIssueTemplate" request |
| 24 | + And body with value {"data": {"attributes": {"fields": {"description": {"payload": "Test", "type": "json"}}, "issue_type_id": "12730", "jira-account": {"id": "80f16d40-1fba-486e-b1fc-983e6ca19bec"}, "name": "test-template", "project_id": "10772"}, "type": "jira-issue-template"}} |
| 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 Jira account returns "Bad Request" response |
| 30 | + Given operation "DeleteJiraAccount" enabled |
| 31 | + And new "DeleteJiraAccount" request |
| 32 | + And request contains "account_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 Jira account returns "No Content" response |
| 38 | + Given operation "DeleteJiraAccount" enabled |
| 39 | + And new "DeleteJiraAccount" request |
| 40 | + And request contains "account_id" parameter from "REPLACE.ME" |
| 41 | + When the request is sent |
| 42 | + Then the response status is 204 No Content |
| 43 | + |
| 44 | + @generated @skip @team:Datadog/collaboration-integrations |
| 45 | + Scenario: Delete Jira issue template returns "No Content" response |
| 46 | + Given operation "DeleteJiraIssueTemplate" enabled |
| 47 | + And new "DeleteJiraIssueTemplate" request |
| 48 | + And request contains "issue_template_id" parameter from "REPLACE.ME" |
| 49 | + When the request is sent |
| 50 | + Then the response status is 204 No Content |
| 51 | + |
| 52 | + @generated @skip @team:Datadog/collaboration-integrations |
| 53 | + Scenario: Get Jira issue template returns "Bad Request" response |
| 54 | + Given operation "GetJiraIssueTemplate" enabled |
| 55 | + And new "GetJiraIssueTemplate" request |
| 56 | + And request contains "issue_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 Jira issue template returns "OK" response |
| 62 | + Given operation "GetJiraIssueTemplate" enabled |
| 63 | + And new "GetJiraIssueTemplate" request |
| 64 | + And request contains "issue_template_id" parameter from "REPLACE.ME" |
| 65 | + When the request is sent |
| 66 | + Then the response status is 200 OK |
| 67 | + |
| 68 | + @generated @skip @team:Datadog/collaboration-integrations |
| 69 | + Scenario: List Jira accounts returns "Not Found" response |
| 70 | + Given operation "ListJiraAccounts" enabled |
| 71 | + And new "ListJiraAccounts" request |
| 72 | + When the request is sent |
| 73 | + Then the response status is 404 Not Found |
| 74 | + |
| 75 | + @generated @skip @team:Datadog/collaboration-integrations |
| 76 | + Scenario: List Jira accounts returns "OK" response |
| 77 | + Given operation "ListJiraAccounts" enabled |
| 78 | + And new "ListJiraAccounts" request |
| 79 | + When the request is sent |
| 80 | + Then the response status is 200 OK |
| 81 | + |
| 82 | + @generated @skip @team:Datadog/collaboration-integrations |
| 83 | + Scenario: List Jira issue templates returns "OK" response |
| 84 | + Given operation "ListJiraIssueTemplates" enabled |
| 85 | + And new "ListJiraIssueTemplates" request |
| 86 | + When the request is sent |
| 87 | + Then the response status is 200 OK |
| 88 | + |
| 89 | + @generated @skip @team:Datadog/collaboration-integrations |
| 90 | + Scenario: Update Jira issue template returns "Bad Request" response |
| 91 | + Given operation "UpdateJiraIssueTemplate" enabled |
| 92 | + And new "UpdateJiraIssueTemplate" request |
| 93 | + And request contains "issue_template_id" parameter from "REPLACE.ME" |
| 94 | + And body with value {"data": {"attributes": {"fields": {"description": {"payload": "Updated Description", "type": "json"}}, "name": "test_template_updated"}, "type": "jira-issue-template"}} |
| 95 | + When the request is sent |
| 96 | + Then the response status is 400 Bad Request |
| 97 | + |
| 98 | + @generated @skip @team:Datadog/collaboration-integrations |
| 99 | + Scenario: Update Jira issue template returns "OK" response |
| 100 | + Given operation "UpdateJiraIssueTemplate" enabled |
| 101 | + And new "UpdateJiraIssueTemplate" request |
| 102 | + And request contains "issue_template_id" parameter from "REPLACE.ME" |
| 103 | + And body with value {"data": {"attributes": {"fields": {"description": {"payload": "Updated Description", "type": "json"}}, "name": "test_template_updated"}, "type": "jira-issue-template"}} |
| 104 | + When the request is sent |
| 105 | + Then the response status is 200 OK |
0 commit comments