Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions dbquery/pagination/tests/Test.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const fs = require("fs");
const path = require("node:path");
const {
deployAndRun,
authTypes,
stepzen,
getTestDescription,
} = require("../../../tests/gqltest.js");

Expand Down Expand Up @@ -44,7 +44,6 @@ describe(testDescription, function () {
}
}
},
authType: authTypes.adminKey,
},
{
label: "next set of results",
Expand Down Expand Up @@ -76,8 +75,7 @@ describe(testDescription, function () {
}
}
},
authType: authTypes.adminKey,
},
];
return deployAndRun(__dirname, tests);
return deployAndRun(__dirname, tests, stepzen.admin);
});
1 change: 0 additions & 1 deletion dbquery/pings/postgresql/tests/Test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
const {
deployAndRun,
authTypes,
getTestDescription,
} = require("../../../../tests/gqltest.js");

Expand Down
7 changes: 2 additions & 5 deletions executable/persisted/tests/Test.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const path = require("node:path");

const {
deployAndRun,
authTypes,
stepzen,
getTestDescription,
} = require("../../../tests/gqltest.js");

Expand All @@ -27,7 +27,6 @@ describe(testDescription, function () {
name: "Tromp",
},
},
authType: authTypes.adminKey,
},
{
label: "CustomerName",
Expand All @@ -42,7 +41,6 @@ describe(testDescription, function () {
email: "[email protected]",
},
},
authType: authTypes.adminKey,
},
{
label: "Customer",
Expand All @@ -64,8 +62,7 @@ describe(testDescription, function () {
},
},
},
authType: authTypes.adminKey,
},
];
return deployAndRun(__dirname, tests);
return deployAndRun(__dirname, tests,stepzen.admin);
});
5 changes: 2 additions & 3 deletions materializer/nestedfieldselection/tests/Test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const {
deployAndRun,
authTypes,
stepzen,
getTestDescription,
} = require("../../../tests/gqltest.js");

Expand All @@ -24,8 +24,7 @@ describe(testDescription, function () {
}
}
},
authType: authTypes.adminKey,
},
]
return deployAndRun(__dirname, tests);
return deployAndRun(__dirname, tests, stepzen.admin);
});
6 changes: 2 additions & 4 deletions protection/makeAllPublic/tests/Test.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const fs = require("fs");
const path = require("node:path");
const {
deployAndRun,
authTypes,
stepzen,
getTestDescription,
} = require("../../../tests/gqltest.js");

Expand All @@ -27,7 +27,6 @@ describe(testDescription, function () {
city: "Miami",
},
},
authType: authTypes.noAuth,
},
{
label: "customer-2",
Expand All @@ -42,8 +41,7 @@ describe(testDescription, function () {
city: "Santa Clara",
},
},
authType: authTypes.noAuth,
},
];
return deployAndRun(__dirname, tests);
return deployAndRun(__dirname, tests, stepzen.public());
});
7 changes: 2 additions & 5 deletions protection/makeSomePublic/tests/Test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const {
deployAndRun,
authTypes,
stepzen,
getTestDescription,
} = require("../../../tests/gqltest.js");

Expand All @@ -14,15 +14,13 @@ describe(testDescription, function () {
expected: {
customer: { name: "John Doe", city: "Miami" },
},
authType: authTypes.adminKey,
},
{
label: "customer(2)",
query: "{customer(id:2){name city}}",
expected: {
customer: { name: "Jane Smith", city: "Santa Clara" },
},
authType: authTypes.adminKey,
},
{
label: "customers",
Expand All @@ -33,8 +31,7 @@ describe(testDescription, function () {
{ name: "Jane Smith", city: "Santa Clara" },
],
},
authType: authTypes.adminKey,
},
];
return deployAndRun(__dirname, tests);
return deployAndRun(__dirname, tests, stepzen.admin);
});
13 changes: 2 additions & 11 deletions reshape/fields/tests/Test.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const fs = require("fs");
const path = require("node:path");
const {
deployAndRun,
authTypes,
stepzen,
getTestDescription,
} = require("../../../tests/gqltest.js");

Expand All @@ -22,7 +22,6 @@ describe(testDescription, function () {
name: "Leia Organa",
},
},
authType: authTypes.adminKey,
},
{
label: "person",
Expand All @@ -33,7 +32,6 @@ describe(testDescription, function () {
name: "Han Solo",
},
},
authType: authTypes.adminKey,
},
{
label: "defaultHero",
Expand All @@ -44,7 +42,6 @@ describe(testDescription, function () {
name: "R2-D2",
},
},
authType: authTypes.adminKey,
},
{
label: "luke",
Expand All @@ -55,7 +52,6 @@ describe(testDescription, function () {
name: "Luke Skywalker",
},
},
authType: authTypes.adminKey,
},
{
label: "robot",
Expand All @@ -66,7 +62,6 @@ describe(testDescription, function () {
name: "C-3PO",
},
},
authType: authTypes.adminKey,
},
{
label: "robotDefault",
Expand All @@ -77,7 +72,6 @@ describe(testDescription, function () {
name: "R2-D2",
},
},
authType: authTypes.adminKey,
},
{
label: "humanName",
Expand All @@ -86,7 +80,6 @@ describe(testDescription, function () {
expected: {
humanName: "Leia Organa",
},
authType: authTypes.adminKey,
},
{
label: "droidFriends",
Expand All @@ -112,7 +105,6 @@ describe(testDescription, function () {
},
],
},
authType: authTypes.adminKey,
},
{
label: "humanFriendsNames",
Expand All @@ -121,8 +113,7 @@ describe(testDescription, function () {
expected: {
humanFriendsNames: ["C-3PO", "Han Solo", "Luke Skywalker", "R2-D2"],
},
authType: authTypes.adminKey,
},
];
return deployAndRun(__dirname, tests);
return deployAndRun(__dirname, tests, stepzen.admin);
});
6 changes: 2 additions & 4 deletions reshape/subset/tests/Test.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const fs = require("fs");
const path = require("node:path");
const {
deployAndRun,
authTypes,
stepzen,
getTestDescription,
} = require("../../../tests/gqltest.js");

