|
| 1 | +@endpoint(csm-settings) @endpoint(csm-settings-v2) |
| 2 | +Feature: CSM Settings |
| 3 | + Datadog Cloud Security Management (CSM) Settings APIs allow you to list |
| 4 | + and filter your cloud hosts monitored by CSM, covering both agentless and |
| 5 | + agent-based discovery. For more information, see [Cloud Security Managemen |
| 6 | + t](https://docs.datadoghq.com/security/cloud_security_management). |
| 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 "CSMSettings" API |
| 12 | + |
| 13 | + @generated @skip @team:DataDog/k9-misconfigs |
| 14 | + Scenario: Get agentless host facet info returns "Bad Request" response |
| 15 | + Given operation "GetCSMAgentlessHostFacetInfo" enabled |
| 16 | + And new "GetCSMAgentlessHostFacetInfo" request |
| 17 | + And request contains "facet" parameter from "REPLACE.ME" |
| 18 | + When the request is sent |
| 19 | + Then the response status is 400 Bad Request |
| 20 | + |
| 21 | + @generated @skip @team:DataDog/k9-misconfigs |
| 22 | + Scenario: Get agentless host facet info returns "OK" response |
| 23 | + Given operation "GetCSMAgentlessHostFacetInfo" enabled |
| 24 | + And new "GetCSMAgentlessHostFacetInfo" request |
| 25 | + And request contains "facet" parameter from "REPLACE.ME" |
| 26 | + When the request is sent |
| 27 | + Then the response status is 200 OK |
| 28 | + |
| 29 | + @generated @skip @team:DataDog/k9-misconfigs |
| 30 | + Scenario: Get unified host facet info returns "Bad Request" response |
| 31 | + Given operation "GetCSMUnifiedHostFacetInfo" enabled |
| 32 | + And new "GetCSMUnifiedHostFacetInfo" request |
| 33 | + And request contains "facet" parameter from "REPLACE.ME" |
| 34 | + When the request is sent |
| 35 | + Then the response status is 400 Bad Request |
| 36 | + |
| 37 | + @generated @skip @team:DataDog/k9-misconfigs |
| 38 | + Scenario: Get unified host facet info returns "OK" response |
| 39 | + Given operation "GetCSMUnifiedHostFacetInfo" enabled |
| 40 | + And new "GetCSMUnifiedHostFacetInfo" request |
| 41 | + And request contains "facet" parameter from "REPLACE.ME" |
| 42 | + When the request is sent |
| 43 | + Then the response status is 200 OK |
| 44 | + |
| 45 | + @generated @skip @team:DataDog/k9-misconfigs |
| 46 | + Scenario: List agentless host facets returns "OK" response |
| 47 | + Given operation "ListCSMAgentlessHostFacets" enabled |
| 48 | + And new "ListCSMAgentlessHostFacets" request |
| 49 | + When the request is sent |
| 50 | + Then the response status is 200 OK |
| 51 | + |
| 52 | + @generated @skip @team:DataDog/k9-misconfigs |
| 53 | + Scenario: List agentless hosts returns "Bad Request" response |
| 54 | + Given operation "ListCSMAgentlessHosts" enabled |
| 55 | + And new "ListCSMAgentlessHosts" request |
| 56 | + When the request is sent |
| 57 | + Then the response status is 400 Bad Request |
| 58 | + |
| 59 | + @generated @skip @team:DataDog/k9-misconfigs |
| 60 | + Scenario: List agentless hosts returns "OK" response |
| 61 | + Given operation "ListCSMAgentlessHosts" enabled |
| 62 | + And new "ListCSMAgentlessHosts" request |
| 63 | + When the request is sent |
| 64 | + Then the response status is 200 OK |
| 65 | + |
| 66 | + @generated @skip @team:DataDog/k9-misconfigs |
| 67 | + Scenario: List unified host facets returns "OK" response |
| 68 | + Given operation "ListCSMUnifiedHostFacets" enabled |
| 69 | + And new "ListCSMUnifiedHostFacets" request |
| 70 | + When the request is sent |
| 71 | + Then the response status is 200 OK |
| 72 | + |
| 73 | + @generated @skip @team:DataDog/k9-misconfigs |
| 74 | + Scenario: List unified hosts returns "Bad Request" response |
| 75 | + Given operation "ListCSMUnifiedHosts" enabled |
| 76 | + And new "ListCSMUnifiedHosts" request |
| 77 | + When the request is sent |
| 78 | + Then the response status is 400 Bad Request |
| 79 | + |
| 80 | + @generated @skip @team:DataDog/k9-misconfigs |
| 81 | + Scenario: List unified hosts returns "OK" response |
| 82 | + Given operation "ListCSMUnifiedHosts" enabled |
| 83 | + And new "ListCSMUnifiedHosts" request |
| 84 | + When the request is sent |
| 85 | + Then the response status is 200 OK |
0 commit comments