Skip to content

Commit 0ce918e

Browse files
author
Ofego Edafe
committed
MAPI-81 test auth get req
1 parent 3013049 commit 0ce918e

File tree

2 files changed

+2
-13
lines changed

2 files changed

+2
-13
lines changed

tests/authorization_test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def setUpClass(cls):
5555
cls.date_header = format_date_time(stamp)
5656

5757
cls.content_signature = "x-Content-MD5: {}\n".format(cls.content_hash)
58-
cls.expected_signature = TestConfiguration.create_signature(cls.date_header, cls.content_signature,
58+
cls.expected_signature = TestUtility.create_signature(cls.date_header, cls.content_signature,
5959
cls._query_url, 'POST', True)
6060

6161
def test_post_request_authorization_values_are_appropriate(self):
@@ -66,7 +66,7 @@ def test_post_request_authorization_values_are_appropriate(self):
6666
md5 = self.__class__.content_hash
6767
query_url = self.__class__._query_url
6868
content_signature = "x-Content-MD5: {}\n".format(md5)
69-
expected_username = 'hmac username="FxJMSlsivOoHAjDbWcO7"'
69+
expected_username = 'hmac username=""'
7070
expected_algorithm = ' algorithm="hmac-sha1"'
7171
expected_header = ' headers="date x-Content-MD5 request-line"'
7272
expected_signature = TestUtility.create_signature(date_header, content_signature, query_url, 'POST', True)

tests/test_util.py

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -43,14 +43,3 @@ def create_body():
4343

4444
return body
4545

46-
@staticmethod
47-
def create_url(message_id):
48-
_url_path = '/v1/messages/{messageId}'
49-
_url_path = APIHelper.append_url_with_template_parameters(_url_path, {
50-
'messageId': message_id
51-
})
52-
_query_builder = Configuration.base_uri
53-
_query_builder += _url_path
54-
_query_url = APIHelper.clean_url(_query_builder)
55-
56-
return _query_url

0 commit comments

Comments
 (0)