-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
GH-211 Fixed issue for datasets and jobs with special characters in URL
Signed-off-by: Uladzislau <[email protected]>
- Loading branch information
Showing
7 changed files
with
70 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -125,6 +125,19 @@ def test_should_handle_token_auth(self): | |
self.token_props["tokenType"] + "=" + self.token_props["tokenValue"], | ||
) | ||
|
||
def test_adjust_for_url(self): | ||
"""Test string is being adjusted to the correct URL parameter""" | ||
|
||
sdk_api = SdkApi(self.basic_props, self.default_url) | ||
|
||
actual_not_empty = sdk_api._adjust_for_url('[email protected]#.$HERE') | ||
expected_not_empty = 'MY.STRING%40.TEST%23.%24HERE' | ||
self.assertEqual(actual_not_empty, expected_not_empty) | ||
|
||
actual_none = sdk_api._adjust_for_url(None) | ||
expected_none = None | ||
self.assertEqual(actual_none, expected_none) | ||
|
||
|
||
class TestRequestHandlerClass(unittest.TestCase): | ||
"""RequestHandler class unit tests.""" | ||
|