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

Refactor E2E tests #1577

Open
wants to merge 15 commits into
base: main
Choose a base branch
from
Open

Refactor E2E tests #1577

wants to merge 15 commits into from

Conversation

fanny-jiang
Copy link
Contributor

@fanny-jiang fanny-jiang commented Dec 17, 2024

What does this PR do?

  • Add new kind E2E provisioner that leverages the NewOperator and NewDDAWithOperator methods from test-infra-definitions to create either a local kind cluster or AWS-hosted kind cluster
  • Refactor generic k8s E2E tests into its own test suite
  • Enable fakeintake in the new kind E2E provisioner

Motivation

Improve E2E usability and reliability

Additional Notes

Requires these changes from the datadog-agent/test/new-e2e module:

Minimum Agent Versions

Are there minimum versions of the Datadog Agent and/or Cluster Agent required?

  • Agent: vX.Y.Z
  • Cluster Agent: vX.Y.Z

Describe your test plan

Write there any instructions and details you may have to test your PR.

Checklist

  • PR has at least one valid label: bug, enhancement, refactoring, documentation, tooling, and/or dependencies
  • PR has a milestone or the qa/skip-qa label

test/e2e/tests/k8sSuite/k8sSuite_test.go Outdated Show resolved Hide resolved
test/e2e/go.mod Outdated Show resolved Hide resolved
@fanny-jiang fanny-jiang requested a review from a team as a code owner December 17, 2024 23:56
@codecov-commenter
Copy link

codecov-commenter commented Dec 18, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 48.94%. Comparing base (87f8143) to head (dd018ac).

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #1577   +/-   ##
=======================================
  Coverage   48.94%   48.94%           
=======================================
  Files         227      227           
  Lines       20636    20636           
=======================================
  Hits        10101    10101           
  Misses      10010    10010           
  Partials      525      525           
Flag Coverage Δ
unittests 48.94% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 87f8143...dd018ac. Read the comment docs.

go.mod Outdated Show resolved Hide resolved
test/e2e/go.mod Outdated Show resolved Hide resolved
fanny-jiang and others added 2 commits January 3, 2025 10:23
* bump go deps and small fixes

* add new kind provisioners (aws and local) and update generic k8s e2e tests

* rename files, use new-e2e dev module

* sync go version

* update licenses

* allow golang version failure

* fix stack name

* fixes for CI

* Update bundle and manager config from v1.11 (#1599)

* fix flakes

* fix flakes

---------

Co-authored-by: Timothée Bavelier <[email protected]>
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.

2 participants