Expand All @@ -23,14 +23,12 @@ describe(testDescription, function () {
appearsIn: ["NEWHOPE", "EMPIRE", "JEDI"],
},
},
authType: authTypes.adminKey,
},
{
label: "version",
query: "{version { __typename}}",
expected: { version: { __typename: "Version" } },
authType: authTypes.adminKey,
},
];
return deployAndRun(__dirname, tests);
return deployAndRun(__dirname, tests, stepzen.admin);
});
1 change: 0 additions & 1 deletion rest/morecomplexpost/tests/Test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
const {
deployAndRun,
authTypes,
getTestDescription,
} = require("../../../tests/gqltest.js");

Expand Down
9 changes: 2 additions & 7 deletions rest/pagination/tests/Test.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const fs = require('fs');
const path = require("node:path");
const {
deployAndRun,
authTypes,
stepzen,
getTestDescription,
} = require("../../../tests/gqltest.js");

Expand Down Expand Up @@ -42,7 +42,6 @@ describe(testDescription, function () {
},
},
},
authType: authTypes.adminKey,
},
{
label: "customerPageNumber-11-20",
Expand All @@ -63,7 +62,6 @@ describe(testDescription, function () {
},
},
},
authType: authTypes.adminKey,
},
{
label: "customerPageNumber-21-23",
Expand All @@ -84,7 +82,6 @@ describe(testDescription, function () {
},
},
},
authType: authTypes.adminKey,
},
{
label: "firstCustomer",
Expand All @@ -93,7 +90,6 @@ describe(testDescription, function () {
expected: {
firstCustomer: generateNodes(1, 1)[0].node,
},
authType: authTypes.adminKey,
},
{
label: "firstNCustomers",
Expand All @@ -103,8 +99,7 @@ describe(testDescription, function () {
expected: {
nCustomers: generateNodes(1, 5).map(edge => edge.node),
},
authType: authTypes.adminKey,
},
];
return deployAndRun(__dirname, tests);
return deployAndRun(__dirname, tests, stepzen.admin);
});
1 change: 0 additions & 1 deletion rest/postbody/tests/Test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
const {
deployAndRun,
authTypes,
getTestDescription,
} = require("../../../tests/gqltest.js");

Expand Down
5 changes: 2 additions & 3 deletions rest/restWithConfigYaml/tests/Test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const {
deployAndRun,
authTypes,
stepzen,
getTestDescription,
} = require("../../../tests/gqltest.js");

Expand All @@ -12,8 +12,7 @@ describe(testDescription, function () {
{ label: "restquerywithconfig(q)",
query: '{rest(q: ["Joe Smith", "Jane Smith"]) { args { q } url } }',
expected: {rest: {args: {q: ["Joe Smith", "Jane Smith"],},url: "https://httpbingo.org/get?apikey=56hdlks45reghunq&q=Joe+Smith&q=Jane+Smith",},},
authType: authTypes.adminKey,
},
]
return deployAndRun(__dirname, tests);
return deployAndRun(__dirname, tests, stepzen.admin);
});
7 changes: 2 additions & 5 deletions rest/restWithParameters/tests/Test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const {
deployAndRun,
authTypes,
stepzen,
getTestDescription,
} = require("../../../tests/gqltest.js");

Expand All @@ -11,18 +11,15 @@ describe(testDescription, function () {
{ label: "restquery(q,v)",
query: '{restquery(q: ["Joe Smith", "Jane Smith"] v:"New York") { args { q v } url } }',
expected: {restquery: {args: {q: ["Joe Smith", "Jane Smith"],v: ["New York"],},url: "https://httpbingo.org/get?q=Joe+Smith&q=Jane+Smith&v=New+York",},},
authType: authTypes.adminKey,
},
{ label: "restquery(v)",
query: '{restquery(v:"New York") { args { q v } url } }',
expected: {restquery: {args: {q: null,v: ["New York"],}, url: "https://httpbingo.org/get?v=New+York",},},
authType: authTypes.adminKey,
},
{ label: "restquery(q)",
query: '{restquery(q:["Mike Jones", "Sally Jones"]) { args { q v } url } }',
expected: {restquery: {args: {q: ["Mike Jones", "Sally Jones"],v: null,}, url: "https://httpbingo.org/get?q=Mike+Jones&q=Sally+Jones",},},
authType: authTypes.adminKey,
},
]
return deployAndRun(__dirname, tests);
return deployAndRun(__dirname, tests, stepzen.admin);
});
Loading