Skip to content
Snippets Groups Projects
Commit 87d0ecdd authored by ko_oler's avatar ko_oler
Browse files

fix test names

parent 9ce2fdf2
Branches
Tags
No related merge requests found
...@@ -21,22 +21,22 @@ func TestIsSpaceAvailable(t *testing.T) { ...@@ -21,22 +21,22 @@ func TestIsSpaceAvailable(t *testing.T) {
wantErr bool wantErr bool
}{ }{
{ {
"Without StateInfo", "Space has nil StateInfo: available",
&Space{ID: "space", OrgID: "org", Name: "test-space"}, &Space{ID: "space", OrgID: "org", Name: "test-space"},
false, false,
}, },
{ {
"StateReady", "Space state is StateReady: available",
&Space{ID: "space", OrgID: "org", Name: "test-space", StateInfo: &StateInfo{State: StateReady}}, &Space{ID: "space", OrgID: "org", Name: "test-space", StateInfo: &StateInfo{State: StateReady}},
false, false,
}, },
{ {
"StatePreparing", "Space state is StatePreparing: not available",
&Space{ID: "space", OrgID: "org", Name: "test-space", StateInfo: &StateInfo{State: StatePreparing}}, &Space{ID: "space", OrgID: "org", Name: "test-space", StateInfo: &StateInfo{State: StatePreparing}},
true, true,
}, },
{ {
"StateMigration", "Space state is StateMigration: not available",
&Space{ID: "space", OrgID: "org", Name: "test-space", StateInfo: &StateInfo{State: StateMigration}}, &Space{ID: "space", OrgID: "org", Name: "test-space", StateInfo: &StateInfo{State: StateMigration}},
true, true,
}, },
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment