PromucFlow_constructor/app/client/cypress/support/Objects/TestConfigs.ts

106 lines
3.8 KiB
TypeScript
Raw Normal View History

export class TEDTestConfigs {
mongo_authenticationAuthtype = "SCRAM-SHA-1";
mongo_host = "host.docker.internal";
mongo_port = 28017;
mongo_databaseName = "mongo_samples";
fix: cypress test added for forking critical issue (#24845) ## Description This PR adds cypress test to ensure the fix made for issue #24702 #### PR fixes following issue(s) Fixes #24702 > if no issue exists, please create an issue and ask the maintainers about this first > > #### Media > A video or a GIF is preferred. when using Loom, don’t embed because it looks like it’s a GIF. instead, just link to the video > > #### Type of change - Chore (housekeeping or task changes that don't impact user perception) - This change requires a documentation update > > > ## Testing > #### How Has This Been Tested? > Please describe the tests that you ran to verify your changes. Also list any relevant details for your test configuration. > Delete anything that is not relevant - [ ] Manual - [ ] Jest - [x] Cypress > > #### Test Plan > Add Testsmith test cases links that relate to this PR > > #### Issues raised during DP testing > Link issues raised during DP testing for better visiblity and tracking (copy link from comments dropped on this PR) > > > ## Checklist: #### Dev activity - [x] My code follows the style guidelines of this project - [x] I have performed a self-review of my own code - [x] I have commented my code, particularly in hard-to-understand areas - [ ] I have made corresponding changes to the documentation - [ ] My changes generate no new warnings - [ ] I have added tests that prove my fix is effective or that my feature works - [ ] New and existing unit tests pass locally with my changes - [ ] PR is being merged under a feature flag #### QA activity: - [ ] [Speedbreak features](https://github.com/appsmithorg/TestSmith/wiki/Guidelines-for-test-plans#speedbreakers-) have been covered - [ ] Test plan covers all impacted features and [areas of interest](https://github.com/appsmithorg/TestSmith/wiki/Guidelines-for-test-plans#areas-of-interest-) - [ ] Test plan has been peer reviewed by project stakeholders and other QA members - [ ] Manually tested functionality on DP - [ ] We had an implementation alignment call with stakeholders post QA Round 2 - [ ] Cypress test cases have been added and approved by SDET/manual QA - [ ] Added `Test Plan Approved` label after Cypress tests were reviewed - [ ] Added `Test Plan Approved` label after JUnit tests were reviewed --------- Co-authored-by: “sneha122” <“sneha@appsmith.com”>
2023-06-28 10:16:17 +00:00
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";
}