Skip to content

Commit

Permalink
Update remote installer expectations.
Browse files Browse the repository at this point in the history
  • Loading branch information
mitchell-as committed Nov 26, 2024
1 parent bcc739d commit 7a16308
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions test/integration/remote_installer_int_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand All @@ -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()
Expand Down

0 comments on commit 7a16308

Please sign in to comment.