From e20c150617c62926730b01f973b18666025bed10 Mon Sep 17 00:00:00 2001 From: Jeff Mitchell Date: Tue, 18 Aug 2020 19:16:52 -0400 Subject: [PATCH] Fix some tests broken by merge --- api/hosts/host_catalog_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/api/hosts/host_catalog_test.go b/api/hosts/host_catalog_test.go index 0051bd59e..bf3391b52 100644 --- a/api/hosts/host_catalog_test.go +++ b/api/hosts/host_catalog_test.go @@ -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)