-
Notifications
You must be signed in to change notification settings - Fork 32
Expand file tree
/
Copy pathcontainers.feature
More file actions
36 lines (31 loc) · 1.49 KB
/
containers.feature
File metadata and controls
36 lines (31 loc) · 1.49 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
@endpoint(containers) @endpoint(containers-v2)
Feature: Containers
The Containers API allows you to query container data for your
organization. See the [Container Monitoring
page](https://docs.datadoghq.com/containers/) for more information.
Background:
Given a valid "apiKeyAuth" key in the system
And a valid "appKeyAuth" key in the system
And an instance of "Containers" API
And new "ListContainers" request
@replay-only @team:DataDog/container-experiences
Scenario: Get All Container groups returns "OK" response
Given request contains "group_by" parameter with value "short_image"
When the request is sent
Then the response status is 200 OK
And the response "data[0].attributes.count" is equal to 123
@generated @skip @team:DataDog/container-experiences
Scenario: Get All Containers returns "Bad Request" response
When the request is sent
Then the response status is 400 Bad Request
@replay-only @team:DataDog/container-experiences
Scenario: Get All Containers returns "OK" response
When the request is sent
Then the response status is 200 OK
And the response "data[0].attributes.name" is equal to "test_name"
@replay-only @skip-validation @team:DataDog/container-experiences @with-pagination
Scenario: Get All Containers returns "OK" response with pagination
Given request contains "page[size]" parameter with value 2
When the request with pagination is sent
Then the response status is 200 OK
And the response has 3 items