Skip to content

Commit

Permalink
Update metadata dump e2e to test diag instead
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivan Shvedunov committed Jul 11, 2018
1 parent e6ad5f5 commit a1c5174
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion docs/diagnostics.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Virtlet provides a set of
[virtletctl diag](virtletctl/virtletctl_diag.md) commands that can
help with troubleshooting. The diagnostics can be invoked either
directly or buy means of a
directly or by means of a
[Sonobuoy](https://github.com/heptio/sonobuoy) plugin.

## Direct invocation
Expand Down
8 changes: 4 additions & 4 deletions tests/e2e/virtletctl_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,16 +101,16 @@ var _ = Describe("virtletctl", func() {
Expect(output).To(Equal("virtletctl-cirros-vm"))
}, 60)

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

ctx, closeFunc := context.WithCancel(context.Background())
defer closeFunc()
localExecutor := framework.LocalExecutor(ctx)

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

})
Expand Down

0 comments on commit a1c5174

Please sign in to comment.