diff --git a/testing/internal/e2e/boundary/account.go b/testing/internal/e2e/boundary/account.go index 47a034e36f..4c2ee5d7af 100644 --- a/testing/internal/e2e/boundary/account.go +++ b/testing/internal/e2e/boundary/account.go @@ -13,7 +13,7 @@ import ( "github.com/stretchr/testify/require" ) -// CreateNewAccountApi creates a new account using the go api. +// CreateNewAccountApi creates a new account using the Go api. // Returns the id of the new account as well as the password that was generated func CreateNewAccountApi(t testing.TB, ctx context.Context, client *api.Client, loginName string) (accountId string, password string) { c, err := loadConfig() diff --git a/testing/internal/e2e/boundary/credential.go b/testing/internal/e2e/boundary/credential.go index c9b9b64beb..bc514d5926 100644 --- a/testing/internal/e2e/boundary/credential.go +++ b/testing/internal/e2e/boundary/credential.go @@ -11,7 +11,7 @@ import ( "github.com/stretchr/testify/require" ) -// CreateNewCredentialStoreStaticApi creates a new static credential store using the go api. +// CreateNewCredentialStoreStaticApi creates a new static credential store using the Go api. // Returns the id of the new credential store func CreateNewCredentialStoreStaticApi(t testing.TB, ctx context.Context, client *api.Client, projectId string) string { csClient := credentialstores.NewClient(client) diff --git a/testing/internal/e2e/boundary/host.go b/testing/internal/e2e/boundary/host.go index 786561bff1..b26e4bbf12 100644 --- a/testing/internal/e2e/boundary/host.go +++ b/testing/internal/e2e/boundary/host.go @@ -13,7 +13,7 @@ import ( "github.com/stretchr/testify/require" ) -// CreateNewHostCatalogApi creates a new host catalog in boundary using the go api. +// CreateNewHostCatalogApi creates a new host catalog in boundary using the Go api. // Returns the id of the new host catalog. func CreateNewHostCatalogApi(t testing.TB, ctx context.Context, client *api.Client, projectId string) string { hcClient := hostcatalogs.NewClient(client) @@ -25,7 +25,7 @@ func CreateNewHostCatalogApi(t testing.TB, ctx context.Context, client *api.Clie return newHostCatalogId } -// CreateNewHostSetApi creates a new host set in boundary using the go api. +// CreateNewHostSetApi creates a new host set in boundary using the Go api. // Returns the id of the new host set. func CreateNewHostSetApi(t testing.TB, ctx context.Context, client *api.Client, hostCatalogId string) string { hsClient := hostsets.NewClient(client) @@ -37,7 +37,7 @@ func CreateNewHostSetApi(t testing.TB, ctx context.Context, client *api.Client, return newHostSetId } -// CreateNewHostApi creates a new host in boundary using the go api +// CreateNewHostApi creates a new host in boundary using the Go api // Returns the id of the new host. func CreateNewHostApi(t testing.TB, ctx context.Context, client *api.Client, hostCatalogId string, address string) string { hClient := hosts.NewClient(client) @@ -52,7 +52,7 @@ func CreateNewHostApi(t testing.TB, ctx context.Context, client *api.Client, hos return newHostId } -// AddHostToHostSetApi adds a host to a host set using the go api +// AddHostToHostSetApi adds a host to a host set using the Go api func AddHostToHostSetApi(t testing.TB, ctx context.Context, client *api.Client, hostSetId string, hostId string) { hsClient := hostsets.NewClient(client) _, err := hsClient.AddHosts(ctx, hostSetId, 0, []string{hostId}, hostsets.WithAutomaticVersioning(true)) diff --git a/testing/internal/e2e/boundary/scope.go b/testing/internal/e2e/boundary/scope.go index ce5bde565b..48a4b4b421 100644 --- a/testing/internal/e2e/boundary/scope.go +++ b/testing/internal/e2e/boundary/scope.go @@ -11,7 +11,7 @@ import ( "github.com/stretchr/testify/require" ) -// CreateNewOrgApi creates a new organization in boundary using the go api. +// CreateNewOrgApi creates a new organization in boundary using the Go api. // Returns the id of the new org. func CreateNewOrgApi(t testing.TB, ctx context.Context, client *api.Client) string { scopeClient := scopes.NewClient(client) @@ -28,7 +28,7 @@ func CreateNewOrgApi(t testing.TB, ctx context.Context, client *api.Client) stri return newOrgId } -// CreateNewProjectApi creates a new project in boundary using the go api. The project will be created +// CreateNewProjectApi creates a new project in boundary using the Go api. The project will be created // under the provided org id. // Returns the id of the new project. func CreateNewProjectApi(t testing.TB, ctx context.Context, client *api.Client, orgId string) string { diff --git a/testing/internal/e2e/boundary/target.go b/testing/internal/e2e/boundary/target.go index 1a2ab415a1..d2cda2b9a5 100644 --- a/testing/internal/e2e/boundary/target.go +++ b/testing/internal/e2e/boundary/target.go @@ -12,7 +12,7 @@ import ( "github.com/stretchr/testify/require" ) -// CreateNewTargetApi creates a new target in boundary using the go api. +// CreateNewTargetApi creates a new target in boundary using the Go api. // Returns the id of the new target. func CreateNewTargetApi(t testing.TB, ctx context.Context, client *api.Client, projectId string, defaultPort string) string { tClient := targets.NewClient(client) @@ -29,7 +29,7 @@ func CreateNewTargetApi(t testing.TB, ctx context.Context, client *api.Client, p return newTargetId } -// AddHostSourceToTargetApi adds a host source (host set or host) to a target using the go api +// AddHostSourceToTargetApi adds a host source (host set or host) to a target using the Go api func AddHostSourceToTargetApi(t testing.TB, ctx context.Context, client *api.Client, targetId string, hostSourceId string) { tClient := targets.NewClient(client) _, err := tClient.AddHostSources(ctx, targetId, 0, diff --git a/testing/internal/e2e/boundary/user.go b/testing/internal/e2e/boundary/user.go index 7d26d28329..e4e5218eee 100644 --- a/testing/internal/e2e/boundary/user.go +++ b/testing/internal/e2e/boundary/user.go @@ -11,7 +11,7 @@ import ( "github.com/stretchr/testify/require" ) -// CreateNewUserCli creates a new user using the go api. +// CreateNewUserCli creates a new user using the Go api. // Returns the id of the new user func CreateNewUserApi(t testing.TB, ctx context.Context, client *api.Client, scopeId string) string { uClient := users.NewClient(client) diff --git a/testing/internal/e2e/credential/vault/vault_test.go b/testing/internal/e2e/credential/vault/vault_test.go index 5731f83528..8ad5a3b0ab 100644 --- a/testing/internal/e2e/credential/vault/vault_test.go +++ b/testing/internal/e2e/credential/vault/vault_test.go @@ -178,9 +178,9 @@ func TestCreateVaultCredentialStoreCli(t *testing.T) { t.Log("Successfully connected to target") } -// TestCreateVaultCredentialStoreApi uses the boundary go api along with the vault cli to -// add secrets management for a target. The test sets up vault as a credential stores and creates -// a set of credentials in vault that is attached to a target. +// TestCreateVaultCredentialStoreApi uses the Go api along with the vault cli to add secrets +// management for a target. The test sets up vault as a credential stores and creates a set of +// credentials in vault that is attached to a target. func TestCreateVaultCredentialStoreApi(t *testing.T) { e2e.MaybeSkipTest(t) c, err := loadConfig() diff --git a/testing/internal/e2e/host/aws/dynamichostcatalog_test.go b/testing/internal/e2e/host/aws/dynamichostcatalog_test.go index 372f15c7cf..c6ab4c1385 100644 --- a/testing/internal/e2e/host/aws/dynamichostcatalog_test.go +++ b/testing/internal/e2e/host/aws/dynamichostcatalog_test.go @@ -250,9 +250,9 @@ func TestCreateAwsDynamicHostCatalogCli(t *testing.T) { require.True(t, hostIpInList, fmt.Sprintf("Connected host (%s) is not in expected list (%s)", hostIp, targetIps1)) } -// TestCreateAwsDynamicHostCatalogApi uses the boundary go api to create a host catalog with the AWS -// plugin. The test sets up an AWS dynamic host catalog, creates a host set, and sets up a target to -// the host set. +// TestCreateAwsDynamicHostCatalogApi uses the Go api to create a host catalog with the AWS plugin. +// The test sets up an AWS dynamic host catalog, creates a host set, and sets up a target to the +// host set. func TestCreateAwsDynamicHostCatalogApi(t *testing.T) { e2e.MaybeSkipTest(t) c, err := loadConfig() diff --git a/testing/internal/e2e/host/static/connect_ssh_test.go b/testing/internal/e2e/host/static/connect_ssh_test.go index fbac406c47..25f60e7832 100644 --- a/testing/internal/e2e/host/static/connect_ssh_test.go +++ b/testing/internal/e2e/host/static/connect_ssh_test.go @@ -84,7 +84,7 @@ func TestConnectTargetWithSshCli(t *testing.T) { t.Log("Successfully connected to target") } -// TestCreateTargetWithStaticCredentialStoreApi uses the boundary go api to create a credential using +// TestCreateTargetWithStaticCredentialStoreApi uses the Go api to create a credential using // boundary's built-in credential store. The test then attaches that credential to a target. func TestCreateTargetWithStaticCredentialStoreApi(t *testing.T) { e2e.MaybeSkipTest(t) diff --git a/testing/internal/e2e/host/static/connect_test.go b/testing/internal/e2e/host/static/connect_test.go index ef9a3e600f..9eaef25c7b 100644 --- a/testing/internal/e2e/host/static/connect_test.go +++ b/testing/internal/e2e/host/static/connect_test.go @@ -50,7 +50,7 @@ func TestConnectTargetCli(t *testing.T) { t.Log("Successfully connected to target") } -// TestCreateTargetApi uses the boundary go api to create a number of supporting objects +// TestCreateTargetApi uses the Go api to create a number of supporting objects // to connect to a target. This test does not connect to the target due to the complexity // when not using the cli. func TestCreateTargetApi(t *testing.T) { diff --git a/testing/internal/e2e/host/static/session_cancel_user_test.go b/testing/internal/e2e/host/static/session_cancel_user_test.go index 6935374846..fb9c06b6a9 100644 --- a/testing/internal/e2e/host/static/session_cancel_user_test.go +++ b/testing/internal/e2e/host/static/session_cancel_user_test.go @@ -174,7 +174,7 @@ func TestSessionCancelUserCli(t *testing.T) { t.Log("Successfully cancelled session") } -// TestCreateUserApi uses the go api to create a new user and add some grants to the user +// TestCreateUserApi uses the Go api to create a new user and add some grants to the user func TestCreateUserApi(t *testing.T) { e2e.MaybeSkipTest(t) c, err := loadConfig()