Skip to content

test: add telegraf container test#18000

Open
bhagyapathak wants to merge 1 commit into
4.0from
bhagya/telegraf-container-test
Open

test: add telegraf container test#18000
bhagyapathak wants to merge 1 commit into
4.0from
bhagya/telegraf-container-test

Conversation

@bhagyapathak

Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI review requested due to automatic review settings July 13, 2026 08:29
@bhagyapathak bhagyapathak requested a review from a team as a code owner July 13, 2026 08:29
@bhagyapathak

Copy link
Copy Markdown
Contributor Author

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR adds a new container-base runtime validation for Telegraf by introducing a dedicated Dockerfile-based test case and a helper fixture for writing config files into the running test container.

Changes:

  • Added a write_file_in_container pytest fixture to simplify writing arbitrary file content into the running container.
  • Introduced a new Telegraf runtime test suite that validates basic execution, version/usage reporting, and file output behavior.
  • Added a Dockerfile and checked-in Telegraf configs used by the new tests.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
base/images/tests/conftest.py Adds a fixture for writing content into the test container filesystem.
base/images/tests/cases/runtime/container-base/test_telegraf/test_telegraf.py New Telegraf runtime tests exercising --test, --version/--usage, and file output plugin behavior.
base/images/tests/cases/runtime/container-base/test_telegraf/Dockerfile Builds a test image layer installing Telegraf and placing a baseline config.
base/images/tests/cases/runtime/container-base/test_telegraf/configs/telegraf.conf Baseline Telegraf config used for --test validation.
base/images/tests/cases/runtime/container-base/test_telegraf/configs/file_output.conf Telegraf config enabling file output for metric flush verification.

Comment thread base/images/tests/conftest.py Outdated
Copilot AI review requested due to automatic review settings July 13, 2026 08:43
@bhagyapathak bhagyapathak force-pushed the bhagya/telegraf-container-test branch from 77f6157 to fa7d337 Compare July 13, 2026 08:43

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.

Comment thread base/images/tests/conftest.py
Copilot AI review requested due to automatic review settings July 13, 2026 09:07
@bhagyapathak bhagyapathak force-pushed the bhagya/telegraf-container-test branch from fa7d337 to e85de22 Compare July 13, 2026 09:07

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.

Comment thread base/images/tests/conftest.py Outdated
Copilot AI review requested due to automatic review settings July 13, 2026 09:19
@bhagyapathak bhagyapathak force-pushed the bhagya/telegraf-container-test branch from e85de22 to 6c568bd Compare July 13, 2026 09:19

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 5 out of 5 changed files in this pull request and generated no new comments.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants