cri_api.tests.test_api_users_sshkeys module

class cri_api.tests.test_api_users_sshkeys.TestCRIUser(methodName='runTest')[source]

Bases: rest_framework.test.APITestCase

NEW_SSH_KEY = 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIFa/xZaC8jIc7H7nBtRMMmVKgGdY85iGqzCWpzZZKI/0'
SSH_KEYS = ('ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOrvjSGhfjaWn/ANO1uQENVx+XW78XVSlvR64m7iYf8+ comment', 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPhWx8VR9STySYloHUwpCTH8kayMmzVqgs5EGHb0ar0Y comment')
fixtures = ('tests/groups.yaml',)
classmethod setUpTestData()[source]

Load initial data for the TestCase.

test_sshkeys_anonymous_no_title_no_comment()[source]
test_sshkeys_authenticated_title_and_comment()[source]
test_sshkeys_create_anonymous_key()[source]
test_sshkeys_create_other_key()[source]
test_sshkeys_create_self_key()[source]
test_sshkeys_delete_key_anonymous()[source]
test_sshkeys_delete_other_key()[source]
test_sshkeys_delete_self_key()[source]
test_user_search_by_ssh_key()[source]