Use https when accessing test-results sever
[email protected]
BUG=664583
patch from issue 2660433002 at patchset 1 (http://crrev.com/2660433002#ps1)
diff --git a/typ/fakes/tests/test_result_server_fake_test.py b/typ/fakes/tests/test_result_server_fake_test.py
index 87316c8..e5b5943 100644
--- a/typ/fakes/tests/test_result_server_fake_test.py
+++ b/typ/fakes/tests/test_result_server_fake_test.py
@@ -25,7 +25,7 @@
posts = []
try:
server = test_result_server_fake.start()
- url = 'http://%s:%d/testfile/upload' % server.server_address
+ url = 'https://%s:%d/testfile/upload' % server.server_address
if server:
resp = host.fetch(url, 'foo=bar')
finally:
diff --git a/typ/json_results.py b/typ/json_results.py
index 62233ab..bb693a2 100644
--- a/typ/json_results.py
+++ b/typ/json_results.py
@@ -105,7 +105,7 @@
def make_upload_request(test_results_server, builder, master, testtype,
full_results):
- url = 'http://%s/testfile/upload' % test_results_server
+ url = 'https://%s/testfile/upload' % test_results_server
attrs = [('builder', builder),
('master', master),
('testtype', testtype)]
diff --git a/typ/tests/json_results_test.py b/typ/tests/json_results_test.py
index 363ceab..5dfab61 100644
--- a/typ/tests/json_results_test.py
+++ b/typ/tests/json_results_test.py
@@ -32,7 +32,7 @@
'multipart/form-data; '
'boundary=-J-S-O-N-R-E-S-U-L-T-S---B-O-U-N-D-A-R-Y-')
- self.assertEqual(url, 'http://localhost/testfile/upload')
+ self.assertEqual(url, 'https://localhost/testfile/upload')
self.assertMultiLineEqual(
data,
('---J-S-O-N-R-E-S-U-L-T-S---B-O-U-N-D-A-R-Y-\r\n'