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

Add version metadata #4949

Merged
merged 3 commits into from
Nov 12, 2019
Merged

Conversation

AlexandreYang
Copy link
Member

@AlexandreYang AlexandreYang commented Nov 5, 2019

No description provided.

@AlexandreYang AlexandreYang changed the base branch from master to alex/postfix_add_tests_for_postqueue_mode November 5, 2019 14:32
@AlexandreYang AlexandreYang changed the base branch from alex/postfix_add_tests_for_postqueue_mode to master November 5, 2019 14:52
@AlexandreYang AlexandreYang mentioned this pull request Nov 5, 2019
4 tasks
@AlexandreYang AlexandreYang changed the base branch from master to alex/postfix_add_tests_for_postqueue_mode November 5, 2019 14:59
@AlexandreYang AlexandreYang changed the base branch from alex/postfix_add_tests_for_postqueue_mode to master November 5, 2019 14:59
@AlexandreYang AlexandreYang force-pushed the alex/postfix_add_version_metadata branch 3 times, most recently from a7342e5 to 24c5eb9 Compare November 5, 2019 15:03
@AlexandreYang AlexandreYang marked this pull request as ready for review November 5, 2019 15:04
@AlexandreYang AlexandreYang requested a review from a team as a code owner November 5, 2019 15:04
@AlexandreYang AlexandreYang force-pushed the alex/postfix_add_version_metadata branch from 24c5eb9 to 5fe8106 Compare November 6, 2019 14:31
'datadog_checks.postfix.postfix.get_subprocess_output',
return_value=('mail_version = {}'.format(MOCK_VERSION), None, None),
)
def test_collect_metadata(aggregator, datadog_agent):
Copy link
Contributor

Choose a reason for hiding this comment

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

How does integration/e2e works for postfix? Can we also run a similar test against a real container?

Copy link
Member Author

Choose a reason for hiding this comment

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

There is currently no integration/e2e with actual postfix installed.

Let me check if I can add a integration/e2e for that.

Copy link
Member Author

Choose a reason for hiding this comment

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

@FlorianVeaux

I added this comment # TODO: Migrate this test as e2e test when it's possible to retrieve the metadata from the Agent

I added support for e2e here #4948
So, we can test in e2e when we can retrieve metadata from the agent.

It seems not possible to implement easily the test as integration since you need postfix to be installed on the same machine.

@AlexandreYang AlexandreYang changed the title Add version metadata [WIP] Add version metadata Nov 7, 2019
@AlexandreYang AlexandreYang force-pushed the alex/postfix_add_version_metadata branch from 5fe8106 to f8cad01 Compare November 8, 2019 10:00
@AlexandreYang AlexandreYang changed the title [WIP] Add version metadata Add version metadata Nov 8, 2019
@AlexandreYang AlexandreYang merged commit 0b6f87c into master Nov 12, 2019
@AlexandreYang AlexandreYang deleted the alex/postfix_add_version_metadata branch November 12, 2019 15:03
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.

None yet

3 participants