-
Notifications
You must be signed in to change notification settings - Fork 52
Expand file tree
/
Copy pathauthentication.feature
More file actions
29 lines (26 loc) · 1.31 KB
/
authentication.feature
File metadata and controls
29 lines (26 loc) · 1.31 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
@endpoint(authentication) @endpoint(authentication-v1)
Feature: Authentication
All requests to Datadog’s API must be authenticated. Requests that write
data require reporting access and require an `API key`. Requests that read
data require full access and also require an `application key`. **Note:**
All Datadog API clients are configured by default to consume Datadog US
site APIs. If you are on the Datadog EU site, set the environment variable
`DATADOG_HOST` to `https://api.datadoghq.eu` or override this value
directly when creating your client. [Manage your account’s API and
application keys](https://app.datadoghq.com/organization-settings/) in
Datadog, and see the [API and Application Keys
page](https://docs.datadoghq.com/account_management/api-app-keys/) in the
documentation.
Background:
Given an instance of "Authentication" API
And new "Validate" request
@skip-validation @team:DataDog/credential-management
Scenario: Validate API key returns "Forbidden" response
When the request is sent
Then the response status is 403 OK
@team:DataDog/credential-management
Scenario: Validate API key returns "OK" response
Given a valid "apiKeyAuth" key in the system
When the request is sent
Then the response status is 200 OK
And the response "valid" is equal to true