|
| 1 | +@endpoint(entity-integration-configs) @endpoint(entity-integration-configs-v2) |
| 2 | +Feature: Entity Integration Configs |
| 3 | + Manage per-integration configurations for the Internal Developer Portal |
| 4 | + (IDP). These configurations control which external resources (for example, |
| 5 | + GitHub repositories, Jira projects, or PagerDuty services) are synced as |
| 6 | + entities into the Software Catalog. |
| 7 | + |
| 8 | + Background: |
| 9 | + Given a valid "apiKeyAuth" key in the system |
| 10 | + And a valid "appKeyAuth" key in the system |
| 11 | + And an instance of "EntityIntegrationConfigs" API |
| 12 | + |
| 13 | + @generated @skip @team:DataDog/idp |
| 14 | + Scenario: Create or update entity integration config returns "Bad Request" response |
| 15 | + Given operation "UpdateEntityIntegrationConfig" enabled |
| 16 | + And new "UpdateEntityIntegrationConfig" request |
| 17 | + And request contains "integration_id" parameter from "REPLACE.ME" |
| 18 | + And body with value {"data": {"attributes": {"config": {"enabled_repos": [{"github_org_name": "myorg", "hostname": "github.com", "repo_name": "myrepo"}]}}, "type": "entity_integration_config_requests"}} |
| 19 | + When the request is sent |
| 20 | + Then the response status is 400 Bad Request |
| 21 | + |
| 22 | + @generated @skip @team:DataDog/idp |
| 23 | + Scenario: Create or update entity integration config returns "OK" response |
| 24 | + Given operation "UpdateEntityIntegrationConfig" enabled |
| 25 | + And new "UpdateEntityIntegrationConfig" request |
| 26 | + And request contains "integration_id" parameter from "REPLACE.ME" |
| 27 | + And body with value {"data": {"attributes": {"config": {"enabled_repos": [{"github_org_name": "myorg", "hostname": "github.com", "repo_name": "myrepo"}]}}, "type": "entity_integration_config_requests"}} |
| 28 | + When the request is sent |
| 29 | + Then the response status is 200 OK |
| 30 | + |
| 31 | + @generated @skip @team:DataDog/idp |
| 32 | + Scenario: Delete an entity integration configuration returns "Bad Request" response |
| 33 | + Given operation "DeleteEntityIntegrationConfig" enabled |
| 34 | + And new "DeleteEntityIntegrationConfig" request |
| 35 | + And request contains "integration_id" parameter from "REPLACE.ME" |
| 36 | + When the request is sent |
| 37 | + Then the response status is 400 Bad Request |
| 38 | + |
| 39 | + @generated @skip @team:DataDog/idp |
| 40 | + Scenario: Delete an entity integration configuration returns "No Content" response |
| 41 | + Given operation "DeleteEntityIntegrationConfig" enabled |
| 42 | + And new "DeleteEntityIntegrationConfig" request |
| 43 | + And request contains "integration_id" parameter from "REPLACE.ME" |
| 44 | + When the request is sent |
| 45 | + Then the response status is 204 No Content |
| 46 | + |
| 47 | + @generated @skip @team:DataDog/idp |
| 48 | + Scenario: Delete an entity integration configuration returns "Not Found" response |
| 49 | + Given operation "DeleteEntityIntegrationConfig" enabled |
| 50 | + And new "DeleteEntityIntegrationConfig" request |
| 51 | + And request contains "integration_id" parameter from "REPLACE.ME" |
| 52 | + When the request is sent |
| 53 | + Then the response status is 404 Not Found |
| 54 | + |
| 55 | + @generated @skip @team:DataDog/idp |
| 56 | + Scenario: Get an entity integration configuration returns "Bad Request" response |
| 57 | + Given operation "GetEntityIntegrationConfig" enabled |
| 58 | + And new "GetEntityIntegrationConfig" request |
| 59 | + And request contains "integration_id" parameter from "REPLACE.ME" |
| 60 | + When the request is sent |
| 61 | + Then the response status is 400 Bad Request |
| 62 | + |
| 63 | + @generated @skip @team:DataDog/idp |
| 64 | + Scenario: Get an entity integration configuration returns "Not Found" response |
| 65 | + Given operation "GetEntityIntegrationConfig" enabled |
| 66 | + And new "GetEntityIntegrationConfig" request |
| 67 | + And request contains "integration_id" parameter from "REPLACE.ME" |
| 68 | + When the request is sent |
| 69 | + Then the response status is 404 Not Found |
| 70 | + |
| 71 | + @generated @skip @team:DataDog/idp |
| 72 | + Scenario: Get an entity integration configuration returns "OK" response |
| 73 | + Given operation "GetEntityIntegrationConfig" enabled |
| 74 | + And new "GetEntityIntegrationConfig" request |
| 75 | + And request contains "integration_id" parameter from "REPLACE.ME" |
| 76 | + When the request is sent |
| 77 | + Then the response status is 200 OK |
0 commit comments