Skip to content

Conversation

@bennyyang11
Copy link

Summary

Add 2 integration tests for config values processing to enable future E2E test elimination.

Changes

  • Extracted kotsInstallOptionsFromFlags() function for testability
  • Extracted buildInstallArgs() function for testability
  • Added Test_kotsInstallOptionsFromFlags() - validates InstallCmdFlags → kotscli.InstallOptions
  • Added Test_buildInstallArgs() - validates kubectl-kots args construction

Testing

  • New tests pass in <10 seconds
  • All existing tests still pass
  • 100% coverage of both functions

Pattern

Follows CIDR migration pattern (commit 56e6293)

Next Steps

  • Keep E2E test for 1-2 release cycles
  • Monitor integration tests for issues
  • Separate PR to remove E2E test after confidence built

sgalsaleh and others added 9 commits October 27, 2025 19:41
- Extract kotsInstallOptionsFromFlags() for testability
- Extract buildInstallArgs() for testability
- Add Test_kotsInstallOptionsFromFlags (4 test cases)
- Add Test_buildInstallArgs (5 test cases)

Following pattern from CIDR migration (commit 56e6293)
@github-actions
Copy link

This PR has been released (on staging) and is available for download with a embedded-cluster-smoke-test-staging-app license ID.

Online Installer:

curl "https://staging.replicated.app/embedded/embedded-cluster-smoke-test-staging-app/ci/appver-dev-60574f9" -H "Authorization: $EC_SMOKE_TEST_LICENSE_ID" -o embedded-cluster-smoke-test-staging-app-ci.tgz

Airgap Installer (may take a few minutes before the airgap bundle is built):

curl "https://staging.replicated.app/embedded/embedded-cluster-smoke-test-staging-app/ci-airgap/appver-dev-60574f9?airgap=true" -H "Authorization: $EC_SMOKE_TEST_LICENSE_ID" -o embedded-cluster-smoke-test-staging-app-ci.tgz

Happy debugging!

Base automatically changed from move-custom-cidr-e2e-to-unit-and-integration-tests to main October 30, 2025 20:31
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