ska.tests package
Submodules
ska.tests.base module
ska.tests.test_commands module
ska.tests.test_core module
- class ska.tests.test_core.ExtraTest(methodName='runTest')[source]
Bases:
TestCaseTest for extra data.
- test_01_sign_url_and_validate_signed_request_data()[source]
Tests for
sign_urlandvalidate_signed_request_data.
- test_02_sign_url_validate_signed_req_data_tamper_extra_keys_rm()[source]
Fail tests for sign_url and validate_signed_request_data.
As well as providing the additional data extra and data tampering extra keys (remove).
- class ska.tests.test_core.ShortcutsTest(methodName='runTest')[source]
Bases:
TestCaseTests for shortcut functions.
The following shortcut functions are tested: sign_url, signature_to_dict and validate_signed_request_data.
- test_01_sign_url_and_validate_signed_request_data()[source]
Tests for
sign_url&validate_signed_request_data.
- test_02_sign_url_and_validate_signed_request_data_fail()[source]
Fail tests for sign_url & validate_signed_request_data.
- class ska.tests.test_core.SignatureTest(methodName='runTest')[source]
Bases:
TestCaseTests of ska.Signature class.
- test_02_signature_test_with_positive_time_lapse()[source]
Signature test with positive time-lapse.
When signature is made on a host that has a positive (greater) time difference with server. In this particular example, the host time is 5 minutes ahead the server time.
- test_03_signature_test_with_negative_time_lapse()[source]
Fail test. Signature test with negative time-lapse.
When signature is made on a host that has a negative (less) time difference with server. In this particular example, the host time is 5 minutes behind the server time, which exceeds the signature lifetime.