Skip to content
This repository has been archived by the owner on Nov 9, 2020. It is now read-only.

Commit

Permalink
Add more verification steps for basic_test
Browse files Browse the repository at this point in the history
Fixes issue #1450
  • Loading branch information
Shaomin Chen committed Jun 21, 2017
1 parent 950b017 commit 7aa95a2
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions tests/e2e/basic_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -156,9 +156,10 @@ func (s *BasicTestSuite) TestVmGroupVolumeIsolation(c *C) {
misc.LogTestStart(c.TestName())

// Initialize Config DB
admincli.ConfigInit(s.esx)
out, err := admincli.ConfigInit(s.esx)
c.Assert(err, IsNil, Commentf(out))

out, err := dockercli.CreateVolume(s.vm1, s.volName1)
out, err = dockercli.CreateVolume(s.vm1, s.volName1)
c.Assert(err, IsNil, Commentf(out))

accessible := verification.CheckVolumeAvailability(s.vm1, s.volName1)
Expand Down Expand Up @@ -193,8 +194,13 @@ func (s *BasicTestSuite) TestVmGroupVolumeIsolation(c *C) {
out, err = dockercli.DeleteVolume(s.vm1, s.volName2)
c.Assert(err, IsNil, Commentf(out))

// Clean up the vm group
out, err = admincli.DeleteVMgroup(s.esx, vmgroup)
c.Assert(err, IsNil, Commentf(out))

// Remove Config DB
admincli.ConfigRemove(s.esx)
out, err = admincli.ConfigRemove(s.esx)
c.Assert(err, IsNil, Commentf(out))

misc.LogTestEnd(c.TestName())
}

0 comments on commit 7aa95a2

Please sign in to comment.