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

Fix e2e test #6167

Merged
merged 2 commits into from
Mar 27, 2020
Merged

Fix e2e test #6167

merged 2 commits into from
Mar 27, 2020

Conversation

hithwen
Copy link
Contributor

@hithwen hithwen commented Mar 27, 2020

The e2e test was relying on the sample configuration default values that were changed to a placeholder when introducing specs here https://github.com/DataDog/integrations-core/pull/6115/files

This PR:

  • reintroduces default values as they might be useful to users
  • makes e2e test resilient to changes in the sample config file by explicitly setting host and port

Copy link
Member

@FlorianVeaux FlorianVeaux left a comment

Choose a reason for hiding this comment

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

Great 👍

@@ -40,12 +40,12 @@ instances:
## @param host - string - required
## JMX hostname to connect to.
#
- host: <HOST>
- host: localhost
Copy link
Member

Choose a reason for hiding this comment

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

Actually, we don't need to override this anymore don't we? host and port are overriden in conftest.

The placeholder are our usual way to proceed for required parameters, any reason to change them?

Copy link
Contributor Author

@hithwen hithwen Mar 27, 2020

Choose a reason for hiding this comment

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

Actually, we don't need to override this anymore don't we?

Overriding in the test makes the test more independent to the sample config.

The placeholder are our usual way to proceed for required parameters, any reason to change them?

The sample files had these values before applying specs. I'm happy to revert this override but I thought is probably useful to keep these default values

@hithwen hithwen merged commit badbee6 into master Mar 27, 2020
@hithwen hithwen deleted the julia/fix-activemq branch March 27, 2020 12:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants