diff --git a/plugins/render/api_key_test.go b/plugins/render/api_key_test.go index fd91906f0..3e1f60534 100644 --- a/plugins/render/api_key_test.go +++ b/plugins/render/api_key_test.go @@ -12,12 +12,7 @@ func TestAPIKeyProvisioner(t *testing.T) { plugintest.TestProvisioner(t, APIKey().DefaultProvisioner, map[string]plugintest.ProvisionCase{ "default": { ItemFields: map[sdk.FieldName]string{ // TODO: Check if this is correct - fieldname.APIKey: "URUEXAMPLE", - }, - ExpectedOutput: sdk.ProvisionOutput{ - Environment: map[string]string{ - "RENDER_API_KEY": "URUEXAMPLE", - }, + fieldname.APIKey: "rnd_Z7xMKp4NX1FoQNRyBpZs9yxDbu3i", }, }, }) @@ -27,12 +22,12 @@ func TestAPIKeyImporter(t *testing.T) { plugintest.TestImporter(t, APIKey().Importer, map[string]plugintest.ImportCase{ "environment": { Environment: map[string]string{ // TODO: Check if this is correct - "RENDER_API_KEY": "URUEXAMPLE", + "RENDER_API_KEY": "rnd_Z7xMKp4NX1FoQNRyBpZs9yxDbu3i", }, ExpectedCandidates: []sdk.ImportCandidate{ { Fields: map[sdk.FieldName]string{ - fieldname.APIKey: "URUEXAMPLE", + fieldname.APIKey: "rnd_Z7xMKp4NX1FoQNRyBpZs9yxDbu3i", }, }, }, @@ -41,14 +36,14 @@ func TestAPIKeyImporter(t *testing.T) { // and fill the necessary details in the test template below. "config file": { Files: map[string]string{ - // "~/path/to/config.yml": plugintest.LoadFixture(t, "config.yml"), + ".render/config.yaml": plugintest.LoadFixture(t, "config.yml"), }, ExpectedCandidates: []sdk.ImportCandidate{ - // { - // Fields: map[sdk.FieldName]string{ - // fieldname.Token: "URUEXAMPLE", - // }, - // }, + { + Fields: map[sdk.FieldName]string{ + fieldname.APIKey: "rnd_Z7xMKp4NX1FoQNRyBpZs9yxDbu3i", + }, + }, }, }, })