-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update testing to use parameterised tests and exhaustively test all t…
…he background status variations
- Loading branch information
1 parent
46a19b4
commit 5cf7bf0
Showing
6 changed files
with
314 additions
and
551 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 36 additions & 0 deletions
36
doajtest/matrices/background_task_status/background_task_status.matrix.csv
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
test_id,in_queue,oldest_queued,error_count,error_age,lrs_success_or_error,queued,errors,lrs | ||
1,0,young,0,out_of_period,complete,stable,stable,stable | ||
2,0,young,0,out_of_period,error,stable,stable,unstable | ||
3,0,young,0,out_of_period,empty,stable,stable,unstable | ||
4,0,young,1,in_period,complete,stable,unstable,stable | ||
5,0,young,1,in_period,error,stable,unstable,unstable | ||
6,0,young,1,out_of_period,complete,stable,stable,stable | ||
7,0,young,1,out_of_period,error,stable,stable,unstable | ||
8,1,old,0,out_of_period,complete,unstable,stable,stable | ||
9,1,old,0,out_of_period,error,unstable,stable,unstable | ||
10,1,old,0,out_of_period,empty,unstable,stable,unstable | ||
11,1,old,1,in_period,complete,unstable,unstable,stable | ||
12,1,old,1,in_period,error,unstable,unstable,unstable | ||
13,1,old,1,out_of_period,complete,unstable,stable,stable | ||
14,1,old,1,out_of_period,error,unstable,stable,unstable | ||
15,1,young,0,out_of_period,complete,stable,stable,stable | ||
16,1,young,0,out_of_period,error,stable,stable,unstable | ||
17,1,young,0,out_of_period,empty,stable,stable,unstable | ||
18,1,young,1,in_period,complete,stable,unstable,stable | ||
19,1,young,1,in_period,error,stable,unstable,unstable | ||
20,1,young,1,out_of_period,complete,stable,stable,stable | ||
21,1,young,1,out_of_period,error,stable,stable,unstable | ||
22,2,old,0,out_of_period,complete,unstable,stable,stable | ||
23,2,old,0,out_of_period,error,unstable,stable,unstable | ||
24,2,old,0,out_of_period,empty,unstable,stable,unstable | ||
25,2,old,1,in_period,complete,unstable,unstable,stable | ||
26,2,old,1,in_period,error,unstable,unstable,unstable | ||
27,2,old,1,out_of_period,complete,unstable,stable,stable | ||
28,2,old,1,out_of_period,error,unstable,stable,unstable | ||
29,2,young,0,out_of_period,complete,unstable,stable,stable | ||
30,2,young,0,out_of_period,error,unstable,stable,unstable | ||
31,2,young,0,out_of_period,empty,unstable,stable,unstable | ||
32,2,young,1,in_period,complete,unstable,unstable,stable | ||
33,2,young,1,in_period,error,unstable,unstable,unstable | ||
34,2,young,1,out_of_period,complete,unstable,stable,stable | ||
35,2,young,1,out_of_period,error,unstable,stable,unstable |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
150 changes: 150 additions & 0 deletions
150
doajtest/matrices/background_task_status/background_task_status.settings.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,150 @@ | ||
{ | ||
"parameters": [ | ||
{ | ||
"name": "test_id", | ||
"type": "index" | ||
}, | ||
{ | ||
"name": "in_queue", | ||
"type": "generated", | ||
"values": { | ||
"0": { | ||
"constraints": { | ||
"oldest_queued": { | ||
"or": [ | ||
"young" | ||
] | ||
} | ||
} | ||
}, | ||
"1": {}, | ||
"2": {} | ||
} | ||
}, | ||
{ | ||
"name": "oldest_queued", | ||
"type": "generated", | ||
"values": { | ||
"old": {}, | ||
"young": {} | ||
} | ||
}, | ||
{ | ||
"name": "error_count", | ||
"type": "generated", | ||
"values": { | ||
"0": { | ||
"constraints": { | ||
"error_age": { | ||
"or": [ | ||
"out_of_period" | ||
] | ||
} | ||
} | ||
}, | ||
"1": { | ||
"constraints": { | ||
"lrs_success_or_error": { | ||
"nor": [ | ||
"empty" | ||
] | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
{ | ||
"name": "error_age", | ||
"type": "generated", | ||
"values": { | ||
"in_period": {}, | ||
"out_of_period": {} | ||
} | ||
}, | ||
{ | ||
"name": "lrs_success_or_error", | ||
"type": "generated", | ||
"values": { | ||
"complete": {}, | ||
"error": {}, | ||
"empty": {} | ||
} | ||
}, | ||
{ | ||
"name": "queued", | ||
"type": "conditional", | ||
"default": "stable", | ||
"values": { | ||
"stable": {}, | ||
"unstable": { | ||
"conditions": [ | ||
{ | ||
"in_queue": { | ||
"or": [ | ||
"2" | ||
] | ||
} | ||
}, | ||
{ | ||
"oldest_queued": { | ||
"or": [ | ||
"old" | ||
] | ||
} | ||
} | ||
] | ||
} | ||
} | ||
}, | ||
{ | ||
"name": "errors", | ||
"type": "conditional", | ||
"default": "stable", | ||
"values": { | ||
"stable": {}, | ||
"unstable": { | ||
"conditions": [ | ||
{ | ||
"error_count": { | ||
"or": [ | ||
"1" | ||
] | ||
}, | ||
"error_age": { | ||
"or": [ | ||
"in_period" | ||
] | ||
} | ||
} | ||
] | ||
} | ||
} | ||
}, | ||
{ | ||
"name": "lrs", | ||
"type": "conditional", | ||
"default": "stable", | ||
"values": { | ||
"stable": {}, | ||
"unstable": { | ||
"conditions": [ | ||
{ | ||
"lrs_success_or_error": { | ||
"or": [ | ||
"error" | ||
] | ||
} | ||
}, | ||
{ | ||
"lrs_success_or_error": { | ||
"or": [ | ||
"empty" | ||
] | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
] | ||
} |
Oops, something went wrong.