The have_record_set matcher always required a value as below:
describe route53_hosted_zone('foo.') do
it { should have_record_set('bar.foo.').a('192.168.0.1') }
end
But, as discussed in #318, sometimes want to test a record set regardless of a value of record.
This PR enables awspec user test a record without its value as below:
describe route53_hosted_zone('foo.') do
# Test if a hosted zone has a given record.
it { should have_record_set('bar.foo.') }
# Test if a hosted zone has a given record and a given type.
it { should have_record_set('bar.foo.').type('a') }
end
What do you think about this PR?. I would appreciate receiving a feedback.
Fixes #318.
The have_record_set matcher always required a value as below:
But, as discussed in #318, sometimes want to test a record set regardless of a value of record.
This PR enables awspec user test a record without its value as below:
What do you think about this PR?. I would appreciate receiving a feedback.