Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FE-6254 Setting schema on 'fauna local --database Foo' #533

Merged
merged 13 commits into from
Dec 17, 2024
Prev Previous commit
Next Next commit
Half borken tests
cleve-fauna committed Dec 16, 2024
commit a719866cae7cdbb9b53370eac98cddf0103576c9
15 changes: 9 additions & 6 deletions test/local.mjs
Original file line number Diff line number Diff line change
@@ -219,11 +219,14 @@ Please pass a --hostPort other than '8443'.",
headers: { AUTHORIZATION: "Bearer secret:Foo:admin" },
body: reformatFSL(fsl),
});
expect(fetch).to.have.been.calledWith(`${baseUrl}/update?version=1728675598430000&staged=true`, {
method: "POST",
headers: { AUTHORIZATION: "Bearer secret:Foo:admin" },
body: reformatFSL(fsl),
});
expect(fetch).to.have.been.calledWith(
`${baseUrl}/update?version=1728675598430000&staged=true`,
{
method: "POST",
headers: { AUTHORIZATION: "Bearer secret:Foo:admin" },
body: reformatFSL(fsl),
},
);
expect(logger.stdout).to.have.been.calledWith("Proposed diff:\n");
const written = stderrStream.getWritten();
expect(written).to.contain(
@@ -236,7 +239,7 @@ Please pass a --hostPort other than '8443'.",
});
});

it.skip("Shows errors on schema problems", () => { });
it.skip("Shows errors on schema problems", () => {});

it("Exits with an expected error if the create db query aborts", async () => {
setupCreateContainerMocks();