Skip to content

Commit

Permalink
chore: validate project id
Browse files Browse the repository at this point in the history
  • Loading branch information
sweatybridge committed Sep 24, 2024
1 parent 61adf7a commit 16003ac
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/config/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,13 @@ func TestConfigParsing(t *testing.T) {
staging, ok := config.Remotes["staging"]
assert.True(t, ok)
// Check the values for production override
assert.Equal(t, config.ProjectId, production.ProjectId)
assert.Equal(t, "http://feature-auth-branch.com/", production.Auth.SiteUrl)
assert.Equal(t, false, production.Auth.EnableSignup)
assert.Equal(t, false, production.Auth.External["azure"].Enabled)
assert.Equal(t, "nope", production.Auth.External["azure"].ClientId)
// Check the values for the staging override
assert.Equal(t, "staging-project", staging.ProjectId)
assert.Equal(t, []string{"image/png"}, staging.Storage.Buckets["images"].AllowedMimeTypes)
})
}
Expand Down

0 comments on commit 16003ac

Please sign in to comment.