Skip to content

Commit

Permalink
test: update more assertions
Browse files Browse the repository at this point in the history
  • Loading branch information
zepatrik committed Aug 11, 2023
1 parent 471cce7 commit 72d7e22
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions driver/config/provider_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -263,10 +263,14 @@ func TestViperProviderValidates(t *testing.T) {

gc, enabled := c.CORS(ctx, AdminInterface)
assert.False(t, enabled)
assert.NotNil(t, gc.AllowOriginRequestFunc)
gc.AllowOriginRequestFunc = nil
assert.Equal(t, expectedCors, gc)

gc, enabled = c.CORS(ctx, PublicInterface)
assert.False(t, enabled)
assert.NotNil(t, gc.AllowOriginRequestFunc)
gc.AllowOriginRequestFunc = nil
assert.Equal(t, expectedCors, gc)

assert.Equal(t, []string{"127.0.0.1/32"}, c.TLS(ctx, PublicInterface).AllowTerminationFrom())
Expand Down

0 comments on commit 72d7e22

Please sign in to comment.