Fix some tests broken by merge
This commit is contained in:
1 parent
adfc5681be
commit
e20c150617
1 file changed
+3
-3
@@ -46,7 +46,7 @@ func TestCatalogs_Crud(t *testing.T) {
|
||||
|
||||
hcClient := hosts.NewHostCatalogsClient(projClient)
|
||||
|
||||
hc, apiErr, err := hcClient.Create(tc.Context(), hosts.WithName("foo"), hosts.WithType("static"))
|
||||
hc, apiErr, err := hcClient.Create(tc.Context(), "static", hosts.WithName("foo"))
|
||||
checkCatalog("create", hc, apiErr, err, "foo", 1)
|
||||
|
||||
hc, apiErr, err = hcClient.Read(tc.Context(), hc.Id)
|
||||
@@ -84,12 +84,12 @@ func TestCatalogs_Errors(t *testing.T) {
|
||||
client.SetScopeId(proj.GetPublicId())
|
||||
pc := hosts.NewHostCatalogsClient(client)
|
||||
|
||||
hc, apiErr, err := pc.Create(tc.Context(), hosts.WithType("static"))
|
||||
hc, apiErr, err := pc.Create(tc.Context(), "static", hosts.WithName("foo"))
|
||||
require.NoError(err)
|
||||
assert.Nil(apiErr)
|
||||
assert.NotNil(hc)
|
||||
|
||||
_, apiErr, err = pc.Create(tc.Context())
|
||||
_, apiErr, err = pc.Create(tc.Context(), "static", hosts.WithName("foo"))
|
||||
require.NoError(err)
|
||||
assert.NotNil(apiErr)
|
||||
|
||||
|
||||
Reference in new issue
Block a user