testing/e2e: add account pagination test (#4314)

This commit is contained in:
Johan Brandhorst-Satzkorn authored and GitHub committed 2024-01-29 13:22:21 -08:00
1 parent 025fce6f95
commit 0bddb346e5
4 files changed
+218 -8

No files matched your search

@@ -152,6 +152,8 @@ func TestApiCreateUser(t *testing.T) {
e2e.MaybeSkipTest(t)
c, err := loadTestConfig()
require.NoError(t, err)
bc, err := boundary.LoadConfig()
require.NoError(t, err)
client, err := boundary.NewApiClient()
require.NoError(t, err)
@@ -172,7 +174,7 @@ func TestApiCreateUser(t *testing.T) {
boundary.AddHostSourceToTargetApi(t, ctx, client, newTargetId, newHostSetId)
acctName := "e2e-account"
newAcctId, _ := boundary.CreateNewAccountApi(t, ctx, client, acctName)
newAcctId, _ := boundary.CreateNewAccountApi(t, ctx, client, bc.AuthMethodId, acctName)
t.Cleanup(func() {
aClient := accounts.NewClient(client)
_, err := aClient.Delete(ctx, newAcctId)