Skip to content

Commit a1c5174

Browse files
author
Ivan Shvedunov
committed
Update metadata dump e2e to test diag instead
1 parent e6ad5f5 commit a1c5174

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

docs/diagnostics.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
Virtlet provides a set of
44
[virtletctl diag](virtletctl/virtletctl_diag.md) commands that can
55
help with troubleshooting. The diagnostics can be invoked either
6-
directly or buy means of a
6+
directly or by means of a
77
[Sonobuoy](https://github.com/heptio/sonobuoy) plugin.
88

99
## Direct invocation

tests/e2e/virtletctl_test.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -101,16 +101,16 @@ var _ = Describe("virtletctl", func() {
101101
Expect(output).To(Equal("virtletctl-cirros-vm"))
102102
}, 60)
103103

104-
It("Should dump Virtlet metadata on dump-metadata subcommand", func(done Done) {
104+
It("Should dump Virtlet diagnostics on diag dump subcommand", func(done Done) {
105105
defer close(done)
106106

107107
ctx, closeFunc := context.WithCancel(context.Background())
108108
defer closeFunc()
109109
localExecutor := framework.LocalExecutor(ctx)
110110

111-
By("Calling virtletctl dump-metadata")
112-
output := callVirtletctl(localExecutor, "dump-metadata")
113-
Expect(output).To(ContainSubstring("virtletctl-cirros-vm"))
111+
By("Calling virtletctl diag dump")
112+
output := callVirtletctl(localExecutor, "diag", "dump", "--json")
113+
Expect(output).To(ContainSubstring("cirros-vm"))
114114
}, 60)
115115

116116
})

0 commit comments

Comments
 (0)