Skip to content

Commit

Permalink
[Fix] lint
Browse files Browse the repository at this point in the history
  • Loading branch information
anton-sidelnikov committed Nov 8, 2024
1 parent ce93420 commit 0e30b5a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion acceptance/openstack/hss/v5/server_group_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ func TestServerLifecycle(t *testing.T) {
th.AssertNoErr(t, err)

hs, err := host.ListHost(client, host.ListHostOpts{HostID: ecs.ID})
th.AssertNoErr(t, err)
th.AssertEquals(t, "closed", hs[0].ProtectStatus)

t.Logf("Attempting to Change server Protection Status to enterprise")
Expand All @@ -153,14 +154,16 @@ func TestServerLifecycle(t *testing.T) {
},
},
})

th.AssertNoErr(t, err)
hs, err = host.ListHost(client, host.ListHostOpts{HostID: ecs.ID})
th.AssertNoErr(t, err)
th.AssertEquals(t, "opened", hs[0].ProtectStatus)

t.Logf("Attempting to get used quota details")
q, err := quota.List(client, quota.ListOpts{
HostName: ecs.Name,
})
th.AssertNoErr(t, err)
th.AssertEquals(t, "used", q[0].UsedStatus)
th.AssertEquals(t, "hss.version.enterprise", q[0].Version)
}

0 comments on commit 0e30b5a

Please sign in to comment.