diff --git a/app/client/cypress/fixtures/datasources.json b/app/client/cypress/fixtures/datasources.json index 2ae7de398c..861abffc8b 100644 --- a/app/client/cypress/fixtures/datasources.json +++ b/app/client/cypress/fixtures/datasources.json @@ -5,11 +5,11 @@ "mongo-username": "cypress-test", "mongo-password": "RaopEmky505xYV4p", "mongo-authenticationAuthtype": "SCRAM-SHA-1", - "postgres-host": "postgres-test-db.cz8diybf9wdj.ap-south-1.rds.amazonaws.com", + "postgres-host": "localhost", "postgres-port": 5432, "postgres-databaseName": "fakeapi", "postgres-username": "postgres", - "postgres-password": "Appsmith2019#", + "postgres-password": "postgres", "restapi-url": "https://my-json-server.typicode.com/typicode/demo/posts", "mongo-defaultDatabaseName": "sample_airbnb", "connection-type": "Replica set", diff --git a/app/client/cypress/init-pg-dump-for-test.sql b/app/client/cypress/init-pg-dump-for-test.sql index 63c399d0be..439b4b9b6d 100644 --- a/app/client/cypress/init-pg-dump-for-test.sql +++ b/app/client/cypress/init-pg-dump-for-test.sql @@ -1,3 +1,6 @@ +CREATE DATABASE fakeapi; +\c fakeapi; + CREATE TABLE public.configs ( id integer NOT NULL, "configName" text NOT NULL, @@ -50,4 +53,5 @@ values (3, 'New Config', '{"key": "val1"}', 1, '2020-08-26 11:14:28.458209+00', insert into public.users (id, name, "createdAt", "updatedAt", status, gender, avatar, email, address, role, dob, "phoneNo") values (7, 'Test user 7', '2019-08-07 21:36:27+00', '2019-10-21 03:23:42+00', 'APPROVED', 'Male', 'https://robohash.org/quiofficiadicta.jpg?size=100x100&set=set1' ,'xkainz6@ihg.com', '19624 Scofield Way', 'Admin','1993-08-14', ''), (8, 'Test user 8', '2019-08-07 21:36:27+00', '2019-10-21 03:23:42+00', 'APPROVED', 'Male', 'https://robohash.org/quiofficiadicta.jpg?size=100x100&set=set1' ,'xkainz6@ihg.com', '19624 Scofield Way', 'Admin','1993-08-14', ''), -(9, 'Test user 9', '2019-08-07 21:36:27+00', '2019-10-21 03:23:42+00', 'APPROVED', 'Male', 'https://robohash.org/quiofficiadicta.jpg?size=100x100&set=set1' ,'xkainz6@ihg.com', '19624 Scofield Way', 'Admin','1993-08-14', '') +(9, 'Test user 9', '2019-08-07 21:36:27+00', '2019-10-21 03:23:42+00', 'APPROVED', 'Male', 'https://robohash.org/quiofficiadicta.jpg?size=100x100&set=set1' ,'xkainz6@ihg.com', '19624 Scofield Way', 'Admin','1993-08-14', ''); +