Skip to content

Commit d91ed75

Browse files
author
Mike Storey
committed
Fix enumerators stepCI tests to preserve existing content and expect correct API format
1 parent fa39867 commit d91ed75

File tree

1 file changed

+20
-1
lines changed

1 file changed

+20
-1
lines changed

tests/stepci/enumerators.yaml

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ tests:
77
enumerators:
88
name: Test Enumerators Endpoints
99
steps:
10-
# Test PUT with modified data
10+
# Test PUT with modified data (preserving existing content and adding new test values)
1111
- name: Put Enumerators
1212
http:
1313
url: http://${{env.host}}/api/enumerators/
@@ -23,6 +23,23 @@ tests:
2323
{
2424
"version": 1,
2525
"enumerators": {
26+
"default_status": {
27+
"active": "Not Deleted",
28+
"archived": "Soft Delete Indicator"
29+
},
30+
"test_enum": {
31+
"foo": "bar"
32+
}
33+
}
34+
},
35+
{
36+
"version": 2,
37+
"enumerators": {
38+
"default_status": {
39+
"draft": "Draft",
40+
"active": "Not Deleted",
41+
"archived": "Soft Delete Indicator"
42+
},
2643
"test_enum": {
2744
"foo": "bar"
2845
}
@@ -33,6 +50,7 @@ tests:
3350
status: /200/
3451
jsonpath:
3552
$[1].enumerators.test_enum.foo: "bar"
53+
$[1].enumerators.default_status.active: "Not Deleted"
3654
schema:
3755
created_at:
3856
type: string
@@ -52,6 +70,7 @@ tests:
5270
status: /200/
5371
jsonpath:
5472
$[1].enumerators.test_enum.foo: "bar"
73+
$[1].enumerators.default_status.active: "Not Deleted"
5574

5675
# Restore to original state from enumerators.json
5776
- name: Restore Original Enumerators

0 commit comments

Comments
 (0)