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 e2e tests for custom truststore #3023

Merged
merged 4 commits into from
May 23, 2024
Merged

Conversation

aorcholski
Copy link
Contributor

@aorcholski aorcholski commented Apr 18, 2024

Description

Adds e2e tests to verify propagation of trustedCAs certificates and ActiveGate certificate to OneAgent pods, ActiveGate and injected OneAgents.

All custom truststore specific tests are based on existing cloudnative.WithProxy* features. There is no point in duplicating running time.

How can this be tested?

make test/e2e/istio

@aorcholski aorcholski added the test Changes to or additional e2e/regression tests label Apr 18, 2024
@codecov-commenter
Copy link

codecov-commenter commented Apr 18, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 58.68%. Comparing base (75cea33) to head (0e95586).

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3023   +/-   ##
=======================================
  Coverage   58.68%   58.68%           
=======================================
  Files         325      325           
  Lines       18053    18053           
=======================================
  Hits        10595    10595           
  Misses       6284     6284           
  Partials     1174     1174           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@aorcholski aorcholski changed the title Add e2e tests for custom truststore WIP Add e2e tests for custom truststore Apr 18, 2024
@aorcholski aorcholski force-pushed the feature/truststore-e2e-test branch 3 times, most recently from 1916f38 to b36930e Compare April 23, 2024 09:24
@aorcholski aorcholski changed the title WIP Add e2e tests for custom truststore Add e2e tests for custom truststore Apr 23, 2024
@aorcholski aorcholski marked this pull request as ready for review April 23, 2024 09:24
@aorcholski aorcholski requested a review from a team as a code owner April 23, 2024 09:25
@aorcholski aorcholski force-pushed the feature/truststore-e2e-test branch 5 times, most recently from 03da1ff to c71ef00 Compare April 25, 2024 12:05
@albertogdd

This comment was marked as outdated.

@albertogdd

This comment was marked as outdated.

@aorcholski
Copy link
Contributor Author

aorcholski commented Apr 26, 2024

OpenShift Cluster FAILED

The custom truststore tests not executed:

=== SKIP: test/scenarios/istio TestIstio (0.03s)
    default.go:58: istio enabled: true
    install.go:44: skipping istio test, istio namespace is not present

Error is unrelated to TestIstio:

=== FAIL: test/scenarios/release TestRelease/upgrade_a_cloudnative_installation (677.54s)
    --- FAIL: TestRelease/upgrade_a_cloudnative_installation (677.54s)

test/features/cloudnative/container.go Outdated Show resolved Hide resolved
test/features/cloudnative/container.go Outdated Show resolved Hide resolved
@aorcholski aorcholski force-pushed the feature/truststore-e2e-test branch 2 times, most recently from 94d0754 to 497ce67 Compare May 6, 2024 10:52
@aorcholski aorcholski force-pushed the feature/truststore-e2e-test branch 6 times, most recently from a4db0a8 to 59a86cc Compare May 16, 2024 10:39
@aorcholski aorcholski force-pushed the feature/truststore-e2e-test branch 3 times, most recently from 302683e to a3b1e55 Compare May 22, 2024 16:44
@aorcholski aorcholski force-pushed the feature/truststore-e2e-test branch from a3b1e55 to 0e95586 Compare May 23, 2024 10:53
Copy link
Collaborator

@wepudt wepudt left a comment

Choose a reason for hiding this comment

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

LGTM

@aorcholski aorcholski merged commit f81d56e into main May 23, 2024
19 checks passed
@aorcholski aorcholski deleted the feature/truststore-e2e-test branch May 23, 2024 15:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
test Changes to or additional e2e/regression tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants