compute.keypairs package¶
Submodules¶
compute.keypairs.base module¶
compute.keypairs.test_keypairs module¶
- class KeyPairsV2TestJSON(*args, **kwargs)[source]¶
Bases:
BaseKeypairTest
Test keypairs API with compute microversion less than 2.2
- test_get_keypair_detail()[source]¶
Test idempotent id: a4233d5d-52d8-47cc-9a25-e1864527e3df
Test getting keypair detail by keypair name
- test_keypair_create_delete()[source]¶
Test idempotent id: 6c1d3123-4519-4742-9194-622cb1714b7d
Test create/delete keypair
compute.keypairs.test_keypairs_negative module¶
- class KeyPairsNegativeTestJSON(*args, **kwargs)[source]¶
Bases:
BaseKeypairTest
Negative tests of keypairs API
- test_create_keypair_invalid_name()[source]¶
Test idempotent id: 45fbe5e0-acb5-49aa-837a-ff8d0719db91
Test keypairs with an invalid name should not be created
- test_create_keypair_when_public_key_bits_exceeds_maximum()[source]¶
Test idempotent id: fc100c19-2926-4b9c-8fdc-d0589ee2f9ff
Test keypair should not be created when public key are too long
- test_create_keypair_with_duplicate_name()[source]¶
Test idempotent id: 0359a7f1-f002-4682-8073-0c91e4011b7c
Test keypairs with duplicate names should not be created
- test_create_keypair_with_empty_name_string()[source]¶
Test idempotent id: 1398abe1-4a84-45fb-9294-89f514daff00
Test keypairs with empty name should not be created
- test_create_keypair_with_empty_public_key()[source]¶
Test idempotent id: dade320e-69ca-42a9-ba4a-345300f127e0
Test keypair should not be created with an empty public key
- test_create_keypair_with_long_keynames()[source]¶
Test idempotent id: 3faa916f-779f-4103-aca7-dc3538eee1b7
Test keypairs with name longer than 255 should not be created