Skip to content

Commit 5019526

Browse files
Skip TestAliasAgentRestartWithIPForwardingConfigFalse on older guest agent versions.
PiperOrigin-RevId: 813320866
1 parent 928bb55 commit 5019526

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

test_suites/network/alias_ip_test.go

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,8 +243,18 @@ func TestAliasAgentRestart(t *testing.T) {
243243

244244
func TestAliasAgentRestartWithIPForwardingConfigFalse(t *testing.T) {
245245
utils.LinuxOnly(t)
246-
247246
ctx := utils.Context(t)
247+
248+
image, err := utils.GetMetadata(ctx, "instance", "image")
249+
if err != nil {
250+
t.Fatalf("could not determine image: %v", err)
251+
}
252+
253+
// TODO(b/448377923): Remove this skip once the agent is released.
254+
if strings.Contains(image, "guest-agent-stable") || !strings.Contains(image, "guest-agent") {
255+
t.Skipf("Skipping test as it is not expected to pass on previous version of guest agent (image: %s).", image)
256+
}
257+
248258
iface := readNic(ctx, t, 0)
249259

250260
t.Cleanup(func() {

0 commit comments

Comments
 (0)