Skip to content

Commit

Permalink
chore: update fixtures
Browse files Browse the repository at this point in the history
  • Loading branch information
ismay committed Mar 6, 2024
1 parent 4743b45 commit ff72b11
Show file tree
Hide file tree
Showing 16 changed files with 881 additions and 322 deletions.
40 changes: 37 additions & 3 deletions cypress/fixtures/network/41/queue_actions.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"path": "/api/41/systemSettings/helpPageLink",
"featureName": "Queue actions",
"static": false,
"count": 3,
"count": 5,
"nonDeterministic": false,
"method": "GET",
"requestBody": "",
Expand Down Expand Up @@ -49,8 +49,8 @@
"sec-fetch-mode": "cors"
},
"statusCode": 200,
"responseBody": "[{\"name\":\"1\",\"type\":\"DATA_INTEGRITY\",\"status\":\"DISABLED\",\"enabled\":false,\"configurable\":true,\"sequence\":[{\"id\":\"sHmTcgoa5vB\",\"name\":\"1\",\"type\":\"DATA_INTEGRITY\",\"status\":\"DISABLED\"}]}]",
"responseSize": 183,
"responseBody": "[{\"name\":\"1\",\"type\":\"HTML_PUSH_ANALYTICS\",\"cronExpression\":\"0 0 3 ? * MON\",\"nextExecutionTime\":\"2024-03-11T03:00:00.000\",\"maxDelayedExecutionTime\":\"2024-03-11T07:00:00.000\",\"secondsToNextExecutionTime\":402613,\"secondsToMaxDelayedExecutionTime\":417013,\"status\":\"SCHEDULED\",\"enabled\":true,\"configurable\":true,\"sequence\":[{\"id\":\"okC34RWePtj\",\"name\":\"1\",\"type\":\"HTML_PUSH_ANALYTICS\",\"cronExpression\":\"0 0 3 ? * MON\",\"nextExecutionTime\":\"2024-03-11T03:00:00.000\",\"status\":\"SCHEDULED\"}]}]",
"responseSize": 482,
"responseHeaders": {
"server": "nginx/1.23.0",
"content-type": "application/json;charset=UTF-8",
Expand All @@ -63,5 +63,39 @@
"x-content-type-options": "nosniff",
"x-xss-protection": "1; mode=block"
}
},
{
"path": "/api/41/jobConfigurations/uvUPBToQHD9/execute",
"featureName": "Queue actions",
"static": false,
"count": 1,
"nonDeterministic": false,
"method": "POST",
"requestBody": "",
"requestHeaders": {
"host": "debug.dhis2.org",
"connection": "keep-alive",
"content-length": "0",
"accept": "application/json",
"origin": "http://localhost:3000",
"sec-fetch-site": "cross-site",
"sec-fetch-mode": "cors"
},
"statusCode": 404,
"responseBody": "{\"httpStatus\":\"Not Found\",\"httpStatusCode\":404,\"status\":\"ERROR\",\"message\":\"JobConfiguration with id uvUPBToQHD9 could not be found.\",\"errorCode\":\"E1005\"}",
"responseSize": 153,
"responseHeaders": {
"server": "nginx/1.23.0",
"content-type": "application/json;charset=UTF-8",
"transfer-encoding": "chunked",
"connection": "keep-alive",
"access-control-allow-credentials": "true",
"access-control-allow-origin": "http://localhost:3000",
"vary": "Origin",
"access-control-expose-headers": "ETag, Location",
"cache-control": "no-cache, private",
"x-content-type-options": "nosniff",
"x-xss-protection": "1; mode=block"
}
}
]
260 changes: 132 additions & 128 deletions cypress/fixtures/network/41/static_resources.json

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions cypress/fixtures/network/41/summary.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"count": 1020,
"totalResponseSize": 1075052,
"duplicates": 904,
"nonDeterministicResponses": 107,
"count": 1107,
"totalResponseSize": 1063069,
"duplicates": 974,
"nonDeterministicResponses": 131,
"apiVersion": "41",
"fixtureFiles": [
"static_resources.json",
Expand Down
54 changes: 11 additions & 43 deletions cypress/fixtures/network/41/user_job_actions.json

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@
"sec-fetch-mode": "cors"
},
"statusCode": 200,
"responseBody": "[{\"name\":\"Housekeeping\",\"type\":\"HOUSEKEEPING\",\"delay\":20,\"nextExecutionTime\":\"2023-12-06T15:14:08.000\",\"status\":\"SCHEDULED\",\"enabled\":true,\"configurable\":false,\"sequence\":[{\"id\":\"DHIS2rocks1\",\"name\":\"Housekeeping\",\"type\":\"HOUSEKEEPING\",\"delay\":20,\"nextExecutionTime\":\"2023-12-06T15:14:08.000\",\"status\":\"SCHEDULED\"}]},{\"name\":\"User account expiry alert\",\"type\":\"ACCOUNT_EXPIRY_ALERT\",\"cronExpression\":\"0 0 2 ? * *\",\"nextExecutionTime\":\"2023-12-07T02:00:00.000\",\"status\":\"SCHEDULED\",\"enabled\":true,\"configurable\":false,\"sequence\":[{\"id\":\"fUWM1At1TUx\",\"name\":\"User account expiry alert\",\"type\":\"ACCOUNT_EXPIRY_ALERT\",\"cronExpression\":\"0 0 2 ? * *\",\"nextExecutionTime\":\"2023-12-07T02:00:00.000\",\"status\":\"SCHEDULED\"}]},{\"name\":\"File resource clean up\",\"type\":\"FILE_RESOURCE_CLEANUP\",\"cronExpression\":\"0 0 2 * * ?\",\"nextExecutionTime\":\"2023-12-07T02:00:00.000\",\"status\":\"SCHEDULED\",\"enabled\":true,\"configurable\":false,\"sequence\":[{\"id\":\"pd6O228pqr0\",\"name\":\"File resource clean up\",\"type\":\"FILE_RESOURCE_CLEANUP\",\"cronExpression\":\"0 0 2 * * ?\",\"nextExecutionTime\":\"2023-12-07T02:00:00.000\",\"status\":\"SCHEDULED\"}]},{\"name\":\"Data statistics\",\"type\":\"DATA_STATISTICS\",\"cronExpression\":\"0 0 2 * * ?\",\"nextExecutionTime\":\"2023-12-07T02:00:00.000\",\"status\":\"SCHEDULED\",\"enabled\":true,\"configurable\":false,\"sequence\":[{\"id\":\"BFa3jDsbtdO\",\"name\":\"Data statistics\",\"type\":\"DATA_STATISTICS\",\"cronExpression\":\"0 0 2 * * ?\",\"nextExecutionTime\":\"2023-12-07T02:00:00.000\",\"status\":\"SCHEDULED\"}]},{\"name\":\"Dataset notification\",\"type\":\"DATA_SET_NOTIFICATION\",\"cronExpression\":\"0 0 2 * * ?\",\"nextExecutionTime\":\"2023-12-07T02:00:00.000\",\"status\":\"SCHEDULED\",\"enabled\":true,\"configurable\":false,\"sequence\":[{\"id\":\"YvAwAmrqAtN\",\"name\":\"Dataset notification\",\"type\":\"DATA_SET_NOTIFICATION\",\"cronExpression\":\"0 0 2 * * ?\",\"nextExecutionTime\":\"2023-12-07T02:00:00.000\",\"status\":\"SCHEDULED\"}]},{\"name\":\"Remove expired or used reserved values\",\"type\":\"REMOVE_USED_OR_EXPIRED_RESERVED_VALUES\",\"cronExpression\":\"0 0 2 ? * *\",\"nextExecutionTime\":\"2023-12-07T02:00:00.000\",\"status\":\"SCHEDULED\",\"enabled\":true,\"configurable\":false,\"sequence\":[{\"id\":\"uwWCT2BMmlq\",\"name\":\"Remove expired or used reserved values\",\"type\":\"REMOVE_USED_OR_EXPIRED_RESERVED_VALUES\",\"cronExpression\":\"0 0 2 ? * *\",\"nextExecutionTime\":\"2023-12-07T02:00:00.000\",\"status\":\"SCHEDULED\"}]},{\"name\":\"Credentials expiry alert\",\"type\":\"CREDENTIALS_EXPIRY_ALERT\",\"cronExpression\":\"0 0 2 * * ?\",\"nextExecutionTime\":\"2023-12-07T02:00:00.000\",\"status\":\"SCHEDULED\",\"enabled\":true,\"configurable\":false,\"sequence\":[{\"id\":\"sHMedQF7VYa\",\"name\":\"Credentials expiry alert\",\"type\":\"CREDENTIALS_EXPIRY_ALERT\",\"cronExpression\":\"0 0 2 * * ?\",\"nextExecutionTime\":\"2023-12-07T02:00:00.000\",\"status\":\"SCHEDULED\"}]},{\"name\":\"System version update check notification\",\"type\":\"SYSTEM_VERSION_UPDATE_CHECK\",\"cronExpression\":\"44 8 3 ? * *\",\"nextExecutionTime\":\"2023-12-07T03:08:44.000\",\"status\":\"SCHEDULED\",\"enabled\":true,\"configurable\":false,\"sequence\":[{\"id\":\"vt21671bgno\",\"name\":\"System version update check notification\",\"type\":\"SYSTEM_VERSION_UPDATE_CHECK\",\"cronExpression\":\"44 8 3 ? * *\",\"nextExecutionTime\":\"2023-12-07T03:08:44.000\",\"status\":\"SCHEDULED\"}]},{\"name\":\"Validation result notification\",\"type\":\"VALIDATION_RESULTS_NOTIFICATION\",\"cronExpression\":\"0 0 7 * * ?\",\"nextExecutionTime\":\"2023-12-07T07:00:00.000\",\"status\":\"SCHEDULED\",\"enabled\":true,\"configurable\":false,\"sequence\":[{\"id\":\"Js3vHn2AVuG\",\"name\":\"Validation result notification\",\"type\":\"VALIDATION_RESULTS_NOTIFICATION\",\"cronExpression\":\"0 0 7 * * ?\",\"nextExecutionTime\":\"2023-12-07T07:00:00.000\",\"status\":\"SCHEDULED\"}]},{\"name\":\"1\",\"type\":\"Sequence\",\"cronExpression\":\"0 0 3 ? * MON\",\"nextExecutionTime\":\"2023-12-11T03:00:00.000\",\"status\":\"SCHEDULED\",\"enabled\":true,\"configurable\":true,\"sequence\":[{\"id\":\"l16DJ7V3Zsc\",\"name\":\" asdfasdf\",\"type\":\"LOCK_EXCEPTION_CLEANUP\",\"cronExpression\":\"0 0 3 ? * MON\",\"nextExecutionTime\":\"2023-12-11T03:00:00.000\",\"status\":\"SCHEDULED\"},{\"id\":\"YVFUK28IP6w\",\"name\":\"2\",\"type\":\"DISABLE_INACTIVE_USERS\",\"status\":\"DISABLED\"}]},{\"name\":\"1\",\"type\":\"DATA_INTEGRITY\",\"status\":\"DISABLED\",\"enabled\":false,\"configurable\":true,\"sequence\":[{\"id\":\"sHmTcgoa5vB\",\"name\":\"1\",\"type\":\"DATA_INTEGRITY\",\"status\":\"DISABLED\"}]}]",
"responseSize": 4222,
"responseBody": "[{\"name\":\"Housekeeping\",\"type\":\"HOUSEKEEPING\",\"delay\":20,\"nextExecutionTime\":\"2024-03-06T11:08:20.000\",\"secondsToNextExecutionTime\":11,\"status\":\"SCHEDULED\",\"enabled\":true,\"configurable\":false,\"sequence\":[{\"id\":\"DHIS2rocks1\",\"name\":\"Housekeeping\",\"type\":\"HOUSEKEEPING\",\"delay\":20,\"nextExecutionTime\":\"2024-03-06T11:08:20.000\",\"status\":\"SCHEDULED\"}]},{\"name\":\"User account expiry alert\",\"type\":\"ACCOUNT_EXPIRY_ALERT\",\"cronExpression\":\"0 0 2 ? * *\",\"nextExecutionTime\":\"2024-03-07T02:00:00.000\",\"maxDelayedExecutionTime\":\"2024-03-07T06:00:00.000\",\"secondsToNextExecutionTime\":53511,\"secondsToMaxDelayedExecutionTime\":67911,\"status\":\"SCHEDULED\",\"enabled\":true,\"configurable\":false,\"sequence\":[{\"id\":\"fUWM1At1TUx\",\"name\":\"User account expiry alert\",\"type\":\"ACCOUNT_EXPIRY_ALERT\",\"cronExpression\":\"0 0 2 ? * *\",\"nextExecutionTime\":\"2024-03-07T02:00:00.000\",\"status\":\"SCHEDULED\"}]},{\"name\":\"File resource clean up\",\"type\":\"FILE_RESOURCE_CLEANUP\",\"cronExpression\":\"0 0 2 * * ?\",\"nextExecutionTime\":\"2024-03-07T02:00:00.000\",\"maxDelayedExecutionTime\":\"2024-03-07T06:00:00.000\",\"secondsToNextExecutionTime\":53511,\"secondsToMaxDelayedExecutionTime\":67911,\"status\":\"SCHEDULED\",\"enabled\":true,\"configurable\":false,\"sequence\":[{\"id\":\"pd6O228pqr0\",\"name\":\"File resource clean up\",\"type\":\"FILE_RESOURCE_CLEANUP\",\"cronExpression\":\"0 0 2 * * ?\",\"nextExecutionTime\":\"2024-03-07T02:00:00.000\",\"status\":\"SCHEDULED\"}]},{\"name\":\"Data statistics\",\"type\":\"DATA_STATISTICS\",\"cronExpression\":\"0 0 2 * * ?\",\"nextExecutionTime\":\"2024-03-07T02:00:00.000\",\"maxDelayedExecutionTime\":\"2024-03-07T06:00:00.000\",\"secondsToNextExecutionTime\":53511,\"secondsToMaxDelayedExecutionTime\":67911,\"status\":\"SCHEDULED\",\"enabled\":true,\"configurable\":false,\"sequence\":[{\"id\":\"BFa3jDsbtdO\",\"name\":\"Data statistics\",\"type\":\"DATA_STATISTICS\",\"cronExpression\":\"0 0 2 * * ?\",\"nextExecutionTime\":\"2024-03-07T02:00:00.000\",\"status\":\"SCHEDULED\"}]},{\"name\":\"Dataset notification\",\"type\":\"DATA_SET_NOTIFICATION\",\"cronExpression\":\"0 0 2 * * ?\",\"nextExecutionTime\":\"2024-03-07T02:00:00.000\",\"maxDelayedExecutionTime\":\"2024-03-07T06:00:00.000\",\"secondsToNextExecutionTime\":53511,\"secondsToMaxDelayedExecutionTime\":67911,\"status\":\"SCHEDULED\",\"enabled\":true,\"configurable\":false,\"sequence\":[{\"id\":\"YvAwAmrqAtN\",\"name\":\"Dataset notification\",\"type\":\"DATA_SET_NOTIFICATION\",\"cronExpression\":\"0 0 2 * * ?\",\"nextExecutionTime\":\"2024-03-07T02:00:00.000\",\"status\":\"SCHEDULED\"}]},{\"name\":\"Remove expired or used reserved values\",\"type\":\"REMOVE_USED_OR_EXPIRED_RESERVED_VALUES\",\"cronExpression\":\"0 0 2 ? * *\",\"nextExecutionTime\":\"2024-03-07T02:00:00.000\",\"maxDelayedExecutionTime\":\"2024-03-07T06:00:00.000\",\"secondsToNextExecutionTime\":53511,\"secondsToMaxDelayedExecutionTime\":67911,\"status\":\"SCHEDULED\",\"enabled\":true,\"configurable\":false,\"sequence\":[{\"id\":\"uwWCT2BMmlq\",\"name\":\"Remove expired or used reserved values\",\"type\":\"REMOVE_USED_OR_EXPIRED_RESERVED_VALUES\",\"cronExpression\":\"0 0 2 ? * *\",\"nextExecutionTime\":\"2024-03-07T02:00:00.000\",\"status\":\"SCHEDULED\"}]},{\"name\":\"Credentials expiry alert\",\"type\":\"CREDENTIALS_EXPIRY_ALERT\",\"cronExpression\":\"0 0 2 * * ?\",\"nextExecutionTime\":\"2024-03-07T02:00:00.000\",\"maxDelayedExecutionTime\":\"2024-03-07T06:00:00.000\",\"secondsToNextExecutionTime\":53511,\"secondsToMaxDelayedExecutionTime\":67911,\"status\":\"SCHEDULED\",\"enabled\":true,\"configurable\":false,\"sequence\":[{\"id\":\"sHMedQF7VYa\",\"name\":\"Credentials expiry alert\",\"type\":\"CREDENTIALS_EXPIRY_ALERT\",\"cronExpression\":\"0 0 2 * * ?\",\"nextExecutionTime\":\"2024-03-07T02:00:00.000\",\"status\":\"SCHEDULED\"}]},{\"name\":\"System version update check notification\",\"type\":\"SYSTEM_VERSION_UPDATE_CHECK\",\"cronExpression\":\"44 8 3 ? * *\",\"nextExecutionTime\":\"2024-03-07T03:08:44.000\",\"maxDelayedExecutionTime\":\"2024-03-07T07:08:44.000\",\"secondsToNextExecutionTime\":57635,\"secondsToMaxDelayedExecutionTime\":72035,\"status\":\"SCHEDULED\",\"enabled\":true,\"configurable\":false,\"sequence\":[{\"id\":\"vt21671bgno\",\"name\":\"System version update check notification\",\"type\":\"SYSTEM_VERSION_UPDATE_CHECK\",\"cronExpression\":\"44 8 3 ? * *\",\"nextExecutionTime\":\"2024-03-07T03:08:44.000\",\"status\":\"SCHEDULED\"}]},{\"name\":\"Validation result notification\",\"type\":\"VALIDATION_RESULTS_NOTIFICATION\",\"cronExpression\":\"0 0 7 * * ?\",\"nextExecutionTime\":\"2024-03-07T07:00:00.000\",\"maxDelayedExecutionTime\":\"2024-03-07T11:00:00.000\",\"secondsToNextExecutionTime\":71511,\"secondsToMaxDelayedExecutionTime\":85911,\"status\":\"SCHEDULED\",\"enabled\":true,\"configurable\":false,\"sequence\":[{\"id\":\"Js3vHn2AVuG\",\"name\":\"Validation result notification\",\"type\":\"VALIDATION_RESULTS_NOTIFICATION\",\"cronExpression\":\"0 0 7 * * ?\",\"nextExecutionTime\":\"2024-03-07T07:00:00.000\",\"status\":\"SCHEDULED\"}]},{\"name\":\"1\",\"type\":\"HTML_PUSH_ANALYTICS\",\"cronExpression\":\"0 0 3 ? * MON\",\"nextExecutionTime\":\"2024-03-11T03:00:00.000\",\"maxDelayedExecutionTime\":\"2024-03-11T07:00:00.000\",\"secondsToNextExecutionTime\":402711,\"secondsToMaxDelayedExecutionTime\":417111,\"status\":\"SCHEDULED\",\"enabled\":true,\"configurable\":true,\"sequence\":[{\"id\":\"okC34RWePtj\",\"name\":\"1\",\"type\":\"HTML_PUSH_ANALYTICS\",\"cronExpression\":\"0 0 3 ? * MON\",\"nextExecutionTime\":\"2024-03-11T03:00:00.000\",\"status\":\"SCHEDULED\"}]}]",
"responseSize": 5142,
"responseHeaders": {
"server": "nginx/1.23.0",
"content-type": "application/json;charset=UTF-8",
Expand Down

Large diffs are not rendered by default.

Large diffs are not rendered by default.

102 changes: 84 additions & 18 deletions cypress/fixtures/network/41/users_should_be_able_to_delete_a_job.json

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Loading

0 comments on commit ff72b11

Please sign in to comment.