diff --git a/test/integration/install/install_uninstall_test.go b/test/integration/install/install_uninstall_test.go index efc50e8175..9997aef07e 100644 --- a/test/integration/install/install_uninstall_test.go +++ b/test/integration/install/install_uninstall_test.go @@ -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)