X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;ds=sidebyside;f=3rdparty%2Fmodules%2Fkeystone%2Fspec%2Funit%2Ftype%2Fkeystone_endpoint_spec.rb;fp=3rdparty%2Fmodules%2Fkeystone%2Fspec%2Funit%2Ftype%2Fkeystone_endpoint_spec.rb;h=a3667c546a5c799ca0b624265637fc6a9071feb2;hb=b8fa2c1a5ec9dbcd1d2f9e9b41afdde4c603aa35;hp=0000000000000000000000000000000000000000;hpb=b7626cbcbb2fb8e7ce3dc5ac60e80a981175f9d3;p=dsa-puppet.git diff --git a/3rdparty/modules/keystone/spec/unit/type/keystone_endpoint_spec.rb b/3rdparty/modules/keystone/spec/unit/type/keystone_endpoint_spec.rb new file mode 100644 index 00000000..a3667c54 --- /dev/null +++ b/3rdparty/modules/keystone/spec/unit/type/keystone_endpoint_spec.rb @@ -0,0 +1,9 @@ +describe Puppet::Type.type(:keystone_endpoint) do + + it 'should fail when the namevar does not contain a region' do + expect do + Puppet::Type.type(:keystone_endpoint).new(:name => 'foo') + end.to raise_error(Puppet::Error, /Invalid value/) + end + +end