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

e2e tests Oracle source #535

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

itsmekumari
Copy link
Contributor

No description provided.

@AnkitCLI AnkitCLI added the build label Jan 9, 2025
@itsmekumari itsmekumari force-pushed the e2e-oraclesource_tests branch from 4b3d35e to 705cd0f Compare January 10, 2025 06:29
@itsmekumari itsmekumari force-pushed the e2e-oraclesource_tests branch from 705cd0f to 83d1c42 Compare January 13, 2025 11:07
@itsmekumari itsmekumari marked this pull request as ready for review January 14, 2025 05:04
Then Replace input plugin property: "port" with value: "port" for Credentials and Authorization related fields
Then Replace input plugin property: "user" with value: "username" for Credentials and Authorization related fields
Then Replace input plugin property: "password" with value: "password" for Credentials and Authorization related fields
Then Click plugin property: "switch-useConnection"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why useConnection?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here verifying the error message displayed on header as in-line error is already covered in mandatory fields use case.

Comment on lines +424 to +426
@Before(order = 1, value = "@CONNECTION")
public static void setNewConnectionName() {
String connectionName = "Oracle" + RandomStringUtils.randomAlphanumeric(10);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a common class, we should take connectionPrefix as parameterized, it would not necessary be Oracle for all plugins.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We are having different TestSetupHooks class file for different database plugins. For each database plugin we are using according to the plugin name.

Comment on lines +439 to +442
@After(order = 1, value = "@CONNECTION")
public static void deleteBQConnection() throws IOException {
deleteConnection("Oracle", "connection.name");
PluginPropertyUtils.removePluginProp("connection.name");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

similar comment here

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hence using the database plugin name for different database plugin connections.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants