Skip to content

Commit

Permalink
add TestIntegrationDomainBlockStatsFlags
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Zorin committed Aug 2, 2014
1 parent 30c04da commit ca84f7b
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -794,3 +794,31 @@ func TestIntergrationListAllNWFilters(t *testing.T) {
t.Fatalf("NWFilter %s not found", testNWFilterName)
}
}

func TestIntegrationDomainBlockStatsFlags(t *testing.T) {
conn, err := NewVirConnection("lxc:///")
if err != nil {
t.Fatal(err)
}
defer conn.CloseConnection()

dom, err := defineTestLxcDomain(conn, "")
if err != nil {
t.Fatal(err)
}
defer func() {
dom.Undefine()
dom.Free()
}()

if err := dom.Create(); err != nil {
t.Fatal(err)
}
defer dom.Destroy()

// special case, count number of parameters
_, err = dom.BlockStatsFlags("", nil, 0, 0)
if err != nil {
t.Fatal(err)
}
}

0 comments on commit ca84f7b

Please sign in to comment.