Skip to content

Commit

Permalink
Fix TestHSMMigrate version check
Browse files Browse the repository at this point in the history
  • Loading branch information
vapopov committed Nov 28, 2024
1 parent 2b977ef commit 468224f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
9 changes: 5 additions & 4 deletions integration/hsm/hsm_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -382,16 +382,17 @@ func TestHSMMigrate(t *testing.T) {
ctx, cancel := context.WithCancel(context.Background())
t.Cleanup(cancel)
log := utils.NewLoggerForTests()
storageConfig := liteBackendConfig(t)

// start a dual auth non-hsm cluster
log.Debug("TestHSMMigrate: Starting auth server 1")
auth1Config := newHSMAuthConfig(t, storageConfig, log, clockwork.NewRealClock())
auth1Config := newHSMAuthConfig(t, liteBackendConfig(t), log, clockwork.NewRealClock())
auth1Config.Auth.KeyStore = servicecfg.KeystoreConfig{}
auth2Config := newHSMAuthConfig(t, storageConfig, log, clockwork.NewRealClock())
auth2Config.Auth.KeyStore = servicecfg.KeystoreConfig{}
auth1, err := newTeleportService(ctx, auth1Config, "auth1")
require.NoError(t, err)

auth2Config := newHSMAuthConfig(t, liteBackendConfig(t), log, clockwork.NewRealClock())
auth2Config.Auth.KeyStore = servicecfg.KeystoreConfig{}
auth2Config.DataDir = t.TempDir()
auth2, err := newTeleportService(ctx, auth2Config, "auth2")
require.NoError(t, err)

Expand Down
1 change: 1 addition & 0 deletions integration/instance_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ func basicDirCopy(src string, dst string) error {
// generated by an older teleport version that permitted token mix-and-match.
func TestInstanceCertReissue(t *testing.T) {
t.Setenv("_insecuredevmode_no_parallel", "1") // panic if the test is or will become parallel
t.Setenv("TELEPORT_UNSTABLE_SKIP_VERSION_UPGRADE_CHECK", "1")
lib.SetInsecureDevMode(true)
defer lib.SetInsecureDevMode(false)

Expand Down

0 comments on commit 468224f

Please sign in to comment.