10BC0 Add upgrade tests by dhurley · Pull Request #1245 · nginx/agent · GitHub
[go: up one dir, main page]

Skip to content
Prev Previous commit
Next Next commit
updated draft
  • Loading branch information
NutsaB committed Aug 28, 2025
commit da0fedbdcc2da5bed6ac23d9f7ad857e2d76c215
9 changes: 2 additions & 7 deletions test/integration/upgrade/upgrade_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,13 +115,11 @@ func verifyAgentUpgrade(ctx context.Context, tb testing.TB,
) {
tb.Helper()

cmdOut, upgradeTime := upgradeAgent(ctx, tb, testContainer)
// cmdOut for validating logs
_, upgradeTime := upgradeAgent(ctx, tb, testContainer)

assert.LessOrEqual(tb, upgradeTime, maxUpgradeTime)
tb.Log("Upgrade time: ", upgradeTime)

// validate logs here
validateLogs(tb, cmdOut)
}

func upgradeAgent(ctx context.Context, tb testing.TB, testContainer testcontainers.Container,
Expand Down Expand Up @@ -202,6 +200,3 @@ func validateAgentConfig(tb testing.TB, expectedConfigPath, updatedConfigPath st
}
tb.Logf("config file validation was successful")
}

func validateLogs(tb testing.TB, expectedLogs io.Reader) {
}
0