Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
myleshorton committed Oct 31, 2023
1 parent 313eac3 commit af83305
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions config_v3/embedded_global_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,10 @@ func TestEmbeddedGlobal(t *testing.T) {
assert.NoError(t, err)

gl := global.(*Global)
assert.True(t, len(gl.Client.Fronted.Providers["akamai"].Masquerades) > 20, "embedded global config does not contain enough akamai masquerades")
assert.True(t, len(gl.Client.Fronted.Providers["cloudfront"].Masquerades) > 20, "embedded global config does not contain enough cloudfront masquerades")
assert.Containsf(t, gl.Client.Fronted.Providers["cloudfront"].HostAliases, "replica-search.lantern.io", "embedded global config does not contain replica-search cloudfront fronted provider")
assert.Containsf(t, gl.Client.Fronted.Providers["akamai"].HostAliases, "replica-search.lantern.io", "embedded global config does not contain replica-search akamai fronted provider")
akamai := gl.Client.Fronted.Providers["akamai"]
cloudfront := gl.Client.Fronted.Providers["cloudfront"]
assert.True(t, len(akamai.Masquerades) > 20, "embedded global config does not contain enough akamai masquerades: ")
assert.True(t, len(cloudfront.Masquerades) > 20, "embedded global config does not contain enough cloudfront masquerades")
assert.Containsf(t, cloudfront.HostAliases, "replica-search.lantern.io", "embedded global config does not contain replica-search cloudfront fronted provider")
assert.Containsf(t, akamai.HostAliases, "replica-search.lantern.io", "embedded global config does not contain replica-search akamai fronted provider")
}

0 comments on commit af83305

Please sign in to comment.