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 1812757
Showing 1 changed file with 4 additions and 4 deletions.
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 1812757

Please sign in to comment.