Skip to content

Commit

Permalink
add more e2e
Browse files Browse the repository at this point in the history
Signed-off-by: Gyuho Lee <[email protected]>
  • Loading branch information
gyuho committed Nov 28, 2024
1 parent 1f39d5a commit a8cdce9
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions e2e/e2e_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,17 @@ func TestGpudHealthzInfo(t *testing.T) {
}
t.Logf("respMetrics size:\n%s", string(metricsBytes))

t.Log("now testing with client/v1 basic disk get states")
states, err := client_v1.GetStates(ctx, "https://"+ep, client_v1.WithComponent("disk"))
if err != nil {
t.Errorf("failed to get states: %v", err)
}
for _, ss := range states {
for _, s := range ss.States {
t.Logf("state: %q, healthy: %v, extra info: %q\n", s.Name, s.Healthy, s.ExtraInfo)
}
}

t.Log("now testing with client/v1")
for _, opts := range [][]client_v1.OpOption{
{client_v1.WithRequestContentTypeJSON()},
Expand Down

0 comments on commit a8cdce9

Please sign in to comment.