-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Regenerate client from commit 504115dd of spec repo
- Loading branch information
ci.datadog-api-spec
committed
Dec 13, 2024
1 parent
51358ec
commit cae423e
Showing
16 changed files
with
904 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
/** | ||
* Get all CSM Agents returns "OK" response | ||
*/ | ||
|
||
import { client, v2 } from "@datadog/datadog-api-client"; | ||
|
||
const configuration = client.createConfiguration(); | ||
const apiInstance = new v2.CSMAgentsApi(configuration); | ||
|
||
apiInstance | ||
.listAllCSMAgents() | ||
.then((data: v2.CsmAgentsResponse) => { | ||
console.log( | ||
"API called successfully. Returned data: " + JSON.stringify(data) | ||
); | ||
}) | ||
.catch((error: any) => console.error(error)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
@endpoint(csm-agents) @endpoint(csm-agents-v2) | ||
Feature: CSM Agents | ||
Datadog Cloud Security Management (CSM) delivers real-time threat | ||
detection and continuous configuration audits across your entire cloud | ||
infrastructure, all in a unified view for seamless collaboration and | ||
faster remediation. Go to | ||
https://docs.datadoghq.com/security/cloud_security_management to learn | ||
more | ||
|
||
@team:DataDog/k9-cloud-security-platform @team:DataDog/k9-cws-backend | ||
Scenario: Get all CSM Agents returns "OK" response | ||
Given there is a valid "csm_agent" in the system | ||
And a valid "apiKeyAuth" key in the system | ||
And a valid "appKeyAuth" key in the system | ||
And an instance of "CSMAgents" API | ||
And new "ListAllCSMAgents" request | ||
When the request is sent | ||
Then the response status is 200 OK | ||
And the response "data.type" is equal to "datadog_agent" | ||
And the response "data.attributes.hostname" is equal to "i-0b36df8bd65f53d1f" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.