basic keys mgmt repo (#264)

This commit is contained in:
Jim authored and GitHub committed 2020-08-19 16:47:18 -04:00
1 parent a413ad7b84
commit 9570897032
140 files changed
+5667 -1223

No files matched your search

+2 -4
View File
@@ -8,7 +8,7 @@ import (
"strings"
"testing"
"github.com/hashicorp/boundary/internal/iam"
"github.com/hashicorp/boundary/internal/types/scope"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)
@@ -21,9 +21,7 @@ func TestAuthenticationHandler(t *testing.T) {
})
defer c.Shutdown()
org := iam.TestOrg(t, c.DbConn())
resp, err := http.Post(fmt.Sprintf("%s/v1/scopes/%s/auth-methods/paum_1234567890:authenticate", c.ApiAddrs()[0], org.GetPublicId()), "application/json",
resp, err := http.Post(fmt.Sprintf("%s/v1/scopes/%s/auth-methods/paum_1234567890:authenticate", c.ApiAddrs()[0], scope.Global.String()), "application/json",
strings.NewReader(`{"token_type": null, "credentials": {"login_name":"admin", "password": "password123"}}`))
require.NoError(t, err)
assert.Equal(t, http.StatusOK, resp.StatusCode, "Got response: %v", resp)