⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 250997 in webkit


Ignore:
Timestamp:
Oct 10, 2019, 6:30:25 PM (7 years ago)
Author:
Jonathan Bedard
Message:

results.webkit.org: Sort out certificates on Catalina
​https://bugs.webkit.org/show_bug.cgi?id=202837

Unreviewed infrastructure repair.

This is a temporary strategy until we sort out our certificates on the newly
deployed Catalina bots.

  • Scripts/webkitpy/results/upload.py:

(Upload.upload):
(Upload.upload_archive):

  • Scripts/webkitpy/results/upload_unittest.py:

(UploadTest.test_upload):
(UploadTest.test_archive_upload):

Location:
trunk/Tools
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r250992 r250997  
     12019-10-10  Jonathan Bedard  <jbedard@apple.com>
     2
     3        results.webkit.org: Sort out certificates on Catalina
     4        https://bugs.webkit.org/show_bug.cgi?id=202837
     5
     6        Unreviewed infrastructure repair.
     7
     8        This is a temporary strategy until we sort out our certificates on the newly
     9        deployed Catalina bots.
     10
     11        * Scripts/webkitpy/results/upload.py:
     12        (Upload.upload):
     13        (Upload.upload_archive):
     14        * Scripts/webkitpy/results/upload_unittest.py:
     15        (UploadTest.test_upload):
     16        (UploadTest.test_archive_upload):
     17
    1182019-10-10  Carlos Alberto Lopez Perez  <clopez@igalia.com>
    219
  • trunk/Tools/Scripts/webkitpy/results/upload.py

    r250966 r250997  
    179179                headers={'Content-type': 'application/json'},
    180180                data=json.dumps(data),
     181                verify=False,
    181182            )
    182183        except requests.exceptions.ConnectionError:
    … …  
    216217                data=meta_data,
    217218                files=dict(file=archive),
     219                verify=False,
    218220            )
    219221
  • trunk/Tools/Scripts/webkitpy/results/upload_unittest.py

    r250966 r250997  
    127127        )
    128128
    129         with mock.patch('requests.post', new=lambda url, headers={}, data={}: self.MockResponse()):
     129        with mock.patch('requests.post', new=lambda url, headers={}, data={}, verify=True: self.MockResponse()):
    130130            self.assertTrue(upload.upload('https://results.webkit.org', log_line_func=lambda _: None))
    131131
    132         with mock.patch('requests.post', new=lambda url, headers={}, data={}: self.raise_requests_ConnectionError()):
     132        with mock.patch('requests.post', new=lambda url, headers={}, data={}, verify=True: self.raise_requests_ConnectionError()):
    133133            lines = []
    134134            self.assertFalse(upload.upload('https://results.webkit.org', log_line_func=lambda line: lines.append(line)))
    135135            self.assertEqual([' ' * 4 + 'Failed to upload to https://results.webkit.org, results server not online'], lines)
    136136
    137         mock_404 = mock.patch('requests.post', new=lambda url, headers={}, data={}: self.MockResponse(
     137        mock_404 = mock.patch('requests.post', new=lambda url, headers={}, data={}, verify=True: self.MockResponse(
    138138            status_code=404,
    139139            text=json.dumps(dict(description='No such address')),
    … …  
    228228        )
    229229
    230         with mock.patch('requests.post', new=lambda url, headers={}, data={}, files={}: self.MockResponse()):
     230        with mock.patch('requests.post', new=lambda url, headers={}, data={}, files={}, verify=True: self.MockResponse()):
    231231            self.assertTrue(upload.upload_archive('https://results.webkit.org', archive='content', log_line_func=lambda _: None))
    232232
    233         with mock.patch('requests.post', new=lambda url, headers={}, data={}, files={}: self.raise_requests_ConnectionError()):
     233        with mock.patch('requests.post', new=lambda url, headers={}, data={}, files={}, verify=True: self.raise_requests_ConnectionError()):
    234234            lines = []
    235235            self.assertFalse(upload.upload_archive('https://results.webkit.org', archive='content', log_line_func=lambda line: lines.append(line)))
    236236            self.assertEqual([' ' * 4 + 'Failed to upload test archive to https://results.webkit.org, results server not online'], lines)
    237237
    238         mock_404 = mock.patch('requests.post', new=lambda url, headers={}, data={}, files={}: self.MockResponse(
     238        mock_404 = mock.patch('requests.post', new=lambda url, headers={}, data={}, files={}, verify=True: self.MockResponse(
    239239            status_code=404,
    240240            text=json.dumps(dict(description='No such address')),
Note: See TracChangeset for help on using the changeset viewer.