equal
deleted
inserted
replaced
19 # |
19 # |
20 # CDDL HEADER END |
20 # CDDL HEADER END |
21 # |
21 # |
22 |
22 |
23 # |
23 # |
24 # Copyright (c) 2008, 2011, Oracle and/or its affiliates. All rights reserved. |
24 # Copyright (c) 2008, 2012, Oracle and/or its affiliates. All rights reserved. |
25 # |
25 # |
26 |
26 |
27 import testutils |
27 import testutils |
28 if __name__ == "__main__": |
28 if __name__ == "__main__": |
29 testutils.setup_environment("../../../proto") |
29 testutils.setup_environment("../../../proto") |
258 self.pkg("set-publisher -O http://*^5$% test2", exit=1) |
258 self.pkg("set-publisher -O http://*^5$% test2", exit=1) |
259 self.pkg("set-publisher -O http://%s1:abcde test2" % |
259 self.pkg("set-publisher -O http://%s1:abcde test2" % |
260 self.bogus_url, exit=1) |
260 self.bogus_url, exit=1) |
261 self.pkg("set-publisher -O ftp://%s2 test2" % self.bogus_url, |
261 self.pkg("set-publisher -O ftp://%s2 test2" % self.bogus_url, |
262 exit=1) |
262 exit=1) |
|
263 |
|
264 # Verify single character in hostname is valid publisher |
|
265 self.pkg("set-publisher --no-refresh -g http://a/ a") |
|
266 self.pkg("set-publisher --no-refresh -g http://a.example.com " \ |
|
267 "a.example.com") |
263 |
268 |
264 def test_missing_perms(self): |
269 def test_missing_perms(self): |
265 """Bug 2393""" |
270 """Bug 2393""" |
266 |
271 |
267 self.image_create(self.rurl, prefix="test") |
272 self.image_create(self.rurl, prefix="test") |