Remove useless "noauth" handling from the RPC interface.
Signed-off-by: Gregory Smith <[email protected]>
--- autotest/cli/change_protection_level.py 2010-03-25 13:18:12.000000000
-0700
+++ autotest/cli/change_protection_level.py 2010-03-25 13:18:12.000000000
-0700
@@ -17,7 +17,7 @@
user = pwd.getpwuid(os.getuid())[0]
autotest_host = rpc.get_autotest_server(options.web)
-afe_proxy = rpc.afe_comm(autotest_host, '/afe/server/noauth/rpc/')
+afe_proxy = rpc.afe_comm(autotest_host)
hosts = afe_proxy.run('get_hosts', hostname__in=leftover_args[1:])
for host in hosts:
--- autotest/frontend/afe/doctests/001_rpc_test.txt 2010-03-24
11:22:06.000000000 -0700
+++ autotest/frontend/afe/doctests/001_rpc_test.txt 2010-03-25
13:18:12.000000000 -0700
@@ -5,7 +5,7 @@
# (to use RPC, we would say
# import rpc_client_lib
# rpc_interface = rpc_client_lib.get_proxy(
-# 'http://hostname:8000/afe/server/noauth/rpc/')
+# 'http://hostname:8000/afe/server/rpc/')
# )
>>> if 'rpc_interface' not in globals():
... from autotest_lib.frontend.afe import rpc_interface, models
--- autotest/frontend/tko/urls.py 2010-03-25 13:18:12.000000000 -0700
+++ autotest/frontend/tko/urls.py 2010-03-25 13:18:12.000000000 -0700
@@ -7,9 +7,9 @@
urlpatterns += defaults.patterns(
'',
- (r'^(?:|noauth/)jsonp_rpc/', 'frontend.tko.views.handle_jsonp_rpc'),
- (r'^(?:|noauth/)csv/', 'frontend.tko.views.handle_csv'),
- (r'^(?:|noauth/)plot/', 'frontend.tko.views.handle_plot'))
+ (r'^jsonp_rpc/', 'frontend.tko.views.handle_jsonp_rpc'),
+ (r'^csv/', 'frontend.tko.views.handle_csv'),
+ (r'^plot/', 'frontend.tko.views.handle_plot'))
if settings.DEBUG:
urlpatterns += debug_patterns
--- autotest/frontend/urls_common.py 2010-03-25 13:18:12.000000000 -0700
+++ autotest/frontend/urls_common.py 2010-03-25 13:18:12.000000000 -0700
@@ -14,7 +14,7 @@
pattern_list = defaults.patterns(
django_name,
- (r'^(?:|noauth/)rpc/', 'views.handle_rpc'),
+ (r'^rpc/', 'views.handle_rpc'),
(r'^rpc_doc', 'views.rpc_documentation'),
)
_______________________________________________
Autotest mailing list
[email protected]
http://test.kernel.org/cgi-bin/mailman/listinfo/autotest