Skip to content

Commit

Permalink
updated test file
Browse files Browse the repository at this point in the history
  • Loading branch information
smyja committed Jun 24, 2023
1 parent 21b0c31 commit 75bd39c
Showing 1 changed file with 9 additions and 14 deletions.
23 changes: 9 additions & 14 deletions plugins/render/api_key_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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",
},
},
})
Expand All @@ -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",
},
},
},
Expand All @@ -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",
},
},
},
},
})
Expand Down

0 comments on commit 75bd39c

Please sign in to comment.