Skip to content

Commit

Permalink
#325: fix automation tests after adding type verification
Browse files Browse the repository at this point in the history
  • Loading branch information
JoernBerkefeld committed Aug 24, 2023
1 parent 1099ed4 commit 733b201
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 15 deletions.
4 changes: 4 additions & 0 deletions test/resources/9999999/automation/build-expected.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@
{
"name": "testTemplated_script",
"r__type": "script"
},
{
"name": "testTemplated_39f6a488-20eb-4ba0-b0b9",
"r__type": "verification"
}
],
"name": ""
Expand Down
4 changes: 4 additions & 0 deletions test/resources/9999999/automation/template-expected.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@
{
"name": "{{{prefix}}}script",
"r__type": "script"
},
{
"name": "{{{prefix}}}39f6a488-20eb-4ba0-b0b9",
"r__type": "verification"
}
],
"name": ""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"name": "testExisting_automation",
"description": "bla bla",
"clientId": 9999999,
"status": "Building",
"status": "Scheduled",
"createdBy": {
"id": "NzE3MzUzNDA1OjQ6MA",
"name": "Tom Tester",
Expand Down
25 changes: 13 additions & 12 deletions test/type.automation.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ describe('type: automation', () => {

assert.equal(
testUtils.getAPIHistoryLength(),
16,
21,
'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests'
);
return;
Expand Down Expand Up @@ -188,7 +188,7 @@ describe('type: automation', () => {

assert.equal(
testUtils.getAPIHistoryLength(),
24,
29,
'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests'
);
return;
Expand Down Expand Up @@ -256,7 +256,7 @@ describe('type: automation', () => {

assert.equal(
testUtils.getAPIHistoryLength(),
20,
25,
'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests'
);
return;
Expand Down Expand Up @@ -288,10 +288,11 @@ describe('type: automation', () => {
1,
'one automation expected'
);
testUtils.logAPIHistoryDebug();
// check number of API calls
assert.equal(
testUtils.getAPIHistoryLength(),
14,
18,
'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests'
);
return;
Expand Down Expand Up @@ -335,7 +336,7 @@ describe('type: automation', () => {
// check number of API calls
assert.equal(
testUtils.getAPIHistoryLength(),
29,
40,
'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests'
);
return;
Expand Down Expand Up @@ -379,7 +380,7 @@ describe('type: automation', () => {
// check number of API calls
assert.equal(
testUtils.getAPIHistoryLength(),
31,
42,
'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests'
);
return;
Expand Down Expand Up @@ -423,7 +424,7 @@ describe('type: automation', () => {
// check number of API calls
assert.equal(
testUtils.getAPIHistoryLength(),
32,
43,
'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests'
);
return;
Expand Down Expand Up @@ -463,7 +464,7 @@ describe('type: automation', () => {
// check number of API calls
assert.equal(
testUtils.getAPIHistoryLength(),
26,
35,
'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests'
);
return;
Expand Down Expand Up @@ -504,7 +505,7 @@ describe('type: automation', () => {
// check number of API calls
assert.equal(
testUtils.getAPIHistoryLength(),
30,
41,
'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests'
);
return;
Expand Down Expand Up @@ -545,7 +546,7 @@ describe('type: automation', () => {
// check number of API calls
assert.equal(
testUtils.getAPIHistoryLength(),
32,
43,
'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests'
);
return;
Expand Down Expand Up @@ -596,7 +597,7 @@ describe('type: automation', () => {
);
assert.equal(
testUtils.getAPIHistoryLength(),
14,
20,
'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests'
);
return;
Expand Down Expand Up @@ -643,7 +644,7 @@ describe('type: automation', () => {
);
assert.equal(
testUtils.getAPIHistoryLength(),
17,
18,
'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests'
);
return;
Expand Down
4 changes: 2 additions & 2 deletions test/type.query.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,7 @@ describe('type: query', () => {
// check number of API calls
assert.equal(
testUtils.getAPIHistoryLength(),
36,
34,
'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests'
);
return;
Expand Down Expand Up @@ -498,7 +498,7 @@ describe('type: query', () => {
// check number of API calls
assert.equal(
testUtils.getAPIHistoryLength(),
38,
36,
'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests'
);
return;
Expand Down

0 comments on commit 733b201

Please sign in to comment.