Skip to content

Commit

Permalink
package version
Browse files Browse the repository at this point in the history
  • Loading branch information
aphralG committed Sep 18, 2024
1 parent 9e3143a commit d3f4988
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/integration/install/install_uninstall_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,13 +88,18 @@ func TestAgentManualInstallUninstall(t *testing.T) {
_, err = testContainer.CopyFileFromContainer(ctx, path)
assert.NoError(t, err)
}
replacer := strings.NewReplacer("nginx-agent-", "v", "SNAPSHOT-", "")
packageVersion := replacer.Replace(os.Getenv("PACKAGE_NAME"))

// Check agent version
versionOutput, err := checkAgentVersion(ctx, testContainer)

t.Logf("--------- Version Command Output, %s", versionOutput)

t.Logf("--------- Package Name: %s", os.Getenv("PACKAGE_NAME"))

t.Logf("--------- Package Version: %s", packageVersion)

uninstallLog, err := uninstallAgent(ctx, testContainer, osReleaseContent)
require.NoError(t, err)

Expand Down

0 comments on commit d3f4988

Please sign in to comment.