You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Integration Test] Ensure that upgrading a FIPS-capable Agent results in a FIPS-capable Agent (#7804)
* Adding skeleton for FIPS-to-FIPS upgrade test
* Expose FIPS compliance in GRPC client Version call response
* Test upgrade from FIPS to FIPS artifact
* Change assert to require
* Add postWatcherSuccessHook to upgrade test
* Refactor standalone upgrade test to take upgradeOpts
* Fix up FIPS upgrade test to use postWatcherSuccessHook to test FIPS compliance of upgraded Agent
* Add version constraint to test
* s/compliant/capable/
* s/compliant/capable/
* Append -fips to artifact name if current release of Agent is FIPS-capable
* Enable FIPS-capable to FIPS-capable Agent upgrades
* Running mage fmt
* Adding test to ensure FIPS-capable Agent cannot be upgraded to non-FIPS-capable Agent
* Adding return value
* Fixing function calls
* Remove post-upgrade success hook since we expect upgrade to fail
* Add minimum FIPS version check for start version
* Simplify upgradeOpts initialization
* Add version equality comparison method
* Fix version checks in tests
* Refactor version check into own helper function
* Fixing args
* No need to pass testing.T
* Remove redundant test case
* Restrict FIPS integration tests to Linux
* Add Fleet-managed Agent FIPS upgrade test
* Remove integration test trying to upgrade FIPS to non-FIPS
* Fix type of argument
* Refactoring: extract common logic into helper function
* Remove old code
* Require no error
* Fixing syntax errors
* Define tests as needing a FIPS environment
* FIPS upgrade tests should only run on Linux
* FIPS upgrade tests should start with FIPS-capable version
* Fixing comment + skip message
* Fix syntax errors
* Removing TestStandaloneUpgradeFIPStoFIPS test
* Removing TestFleetManagedUpgradePrivilegedFIPS test
* Add back accidentally-deleted function
* Combine less and equal unit tests
* Hash replaceToken only if its non-empty
* Use startFixture
(cherry picked from commit ac9ee9a)
# Conflicts:
# internal/pkg/agent/application/upgrade/upgrade.go
# testing/upgradetest/upgrader.go
0 commit comments