From 7a163081cbc68e290e61956c148bf4283f75486e Mon Sep 17 00:00:00 2001 From: mitchell Date: Tue, 26 Nov 2024 10:51:00 -0500 Subject: [PATCH] Update remote installer expectations. --- test/integration/remote_installer_int_test.go | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/test/integration/remote_installer_int_test.go b/test/integration/remote_installer_int_test.go index 65949c3fb4..dd31df26fa 100644 --- a/test/integration/remote_installer_int_test.go +++ b/test/integration/remote_installer_int_test.go @@ -74,7 +74,7 @@ func (suite *RemoteInstallIntegrationTestSuite) TestInstall() { installPath := filepath.Join(ts.Dirs.Work, "install") stateExePath := filepath.Join(installPath, "bin", constants.StateCmd+osutils.ExeExtension) - args := []string{"-n"} + args := []string{"--non-interactive"} if tt.Version != "" { args = append(args, "--version", tt.Version) } @@ -93,10 +93,15 @@ func (suite *RemoteInstallIntegrationTestSuite) TestInstall() { ) cp.Expect("Terms of Service") - cp.SendLine("Y") + cp.Expect("Continuing because State Tool is running in non-interactive mode") cp.Expect("Downloading") cp.Expect("Running Installer...") cp.Expect("Installing") + if runtime.GOOS == "windows" { + cp.Expect("You are installing the State Tool as an admin") + cp.Expect("Are you sure?") + cp.Expect("Continuing because State Tool is running in non-interactive mode") + } cp.Expect("Installation Complete") cp.Expect("Press ENTER to exit") cp.SendEnter()