From c4a2e2814a34e49152e9204ff8a7dbaa8829c84a Mon Sep 17 00:00:00 2001 From: Adria Navarro Date: Wed, 21 Jun 2023 11:47:53 +0100 Subject: [PATCH] Update tests --- .../external-schema/postgres.integration.spec.ts | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/qa-core/src/integrations/external-schema/postgres.integration.spec.ts b/qa-core/src/integrations/external-schema/postgres.integration.spec.ts index 8028ca11bc..5bfac734c9 100644 --- a/qa-core/src/integrations/external-schema/postgres.integration.spec.ts +++ b/qa-core/src/integrations/external-schema/postgres.integration.spec.ts @@ -61,7 +61,7 @@ describe("getExternalSchema", () => { `) }) - it.only("can export a database with tables", async () => { + it("can export a database with tables", async () => { const integration = new postgres.integration(config) await integration.internalQuery( @@ -265,7 +265,8 @@ describe("getExternalSchema", () => { CREATE TABLE public.products ( id integer NOT NULL, name character varying(100) NOT NULL, - price numeric NOT NULL + price numeric NOT NULL, + owner integer ); @@ -358,6 +359,14 @@ describe("getExternalSchema", () => { ADD CONSTRAINT users_pkey PRIMARY KEY (id); + -- + -- Name: products fk_owner; Type: FK CONSTRAINT; Schema: public; Owner: postgres + -- + + ALTER TABLE ONLY public.products + ADD CONSTRAINT fk_owner FOREIGN KEY (owner) REFERENCES public.users(id); + + -- -- PostgreSQL database dump complete --