diff options
| author | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2006-06-08 21:46:07 +0000 |
|---|---|---|
| committer | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2006-06-08 21:46:07 +0000 |
| commit | 09d2cd031ffdd16968c92710d6d56715866c334e (patch) | |
| tree | 9319a6050d47ae793f4d874d99dafb9a3d103a1f /test | |
| parent | 1fc4ec373f8ee272077e2e78a380ac78879ffabe (diff) | |
Fixing #168. Reworked the regex to allow matching TLDs.
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1248 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'test')
| -rwxr-xr-x | test/server/authstore.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/server/authstore.rb b/test/server/authstore.rb index 1875dee07..16c753581 100755 --- a/test/server/authstore.rb +++ b/test/server/authstore.rb @@ -203,6 +203,15 @@ class TestAuthStore < Test::Unit::TestCase assert(store.allowed?(*ary), "Failed to allow %s" % [ary.join(",")]) } end + + # Make sure people can specify TLDs + def test_match_tlds + store = mkstore + + assert_nothing_raised { + store.allow("*.tld") + } + end end # $Id$ |
