-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
resource/aws_service_discovery_service: Support routing policy and update the type of dns record #3273
Merged
radeksimko
merged 4 commits into
hashicorp:master
from
atsushi-ishibashi:update_sd_service
Feb 12, 2018
Merged
resource/aws_service_discovery_service: Support routing policy and update the type of dns record #3273
Changes from 1 commit
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
8ccaa72
resource/aws_service_discovery_service: Support routing policy and up…
atsushi-ishibashi 98fef6c
fix indentation
atsushi-ishibashi d557741
Add state migration and modify validate func
atsushi-ishibashi 627b45c
Remove routing_policy from 1 test
radeksimko File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,6 +25,7 @@ func TestAccAwsServiceDiscoveryService_private(t *testing.T) { | |
resource.TestCheckResourceAttr("aws_service_discovery_service.test", "dns_config.0.dns_records.#", "1"), | ||
resource.TestCheckResourceAttr("aws_service_discovery_service.test", "dns_config.0.dns_records.0.type", "A"), | ||
resource.TestCheckResourceAttr("aws_service_discovery_service.test", "dns_config.0.dns_records.0.ttl", "5"), | ||
resource.TestCheckResourceAttr("aws_service_discovery_service.test", "dns_config.0.routing_policy", "MULTIVALUE"), | ||
resource.TestCheckResourceAttrSet("aws_service_discovery_service.test", "arn"), | ||
), | ||
}, | ||
|
@@ -58,6 +59,7 @@ func TestAccAwsServiceDiscoveryService_public(t *testing.T) { | |
resource.TestCheckResourceAttr("aws_service_discovery_service.test", "health_check_config.0.type", "HTTP"), | ||
resource.TestCheckResourceAttr("aws_service_discovery_service.test", "health_check_config.0.failure_threshold", "5"), | ||
resource.TestCheckResourceAttr("aws_service_discovery_service.test", "health_check_config.0.resource_path", "/path"), | ||
resource.TestCheckResourceAttr("aws_service_discovery_service.test", "dns_config.0.routing_policy", "WEIGHTED"), | ||
resource.TestCheckResourceAttrSet("aws_service_discovery_service.test", "arn"), | ||
), | ||
}, | ||
|
@@ -161,6 +163,7 @@ resource "aws_service_discovery_service" "test" { | |
ttl = 5 | ||
type = "A" | ||
} | ||
routing_policy = "MULTIVALUE" | ||
} | ||
} | ||
`, rName, rName) | ||
|
@@ -190,6 +193,7 @@ resource "aws_service_discovery_service" "test" { | |
ttl = 5 | ||
type = "AAAA" | ||
} | ||
routing_policy = "MULTIVALUE" | ||
} | ||
} | ||
`, rName, rName) | ||
|
@@ -210,6 +214,7 @@ resource "aws_service_discovery_service" "test" { | |
ttl = 5 | ||
type = "A" | ||
} | ||
routing_policy = "WEIGHTED" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Some funny indentation here 👀 |
||
} | ||
health_check_config { | ||
failure_threshold = %d | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Since the API defaults to
MULTIVALUE
shouldn't we also set it asDefault
here to avoid diffs when the field is not defined?