Skip to content

Commit c307d61

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Fix downtime tests (DataDog#18217)
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com> Co-authored-by: api-clients-generation-pipeline[bot] <54105614+api-clients-generation-pipeline[bot]@users.noreply.github.com>
1 parent fbe50aa commit c307d61

File tree

5 files changed

+12
-10
lines changed

5 files changed

+12
-10
lines changed

.apigentools-info

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
"spec_versions": {
55
"v1": {
66
"apigentools_version": "1.6.4",
7-
"regenerated": "2023-05-19 19:03:56.410711",
8-
"spec_repo_commit": "c3f9f308"
7+
"regenerated": "2023-05-22 14:42:29.749185",
8+
"spec_repo_commit": "f75e7820"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.4",
12-
"regenerated": "2023-05-19 19:04:04.811892",
13-
"spec_repo_commit": "c3f9f308"
12+
"regenerated": "2023-05-22 14:42:36.647629",
13+
"spec_repo_commit": "f75e7820"
1414
}
1515
}
1616
}

content/en/api/v1/downtimes/request.CreateDowntime.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"message": "Example-Downtime",
33
"start": 1636629071,
4+
"end": 1636632671,
45
"timezone": "Etc/UTC",
56
"scope": [
67
"test:exampledowntime"

data/api/v1/full_spec.yaml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21870,10 +21870,11 @@ paths:
2187021870
parameters:
2187121871
- name: body
2187221872
value: "{\n \"message\": \"{{ unique }}\",\n \"start\": {{ timestamp(\"now\")
21873-
}},\n \"timezone\": \"Etc/UTC\",\n \"scope\": [\"test:{{ unique_lower_alnum
21874-
}}\"],\n \"recurrence\": {\n \"type\": \"weeks\",\n \"period\":
21875-
1,\n \"week_days\": [\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\"],\n
21876-
\ \"until_date\": {{ timestamp(\"now + 21d\")}}\n }\n}"
21873+
}},\n \"end\": {{ timestamp(\"now + 1h\") }},\n \"timezone\": \"Etc/UTC\",\n
21874+
\ \"scope\": [\"test:{{ unique_lower_alnum }}\"],\n \"recurrence\":
21875+
{\n \"type\": \"weeks\",\n \"period\": 1,\n \"week_days\":
21876+
[\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\"],\n \"until_date\":
21877+
{{ timestamp(\"now + 21d\")}}\n }\n}"
2187721878
step: there is a valid "downtime" in the system
2187821879
x-menu-order: 2
2187921880
x-undo:

data/api/v1/full_spec_deref.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -576980,7 +576980,7 @@
576980576980
"parameters": [
576981576981
{
576982576982
"name": "body",
576983-
"value": "{\n \"message\": \"{{ unique }}\",\n \"start\": {{ timestamp(\"now\") }},\n \"timezone\": \"Etc/UTC\",\n \"scope\": [\"test:{{ unique_lower_alnum }}\"],\n \"recurrence\": {\n \"type\": \"weeks\",\n \"period\": 1,\n \"week_days\": [\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\"],\n \"until_date\": {{ timestamp(\"now + 21d\")}}\n }\n}"
576983+
"value": "{\n \"message\": \"{{ unique }}\",\n \"start\": {{ timestamp(\"now\") }},\n \"end\": {{ timestamp(\"now + 1h\") }},\n \"timezone\": \"Etc/UTC\",\n \"scope\": [\"test:{{ unique_lower_alnum }}\"],\n \"recurrence\": {\n \"type\": \"weeks\",\n \"period\": 1,\n \"week_days\": [\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\"],\n \"until_date\": {{ timestamp(\"now + 21d\")}}\n }\n}"
576984576984
}
576985576985
],
576986576986
"step": "there is a valid \"downtime\" in the system"

static/resources/json/full_spec_v1.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -576980,7 +576980,7 @@
576980576980
"parameters": [
576981576981
{
576982576982
"name": "body",
576983-
"value": "{\n \"message\": \"{{ unique }}\",\n \"start\": {{ timestamp(\"now\") }},\n \"timezone\": \"Etc/UTC\",\n \"scope\": [\"test:{{ unique_lower_alnum }}\"],\n \"recurrence\": {\n \"type\": \"weeks\",\n \"period\": 1,\n \"week_days\": [\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\"],\n \"until_date\": {{ timestamp(\"now + 21d\")}}\n }\n}"
576983+
"value": "{\n \"message\": \"{{ unique }}\",\n \"start\": {{ timestamp(\"now\") }},\n \"end\": {{ timestamp(\"now + 1h\") }},\n \"timezone\": \"Etc/UTC\",\n \"scope\": [\"test:{{ unique_lower_alnum }}\"],\n \"recurrence\": {\n \"type\": \"weeks\",\n \"period\": 1,\n \"week_days\": [\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\"],\n \"until_date\": {{ timestamp(\"now + 21d\")}}\n }\n}"
576984576984
}
576985576985
],
576986576986
"step": "there is a valid \"downtime\" in the system"

0 commit comments

Comments
 (0)