-
Notifications
You must be signed in to change notification settings - Fork 626
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
Adds ciphers to zone settings override #899
Conversation
Can you please split this into two separate PRs? The changes are not related and should be reviewed separately. |
@jacobbednarz sure, thanks for looking into this Also can you please comment on my question in description about |
I'll confirm about these first two however |
@@ -62,6 +62,8 @@ func TestAccCloudflareZoneSettingsOverride_Full(t *testing.T) { | |||
name, "settings.0.zero_rtt", "off"), | |||
resource.TestCheckResourceAttr( | |||
name, "settings.0.universal_ssl", "off"), | |||
resource.TestCheckResourceAttr( |
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.
This test is failing due to the setting not being persisted to state.
=== RUN TestAccCloudflareZoneSettingsOverride_Full
testing.go:705: Step 1 error: Check failed: Check 8/8 error: cloudflare_zone_settings_override.test: Attribute 'settings.0.ciphers' not found
--- FAIL: TestAccCloudflareZoneSettingsOverride_Full (21.01s)
FAIL
FAIL github.com/cloudflare/terraform-provider-cloudflare/cloudflare 21.386s
FAIL
Check out the README for running these integration tests if you haven't already.
Instead of looking for specific values (which I don't think TypeList
handles too well), just check the number of elements. This line would become resource.TestCheckResourceAttr(name, "settings.0.ciphers.#", "2")
however if you swap it to that, you'll see it's empty without any elements too.
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.
mmm now it fails with:
Error: error from makeRequest: HTTP status 400: content "{\"success\":false,\"errors\":[{\"code\":1023,\"message\":\"Advanced Certificate Manager is required to set custom cipher suites\"}],\"messages\":[],\"result\":null}"
seems it requires some extra configuration tobe enabled...
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.
we'll need to address the failing test on this one before merging
@riuvshyn, are you still looking into this? would you like me to take it over since I have a need for this? |
@elovelan if you want this functionality, i'd recommend grabbing a new PR and submitting as this one is now stagnent. |
Adds zone settings override for
ciphers
: https://api.cloudflare.com/#zone-settings-change-ciphers-settingAlso I've noticed that
client/v4/zones/.../settings
returns some more options that are not available in terraform:Should I also add
visitor_ip
,orange_to_orange
,edge_cache_ttl
settings? Also I do not see anything for these settings in the docs...