-
Notifications
You must be signed in to change notification settings - Fork 301
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add fixtures and helpers in e2e framework for BackendConfig #331
Conversation
7cdf477
to
5e91da6
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nits
pkg/fuzz/helpers.go
Outdated
} | ||
|
||
// ToggleCDN enables or disables CDN on the BackendConfig. | ||
func (b *BackendConfigBuilder) ToggleCDN(enabled bool) *BackendConfigBuilder { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
EnableCDN
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
pkg/fuzz/helpers.go
Outdated
|
||
// ToggleCDN enables or disables CDN on the BackendConfig. | ||
func (b *BackendConfigBuilder) ToggleCDN(enabled bool) *BackendConfigBuilder { | ||
if b.backendConfig.Spec.Cdn == nil { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if enabled == false {
b.backendConfig.Spec.Cdn = nil
}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not following.. if enabled is false, I would want to set Cdn.Enabled to false, not set the pointer to nil.
5e91da6
to
40ff255
Compare
/lgtm |
/assign @bowei
This change is