Skip to content

Commit a18282b

Browse files
committed
Update remote installer expectations.
1 parent bcc739d commit a18282b

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

test/integration/remote_installer_int_test.go

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ func (suite *RemoteInstallIntegrationTestSuite) TestInstall() {
7474
installPath := filepath.Join(ts.Dirs.Work, "install")
7575
stateExePath := filepath.Join(installPath, "bin", constants.StateCmd+osutils.ExeExtension)
7676

77-
args := []string{"-n"}
77+
args := []string{"--non-interactive"}
7878
if tt.Version != "" {
7979
args = append(args, "--version", tt.Version)
8080
}
@@ -93,10 +93,15 @@ func (suite *RemoteInstallIntegrationTestSuite) TestInstall() {
9393
)
9494

9595
cp.Expect("Terms of Service")
96-
cp.SendLine("Y")
96+
cp.Expect("Continuing because State Tool is running in non-interactive mode")
9797
cp.Expect("Downloading")
9898
cp.Expect("Running Installer...")
9999
cp.Expect("Installing")
100+
if runtime.GOOS == "windows" {
101+
cp.Expect("You are installing State Tool as an admin")
102+
cp.Expect("Are you sure?")
103+
cp.Expect("Continuing because State Tool is running in non-interactive mode")
104+
}
100105
cp.Expect("Installation Complete")
101106
cp.Expect("Press ENTER to exit")
102107
cp.SendEnter()

0 commit comments

Comments
 (0)