Skip to content

Commit

Permalink
fix installer e2e (#26751)
Browse files Browse the repository at this point in the history
  • Loading branch information
raphaelgavache authored Jun 15, 2024
1 parent 5aca0b2 commit 95cd819
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions test/new-e2e/tests/installer/package_installer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,21 +109,12 @@ func (s *packageInstallerSuite) TestUpdateInstallerOCI() {
assert.NoError(s.T(), err)

version := s.Env().RemoteHost.MustExecute("/opt/datadog-packages/datadog-installer/stable/bin/installer/installer version")
assert.Equal(s.T(), "7.55.0-installer-0.2.1-1", version)
s.host.WaitForUnitActive("datadog-installer.service")
assert.Equal(s.T(), "7.55.0-installer-0.2.1\n", version)

// Install from QA registry
err = s.RunInstallScriptWithError()
assert.NoError(s.T(), err)

version = s.Env().RemoteHost.MustExecute("/opt/datadog-packages/datadog-installer/stable/bin/installer/installer version")
assert.Contains(s.T(), version, "-devel+git")

s.host.WaitForUnitActive("datadog-installer.service")

state := s.host.State()
state.AssertUnitsLoaded("datadog-installer.service", "datadog-installer-exp.service")
state.AssertUnitsEnabled("datadog-installer.service")
state.AssertUnitsNotEnabled("datadog-installer-exp.service")
state.AssertUnitsRunning("datadog-installer.service")
}

0 comments on commit 95cd819

Please sign in to comment.