## Description - This PR fixes below specs: - /ListV2/Listv2_dataIdentifierProperty_spec.js - Improves validations in /Autocomplete/JS_AC2_spec.ts - Moving all mockApi call to TEDTestConfigs - Datasources/Airtable_Basic_Spec.ts - ListV2/Listv2_onItemClick_spec.js - FirstTimeUserOnboarding_spec.js - 5th - flaky fix - /Binding/Widgets_Default_data_validation_spec.js - AssertDocumentReady() improved - added timeout to check page load - TableV2/TableV2_Widget_Add_button_spec.js - Binding/ButtonWidgets_NavigateTo_validation_spec.js - UpdatePropertyFieldValue() improved - added intercept validation #### Type of change - Script fix (non-breaking change which fixes an issue) ## Testing > #### How Has This Been Tested? - [X] Cypress CI runs - ## Checklist: #### QA activity: - [X] Added `Test Plan Approved` label after changes were reviewed
106 lines
3.8 KiB
TypeScript
106 lines
3.8 KiB
TypeScript
export class TEDTestConfigs {
|
|
mongo_authenticationAuthtype = "SCRAM-SHA-1";
|
|
mongo_host = "host.docker.internal";
|
|
mongo_port = 28017;
|
|
mongo_databaseName = "mongo_samples";
|
|
mongo_uri = `mongodb://${this.mongo_host}:${this.mongo_port}/${this.mongo_databaseName}`;
|
|
|
|
postgres_host = "host.docker.internal";
|
|
postgres_port = 5432;
|
|
postgres_databaseName = "fakeapi";
|
|
postgres_username = "docker";
|
|
postgres_password = "docker";
|
|
|
|
mysql_host = "host.docker.internal";
|
|
mysql_port = 3306;
|
|
mysql_databaseName = "fakeapi";
|
|
mysql_username = "root";
|
|
mysql_password = "root";
|
|
|
|
mssql_host = "host.docker.internal";
|
|
mssql_port = 1433;
|
|
mssql_databaseName = "fakeapi";
|
|
mssql_username = "SA";
|
|
mssql_password = "Root@123";
|
|
mssql_docker = (containerName: string) =>
|
|
`docker run --name=${containerName} -e "ACCEPT_EULA=Y" -e "SA_PASSWORD=${
|
|
this.mssql_password
|
|
}" -p ${this.mssql_port.toString()}:${this.mssql_port.toString()} -d mcr.microsoft.com/azure-sql-edge`;
|
|
|
|
arango_host = "host.docker.internal";
|
|
arango_port = 8529;
|
|
arango_databaseName = "_system";
|
|
arango_username = "root";
|
|
arango_password = "Arango";
|
|
arango_docker = (containerName: string) =>
|
|
`docker run --name ${containerName} -e ARANGO_USERNAME=${
|
|
this.arango_username
|
|
} -e ARANGO_ROOT_PASSWORD=${
|
|
this.arango_password
|
|
} -p ${this.arango_port.toString()}:${this.arango_port.toString()} -d arangodb`;
|
|
|
|
elastic_host = "http://host.docker.internal";
|
|
elastic_port = 9200;
|
|
elastic_username = "elastic";
|
|
elastic_password = "docker";
|
|
elastic_docker = (containerName: string) =>
|
|
`docker run --name ${containerName} -d -p ${this.elastic_port.toString()}:${this.elastic_port.toString()} -e "discovery.type=single-node" -e "ELASTIC_USERNAME=${
|
|
this.elastic_username
|
|
}" -e "ELASTIC_PASSWORD=${
|
|
this.elastic_password
|
|
}" -e "xpack.security.enabled=true" docker.elastic.co/elasticsearch/elasticsearch:7.16.2`;
|
|
|
|
redshift_host = "localhost";
|
|
redshift_port = 543;
|
|
redshift_databaseName = "fakeapi";
|
|
redshift_username = "root";
|
|
redshift_password = "Redshift$123";
|
|
|
|
smtp_host = "host.docker.internal";
|
|
smtp_port = "25";
|
|
smtp_username = "root";
|
|
smtp_password = "root";
|
|
|
|
oracle_host = "random-data";
|
|
oracle_port = 40;
|
|
oracle_name = "random-name";
|
|
oracle_username = "random-username";
|
|
oracle_password = "random-password";
|
|
|
|
redis_host = "host.docker.internal";
|
|
redis_port = "6379";
|
|
|
|
OAuth_Username = "testuser@appsmith.com";
|
|
OAuth_Host = "http://localhost:6001";
|
|
OAuth_ApiUrl = "http://host.docker.internal:6001";
|
|
OAUth_AccessTokenUrl = "http://host.docker.internal:6001/oauth/token";
|
|
OAuth_AuthUrl = "http://localhost:6001/oauth/authorize";
|
|
OAuth_RedirectUrl = "http://localhost/api/v1/datasources/authorize";
|
|
|
|
AirtableBase = "appubHrVbovcudwN6";
|
|
AirtableTable = "tblsFCQSskVFf7xNd";
|
|
|
|
mockApiUrl = "http://host.docker.internal:5001/v1/mock-api?records=10";
|
|
echoApiUrl = "http://host.docker.internal:5001/v1/mock-api/echo";
|
|
randomCatfactUrl = "http://host.docker.internal:5001/v1/catfact/random";
|
|
mockHttpCodeUrl = "http://host.docker.internal:5001/v1/mock-http-codes/";
|
|
|
|
firestore_database_url = "https://appsmith-22e8b.firebaseio.com";
|
|
firestore_projectID = "appsmith-22e8b";
|
|
|
|
restapi_url = "https://my-json-server.typicode.com/typicode/demo/posts";
|
|
connection_type = "Replica set";
|
|
|
|
mockHostAddress = "fake_api.cvuydmurdlas.us-east-1.rds.amazonaws.com";
|
|
mockDatabaseName = "fakeapi";
|
|
mockDatabaseUsername = "fakeapi";
|
|
mockDatabasePassword = "LimitedAccess123#";
|
|
readonly = "readonly";
|
|
authenticatedApiUrl = "https://fakeapi.com";
|
|
|
|
GraphqlApiUrl_TED = "http://host.docker.internal:5000/graphql";
|
|
GITEA_API_BASE_TED = "localhost";
|
|
GITEA_API_PORT_TED = "3001";
|
|
GITEA_API_URL_TED = "git@host.docker.internal:Cypress";
|
|
}
|