Skip to content

Commit

Permalink
move golden to testutils
Browse files Browse the repository at this point in the history
  • Loading branch information
fspmarshall committed Jan 7, 2025
1 parent 1655fd8 commit e73e260
Show file tree
Hide file tree
Showing 22 changed files with 21 additions and 21 deletions.
2 changes: 1 addition & 1 deletion lib/autoupdate/agent/setup_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import (

"github.com/stretchr/testify/require"

"github.com/gravitational/teleport/lib/utils/golden"
"github.com/gravitational/teleport/lib/utils/testutils/golden"
)

func TestNewNamespace(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion lib/autoupdate/agent/updater_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ import (
"gopkg.in/yaml.v3"

"github.com/gravitational/teleport/api/client/webclient"
"github.com/gravitational/teleport/lib/utils/golden"
"github.com/gravitational/teleport/lib/utils/testutils/golden"
)

func TestUpdater_Disable(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion lib/client/db/postgres/repl/repl_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ import (
clientproto "github.com/gravitational/teleport/api/client/proto"
"github.com/gravitational/teleport/lib/client/db/postgres/repl/testdata"
dbrepl "github.com/gravitational/teleport/lib/client/db/repl"
"github.com/gravitational/teleport/lib/utils/golden"
"github.com/gravitational/teleport/lib/utils/testutils/golden"
)

func TestStart(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion lib/config/openssh/openssh_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import (

"github.com/stretchr/testify/require"

"github.com/gravitational/teleport/lib/utils/golden"
"github.com/gravitational/teleport/lib/utils/testutils/golden"
)

func TestWriteSSHConfig(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion lib/config/systemd_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import (

"github.com/stretchr/testify/require"

"github.com/gravitational/teleport/lib/utils/golden"
"github.com/gravitational/teleport/lib/utils/testutils/golden"
)

func TestWriteSystemdUnitFile(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion lib/integrations/awsoidc/access_graph_aws_sync_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import (
iamtypes "github.com/aws/aws-sdk-go-v2/service/iam/types"
"github.com/stretchr/testify/require"

"github.com/gravitational/teleport/lib/utils/golden"
"github.com/gravitational/teleport/lib/utils/testutils/golden"
)

func TestAccessGraphIAMConfigReqDefaults(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion lib/integrations/awsoidc/aws_app_access_iam_config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import (
iamtypes "github.com/aws/aws-sdk-go-v2/service/iam/types"
"github.com/stretchr/testify/require"

"github.com/gravitational/teleport/lib/utils/golden"
"github.com/gravitational/teleport/lib/utils/testutils/golden"
)

func TestAWSAppAccessConfigReqDefaults(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion lib/integrations/awsoidc/deployservice_iam_config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ import (
"github.com/stretchr/testify/require"

"github.com/gravitational/teleport/lib/integrations/awsoidc/tags"
"github.com/gravitational/teleport/lib/utils/golden"
"github.com/gravitational/teleport/lib/utils/testutils/golden"
)

var badParameterCheck = func(t require.TestingT, err error, msgAndArgs ...interface{}) {
Expand Down
2 changes: 1 addition & 1 deletion lib/integrations/awsoidc/ec2_ssm_iam_config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ import (
ssmtypes "github.com/aws/aws-sdk-go-v2/service/ssm/types"
"github.com/stretchr/testify/require"

"github.com/gravitational/teleport/lib/utils/golden"
"github.com/gravitational/teleport/lib/utils/testutils/golden"
)

func TestEC2SSMIAMConfigReqDefaults(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion lib/integrations/awsoidc/eice_iam_config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import (
iamtypes "github.com/aws/aws-sdk-go-v2/service/iam/types"
"github.com/stretchr/testify/require"

"github.com/gravitational/teleport/lib/utils/golden"
"github.com/gravitational/teleport/lib/utils/testutils/golden"
)

func TestEICEIAMConfigReqDefaults(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion lib/integrations/awsoidc/eks_iam_config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import (
iamtypes "github.com/aws/aws-sdk-go-v2/service/iam/types"
"github.com/stretchr/testify/require"

"github.com/gravitational/teleport/lib/utils/golden"
"github.com/gravitational/teleport/lib/utils/testutils/golden"
)

func TestEKSIAMConfigReqDefaults(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion lib/integrations/awsoidc/idp_iam_config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ import (
"github.com/gravitational/teleport/lib"
awslib "github.com/gravitational/teleport/lib/cloud/aws"
"github.com/gravitational/teleport/lib/integrations/awsoidc/tags"
"github.com/gravitational/teleport/lib/utils/golden"
"github.com/gravitational/teleport/lib/utils/testutils/golden"
)

func TestIdPIAMConfigReqDefaults(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion lib/integrations/awsoidc/listdatabases_iam_config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import (
iamtypes "github.com/aws/aws-sdk-go-v2/service/iam/types"
"github.com/stretchr/testify/require"

"github.com/gravitational/teleport/lib/utils/golden"
"github.com/gravitational/teleport/lib/utils/testutils/golden"
)

func TestListDatabasesIAMConfigReqDefaults(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion lib/tbot/config/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ import (

"github.com/gravitational/teleport/lib/tbot/bot"
"github.com/gravitational/teleport/lib/tbot/botfs"
"github.com/gravitational/teleport/lib/utils/golden"
"github.com/gravitational/teleport/lib/utils/testutils/golden"
)

func TestConfigFile(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion lib/tbot/service_identity_output_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ import (
"github.com/gravitational/teleport/lib/tbot/config"
"github.com/gravitational/teleport/lib/tbot/ssh"
"github.com/gravitational/teleport/lib/utils"
"github.com/gravitational/teleport/lib/utils/golden"
"github.com/gravitational/teleport/lib/utils/testutils/golden"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion lib/tbot/service_kubernetes_output_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ import (
"github.com/gravitational/teleport/lib/tbot/config"
"github.com/gravitational/teleport/lib/tbot/identity"
"github.com/gravitational/teleport/lib/utils"
"github.com/gravitational/teleport/lib/utils/golden"
"github.com/gravitational/teleport/lib/utils/testutils/golden"
)

// Fairly ugly hardcoded certs to use in the generation so that the tests are
Expand Down
2 changes: 1 addition & 1 deletion lib/tbot/service_spiffe_workload_api_sds_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ import (
"github.com/gravitational/teleport/lib/tbot/spiffe"
"github.com/gravitational/teleport/lib/tbot/spiffe/workloadattest"
"github.com/gravitational/teleport/lib/utils"
"github.com/gravitational/teleport/lib/utils/golden"
"github.com/gravitational/teleport/lib/utils/testutils/golden"
"github.com/gravitational/teleport/tool/teleport/testenv"
)

Expand Down
2 changes: 1 addition & 1 deletion lib/tpm/tpm_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import (
"github.com/stretchr/testify/assert"

"github.com/gravitational/teleport/lib/tpm"
"github.com/gravitational/teleport/lib/utils/golden"
"github.com/gravitational/teleport/lib/utils/testutils/golden"
)

func TestPrintQuery(t *testing.T) {
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion tool/tbot/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import (

"github.com/stretchr/testify/require"

"github.com/gravitational/teleport/lib/utils/golden"
"github.com/gravitational/teleport/lib/utils/testutils/golden"
)

func TestRun_Configure(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion tool/tbot/systemd_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ import (
"github.com/stretchr/testify/require"

"github.com/gravitational/teleport/lib/utils"
"github.com/gravitational/teleport/lib/utils/golden"
"github.com/gravitational/teleport/lib/utils/testutils/golden"
)

func TestInstallSystemdCmd(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion tool/tctl/common/workload_identity_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ import (
"github.com/gravitational/teleport/api/types"
"github.com/gravitational/teleport/lib/auth/authclient"
"github.com/gravitational/teleport/lib/utils"
"github.com/gravitational/teleport/lib/utils/golden"
"github.com/gravitational/teleport/lib/utils/testutils/golden"
"github.com/gravitational/teleport/tool/teleport/testenv"
)

Expand Down

0 comments on commit e73e260

Please sign in to comment.