Skip to content

Commit

Permalink
Assert installing as admin prompt happens on Windows.
Browse files Browse the repository at this point in the history
  • Loading branch information
mitchell-as committed Dec 16, 2024
1 parent e554f37 commit 63973c6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmd/state-installer/test/integration/installer_int_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ func (suite *InstallerIntegrationTestSuite) TestInstallFromLocalSource() {

// Assert output
cp.Expect("Installing State Tool")
if runtime.GOOS == "windows" {
cp.Expect("Continuing because State Tool is running in non-interactive mode") // admin prompt
}
cp.Expect("Done")
cp.Expect("successfully installed")
suite.NotContains(cp.Output(), "Downloading State Tool")
Expand Down
3 changes: 3 additions & 0 deletions test/integration/install_scripts_int_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,9 @@ func (suite *InstallScriptsIntegrationTestSuite) TestInstall() {
}
cp := ts.SpawnCmdWithOpts(cmd, opts...)
cp.Expect("Preparing Installer for State Tool Package Manager")
if runtime.GOOS == "windows" {
cp.Expect("Continuing because the '--force' flag is set") // admin prompt
}
cp.Expect("Installation Complete", e2e.RuntimeSourcingTimeoutOpt)

if tt.Activate != "" || tt.ActivateByCommand != "" {
Expand Down

0 comments on commit 63973c6

Please sign in to comment.