Skip to content

Commit

Permalink
Test cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
bkrodgers committed Feb 25, 2016
1 parent 440862a commit 747bf4f
Showing 1 changed file with 25 additions and 3 deletions.
Expand Up @@ -13,13 +13,35 @@ class Route53_UT extends FunSpec with Matchers {
"TestRecord",
"TestServiceToken",
"TestDestinationRole",
"etcd.internal.agro.services",
"TestHostName",
Route53RecordType.CNAME,
"test",
"TestZone",
Seq("cnn.com"),
"60")

val expectedJson = """{"AWSTemplateFormatVersion":"2010-09-09","Description":"","Resources":{"TestRecord":{"Properties":{"DestinationRole":"TestDestinationRole","Name":"etcd.internal.agro.services","ServiceToken":"TestServiceToken","HostedZoneName":"test","ResourceRecords":["cnn.com"],"TTL":"60","Type":"CNAME"},"Type":"Custom::RemoteRecordSet"}}}""".parseJson
val expectedJson =
"""
|{
| "AWSTemplateFormatVersion": "2010-09-09",
| "Description": "",
| "Resources": {
| "TestRecord": {
| "Properties": {
| "DestinationRole": "TestDestinationRole",
| "Name": "TestHostName",
| "ServiceToken": "TestServiceToken",
| "HostedZoneName": "TestZone",
| "ResourceRecords": [
| "cnn.com"
| ],
| "TTL": "60",
| "Type": "CNAME"
| },
| "Type": "Custom::RemoteRecordSet"
| }
| }
|}
""".stripMargin.parseJson
Template.fromResource(record).toJson should be (expectedJson)
}
}
Expand Down

0 comments on commit 747bf4f

Please sign in to comment.