Skip to content

Commit 240c490

Browse files
authored
Merge pull request #17 from JaredCE/fix-tests-for
Fix tests for
2 parents 4fbcf5b + 5f50936 commit 240c490

File tree

3 files changed

+42
-43
lines changed

3 files changed

+42
-43
lines changed

test/mocks/multiple-workflows/single-sourceDescription/arazzoMock-user-with-successCriteria-and-onSuccess-set-to-goto-different-workflow.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@
8585
"requestBody": {
8686
"contentType": "application/json",
8787
"payload": {
88-
"username": "$workflows.createUser.outputs.username",
88+
"username": "$workflow.createUser.outputs.username",
8989
"password": "$inputs.password"
9090
}
9191
},

test/unit/Arazzo.spec.js

Lines changed: 21 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ const OpenAPI = require("../../src/OpenAPI.js");
1818

1919
const Arazzo = require("../../src/Arazzo");
2020

21-
xdescribe(`Arazzo Document`, function () {
21+
describe(`Arazzo Document`, function () {
2222
let parser = {};
2323
const logger = new Logger();
2424

@@ -4915,7 +4915,7 @@ xdescribe(`Arazzo Document`, function () {
49154915

49164916
describe(`with successCriteria`, function () {
49174917
describe(`with onSuccess`, function () {
4918-
xdescribe(`goto`, function () {
4918+
describe(`goto`, function () {
49194919
it(`should handle going to a different workflow`, async function () {
49204920
nock("https://raw.githubusercontent.com:443", {
49214921
encodedQueryParams: true,
@@ -5333,7 +5333,7 @@ xdescribe(`Arazzo Document`, function () {
53335333
});
53345334
});
53355335

5336-
xit(`should throw an error when the operationId does not exist in the OpenAPI document`, async function () {
5336+
it(`should throw an error when the operationId does not exist in the OpenAPI document`, async function () {
53375337
nock("https://raw.githubusercontent.com:443", {
53385338
encodedQueryParams: true,
53395339
})
@@ -5503,45 +5503,44 @@ xdescribe(`Arazzo Document`, function () {
55035503
describe(`single workflow`, function () {
55045504
describe(`single step`, function () {
55055505
it(`resolve if the outputs resolve on a 201`, async function () {
5506-
// nock.recorder.rec();
55075506
nock("https://raw.githubusercontent.com:443", {
55085507
encodedQueryParams: true,
55095508
})
55105509
.get(
5511-
"/JaredCE/Arazzo-Runner/refs/heads/create-a-runner/test/mocks/single-workflow/single-step/arazzoMock-user-single-workflow-single-step.json",
5510+
"/JaredCE/Arazzo-Runner/refs/heads/main/test/mocks/single-workflow/single-step/arazzoMock-user-single-workflow-single-step.json",
55125511
)
55135512
.reply(
55145513
200,
55155514
[
5516-
"1f8b080000000000001395534d6fdb300cbdfb5710ea8e8bd55e73cbba1dba4351a01d76187a506c2651674b1a49374883fcf741b2e38ff403a94f32f91ef5483eed330065c8bcbc78350775955fe657ea6b0c5ab78aa17d0600a0c44a8511d130122704802a910bb241ac7731f7b04158a45af0dbd3df55e5b7b0f20406ee50e05e3c21fc62a4239d9bba36b48bd40519734a7b9bf48cc4dd7d51eda5ca000e4931fb860afc3e686235873f89d57601a09ca98736663ea05bdcdd74a501544355cc6e4402cfb526b3cdd75636cd32e20bef049de485aff54f43585effd08cf48c5421f3ac9de26cdbb5c09a70c57a83a6645d1bebb420cb989034e8a8c1049b3fb1778310d985a4b3cbaa143f64008fa9d5fe92d71d1e533765e41784467034bfe9d8af531a0c38dcc21475b2dbc5b01bf150bccfb32e34c2bd73a6dd2c9fb0901e0ba002f9802416a70c68377412fba8d2c7d5fa8addfef7432516b26ead5a0f4df02b4b2cb79f2054e67378ac8dadce0507c3bcf5549e8ddf7877b692389a7b31d2f094619de01a4925eb0ddff86f381f4f87c1698261b0288c6cdaa7c7365d4c9c9420719f267af05d3b2718e1bf0659bef972f7da33ddbb7de87a322154b64845f5e4d1f583de55dea4ebbeb466ce9317c73d4f353672b43c28db12093978c7982f7db9bbd0b6546f0cea7178d5d921fb0f25cc3d638b050000",
5515+
"1f8b08000000000000139553b172db300cddf51538a6632326ab3737ed900eb95c935e875e065a826d2612c902507d8ecfffde23259b96ebe41c4d14f11e80073c6e0a0065c8bcbe7a3501755d5e95d7ea73bcb46e1eaf36050080122b0d4644c7489c1000aa46aec806b1dec5d8e312619a72c12f4f2ff3c6af60ee090cdca3c0837842f8c9483b3a776d6b681da95332e698769af41789877ab1db2b55006c53c7ec3baaf06bee89d5047e2756af024039d36619973ea09bdedf0ea90154474d8c2e45024fb426b32a175696dd2ce22bef049d94956ff5774358df7cd3bddccb1f9d73489a70ce7a89a666dd1aebb4208b6e7df5c23a9632c1ea5cd8045b3eb377b9baac436a6e88aa74bf2d009e92bed5309c13b276a1db3af22b42237830b4f1ac6f52180c385cc11875b4d0695e8878a8dee659173ae1bd5dc66a66cf58c91e0ba002f9802416c70ce8d77274f75ea6f7b3ed330e4bdfe44c2c64dd42f5c619e1e79658ee3e4068ccc7f0d81adb9c0b0e8679e5a93e1bbff4eeec4ee2681ec448c7638675820b2495ac97bfc3bf7cde9db6d96982215b140e6cba0f1fda743a725282c47d9ae8c137ed9c60847f3a64f9e2ebf5ff9e191eebe3a0c984d0d82a25d5a347b71ff4baf12695fbd49bb94c5e3cd43ceeb1939de541d99e48c8c13bc672e6ebf585b6b53a31a8a7fcaa8b6df10f42f86f7f80050000",
55175516
],
55185517
{
55195518
"accept-ranges": "bytes",
55205519
"access-control-allow-origin": "*",
55215520
"cache-control": "max-age=300",
55225521
connection: "keep-alive",
55235522
"content-encoding": "gzip",
5524-
"content-length": "511",
5523+
"content-length": "510",
55255524
"content-security-policy":
55265525
"default-src 'none'; style-src 'unsafe-inline'; sandbox",
55275526
"content-type": "text/plain; charset=utf-8",
55285527
"cross-origin-resource-policy": "cross-origin",
5529-
date: "Tue, 13 Jan 2026 00:12:25 GMT",
5530-
etag: 'W/"77ce00e01c3f4b4a62b9ebe7f7692ef30b0e53580fe6b59ac67d490a344ac1eb"',
5531-
expires: "Tue, 13 Jan 2026 00:17:25 GMT",
5532-
"source-age": "135",
5528+
date: "Wed, 14 Jan 2026 15:38:18 GMT",
5529+
etag: 'W/"92f9a0783c41491dd6ace8818df8d07c359dca87d21d472a7d1038dc51736661"',
5530+
expires: "Wed, 14 Jan 2026 15:43:18 GMT",
5531+
"source-age": "0",
55335532
"strict-transport-security": "max-age=31536000",
55345533
vary: "Authorization,Accept-Encoding",
55355534
via: "1.1 varnish",
55365535
"x-cache": "HIT",
5537-
"x-cache-hits": "1",
5536+
"x-cache-hits": "0",
55385537
"x-content-type-options": "nosniff",
55395538
"x-fastly-request-id":
5540-
"2ae7ed75448e64ff71c4abcde83507c53d2dd5d2",
5539+
"f7c7ddab65b5f8352f08e6b18a3ca2ca429ce591",
55415540
"x-frame-options": "deny",
5542-
"x-github-request-id": "AD24:1C90BF:9F368:13BB55:69658C24",
5543-
"x-served-by": "cache-lhr-egll1980079-LHR",
5544-
"x-timer": "S1768263145.270707,VS0,VE0",
5541+
"x-github-request-id": "29AB:37AEF1:11C32:1EE31:6967B633",
5542+
"x-served-by": "cache-lhr-egll1980085-LHR",
5543+
"x-timer": "S1768405098.425447,VS0,VE97",
55455544
"x-xss-protection": "1; mode=block",
55465545
},
55475546
);
@@ -5568,9 +5567,9 @@ xdescribe(`Arazzo Document`, function () {
55685567
"default-src 'none'; style-src 'unsafe-inline'; sandbox",
55695568
"content-type": "text/plain; charset=utf-8",
55705569
"cross-origin-resource-policy": "cross-origin",
5571-
date: "Tue, 13 Jan 2026 00:06:15 GMT",
5570+
date: "Wed, 14 Jan 2026 15:38:18 GMT",
55725571
etag: 'W/"d38379461bc9571f3e57ed61b7c4f2b6d189a3b3cf79f0449c1fde6e9379637e"',
5573-
expires: "Tue, 13 Jan 2026 00:11:15 GMT",
5572+
expires: "Wed, 14 Jan 2026 15:43:18 GMT",
55745573
"source-age": "0",
55755574
"strict-transport-security": "max-age=31536000",
55765575
vary: "Authorization,Accept-Encoding",
@@ -5579,11 +5578,11 @@ xdescribe(`Arazzo Document`, function () {
55795578
"x-cache-hits": "0",
55805579
"x-content-type-options": "nosniff",
55815580
"x-fastly-request-id":
5582-
"8c6469ffb4eafc17295e8846265683f8c5db8d51",
5581+
"3479045fc73c4841062577a40fda91247932c871",
55835582
"x-frame-options": "deny",
5584-
"x-github-request-id": "FD2A:205ED8:90DED:118AE0:69657E8B",
5585-
"x-served-by": "cache-lhr-egll1980090-LHR",
5586-
"x-timer": "S1768262775.420141,VS0,VE96",
5583+
"x-github-request-id": "71BA:2BAC73:289635:4D4859:6967AB80",
5584+
"x-served-by": "cache-lhr-egll1980085-LHR",
5585+
"x-timer": "S1768405099.546242,VS0,VE104",
55875586
"x-xss-protection": "1; mode=block",
55885587
},
55895588
);

test/unit/Runner.spec.js

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const nock = require("nock");
55

66
const Runner = require("../../src/Runner");
77

8-
xdescribe(`Runner`, function () {
8+
describe(`Runner`, function () {
99
describe(`runArazzo`, function () {
1010
it(`should run an arrazo collection and resolve if the outputs resolve on a 201`, async function () {
1111
nock("https://raw.githubusercontent.com:443", {
@@ -17,34 +17,34 @@ xdescribe(`Runner`, function () {
1717
.reply(
1818
200,
1919
[
20-
"1f8b080000000000001395534d6fdb300cbdfb5710ea8e8bd55e73cbba1dba4351a01d76187a506c2651674b1a49374883fcf741b2e38ff403a94f32f91ef5483eed330065c8bcbc78350775955fe657ea6b0c5ab78aa17d0600a0c44a8511d130122704802a910bb241ac7731f7b04158a45af0dbd3df55e5b7b0f20406ee50e05e3c21fc62a4239d9bba36b48bd40519734a7b9bf48cc4dd7d51eda5ca000e4931fb860afc3e686235873f89d57601a09ca98736663ea05bdcdd74a501544355cc6e4402cfb526b3cdd75636cd32e20bef049de485aff54f43585effd08cf48c5421f3ac9de26cdbb5c09a70c57a83a6645d1bebb420cb989034e8a8c1049b3fb1778310d985a4b3cbaa143f64008fa9d5fe92d71d1e533765e41784467034bfe9d8af531a0c38dcc21475b2dbc5b01bf150bccfb32e34c2bd73a6dd2c9fb0901e0ba002f9802416a70c68377412fba8d2c7d5fa8addfef7432516b26ead5a0f4df02b4b2cb79f2054e67378ac8dadce0507c3bcf5549e8ddf7877b692389a7b31d2f094619de01a4925eb0ddff86f381f4f87c1698261b0288c6cdaa7c7365d4c9c9420719f267af05d3b2718e1bf0659bef972f7da33ddbb7de87a322154b64845f5e4d1f583de55dea4ebbeb466ce9317c73d4f353672b43c28db12093978c7982f7db9bbd0b6546f0cea7178d5d921fb0f25cc3d638b050000",
20+
"1f8b08000000000000139553b172db300cddf51538a6632326ab3737ed900eb95c935e875e065a826d2612c902507d8ecfffde23259b96ebe41c4d14f11e80073c6e0a0065c8bcbe7a3501755d5e95d7ea73bcb46e1eaf36050080122b0d4644c7489c1000aa46aec806b1dec5d8e312619a72c12f4f2ff3c6af60ee090cdca3c0837842f8c9483b3a776d6b681da95332e698769af41789877ab1db2b55006c53c7ec3baaf06bee89d5047e2756af024039d36619973ea09bdedf0ea90154474d8c2e45024fb426b32a175696dd2ce22bef049d94956ff5774358df7cd3bddccb1f9d73489a70ce7a89a666dd1aebb4208b6e7df5c23a9632c1ea5cd8045b3eb377b9baac436a6e88aa74bf2d009e92bed5309c13b276a1db3af22b42237830b4f1ac6f52180c385cc11875b4d0695e8878a8dee659173ae1bd5dc66a66cf58c91e0ba002f9802416c70ce8d77274f75ea6f7b3ed330e4bdfe44c2c64dd42f5c619e1e79658ee3e4068ccc7f0d81adb9c0b0e8679e5a93e1bbff4eeec4ee2681ec448c7638675820b2495ac97bfc3bf7cde9db6d96982215b140e6cba0f1fda743a725282c47d9ae8c137ed9c60847f3a64f9e2ebf5ff9e191eebe3a0c984d0d82a25d5a347b71ff4baf12695fbd49bb94c5e3cd43ceeb1939de541d99e48c8c13bc672e6ebf585b6b53a31a8a7fcaa8b6df10f42f86f7f80050000",
2121
],
2222
{
2323
"accept-ranges": "bytes",
2424
"access-control-allow-origin": "*",
2525
"cache-control": "max-age=300",
2626
connection: "keep-alive",
2727
"content-encoding": "gzip",
28-
"content-length": "511",
28+
"content-length": "510",
2929
"content-security-policy":
3030
"default-src 'none'; style-src 'unsafe-inline'; sandbox",
3131
"content-type": "text/plain; charset=utf-8",
3232
"cross-origin-resource-policy": "cross-origin",
33-
date: "Wed, 14 Jan 2026 15:04:49 GMT",
34-
etag: 'W/"77ce00e01c3f4b4a62b9ebe7f7692ef30b0e53580fe6b59ac67d490a344ac1eb"',
35-
expires: "Wed, 14 Jan 2026 15:09:49 GMT",
36-
"source-age": "281",
33+
date: "Wed, 14 Jan 2026 15:28:52 GMT",
34+
etag: 'W/"92f9a0783c41491dd6ace8818df8d07c359dca87d21d472a7d1038dc51736661"',
35+
expires: "Wed, 14 Jan 2026 15:33:52 GMT",
36+
"source-age": "0",
3737
"strict-transport-security": "max-age=31536000",
3838
vary: "Authorization,Accept-Encoding",
3939
via: "1.1 varnish",
40-
"x-cache": "HIT",
40+
"x-cache": "MISS",
4141
"x-cache-hits": "0",
4242
"x-content-type-options": "nosniff",
43-
"x-fastly-request-id": "a674845e3c88a3390c2470a5406591dfea37a185",
43+
"x-fastly-request-id": "166c80c877e179616f36988af770cb759d9d9363",
4444
"x-frame-options": "deny",
45-
"x-github-request-id": "A990:3530D7:4461:73DC:6967AF79",
46-
"x-served-by": "cache-lhr-egll1980073-LHR",
47-
"x-timer": "S1768403090.970273,VS0,VE3",
45+
"x-github-request-id": "29AB:37AEF1:11C32:1EE31:6967B633",
46+
"x-served-by": "cache-lhr-egll1980020-LHR",
47+
"x-timer": "S1768404533.745660,VS0,VE128",
4848
"x-xss-protection": "1; mode=block",
4949
},
5050
);
@@ -71,21 +71,21 @@ xdescribe(`Runner`, function () {
7171
"default-src 'none'; style-src 'unsafe-inline'; sandbox",
7272
"content-type": "text/plain; charset=utf-8",
7373
"cross-origin-resource-policy": "cross-origin",
74-
date: "Mon, 12 Jan 2026 23:06:53 GMT",
74+
date: "Wed, 14 Jan 2026 15:28:52 GMT",
7575
etag: 'W/"d38379461bc9571f3e57ed61b7c4f2b6d189a3b3cf79f0449c1fde6e9379637e"',
76-
expires: "Mon, 12 Jan 2026 23:11:53 GMT",
77-
"source-age": "0",
76+
expires: "Wed, 14 Jan 2026 15:33:52 GMT",
77+
"source-age": "95",
7878
"strict-transport-security": "max-age=31536000",
7979
vary: "Authorization,Accept-Encoding",
8080
via: "1.1 varnish",
81-
"x-cache": "MISS",
81+
"x-cache": "HIT",
8282
"x-cache-hits": "0",
8383
"x-content-type-options": "nosniff",
84-
"x-fastly-request-id": "4c8c64bd35af0184d87ccbbff9455288449b88e7",
84+
"x-fastly-request-id": "43babc4d80b7096c92ad0e48d75c5372c81569c1",
8585
"x-frame-options": "deny",
86-
"x-github-request-id": "FD2A:205ED8:90DED:118AE0:69657E8B",
87-
"x-served-by": "cache-lhr-egll1980023-LHR",
88-
"x-timer": "S1768259213.919620,VS0,VE125",
86+
"x-github-request-id": "71BA:2BAC73:289635:4D4859:6967AB80",
87+
"x-served-by": "cache-lhr-egll1980020-LHR",
88+
"x-timer": "S1768404533.931263,VS0,VE2",
8989
"x-xss-protection": "1; mode=block",
9090
},
9191
);

0 commit comments

Comments
 (0)