acapi2.tests package

Submodules

acapi2.tests.basetest module

ACAPI2 Tests.

class acapi2.tests.basetest.BaseTest(methodName='runTest')[source]

Bases: unittest.case.TestCase

acquia = None
setUp()[source]

Hook method for setting up the test fixture before exercising it.

acapi2.tests.test_acquia module

class acapi2.tests.test_acquia.TestAcquia(methodName='runTest')[source]

Bases: acapi2.tests.basetest.BaseTest

test_connection_system_health(mocker)[source]
test_failed_connection(mocker)[source]
test_missing_os_credentials(mocker)[source]
test_wrong_credentials_connection(mocker)[source]

acapi2.tests.test_acquiadata module

class acapi2.tests.test_acquiadata.TestAcquiaData(methodName='runTest')[source]

Bases: unittest.case.TestCase

api_key = 'd0697bfc-7f56-4942-9205-b5686bf5b3f5'
api_secret = 'D5UfO/4FfNBWn4+0cUwpLOoFzfP7Qqib4AoY+wYGsKE='
endpoint = 'https://cloud.acquia.com/api/'
test_delete_request(mocker)[source]
test_endpoint_not_found(mocker)[source]
test_post_request(mocker)[source]
test_request_backoff(mocker, request_do_mock)[source]
test_retry_and_get(mocker)[source]
test_unauthorised_request(mocker)[source]

acapi2.tests.test_agreements module

Agreements tests

class acapi2.tests.test_agreements.TestAgreements(methodName='runTest')[source]

Bases: acapi2.tests.basetest.BaseTest

test_accept_agreement(mocker)[source]
test_agreement(mocker)[source]
test_agreement_invitees(mocker)[source]
test_agreement_list(mocker)[source]
test_decline_agreement(mocker)[source]

acapi2.tests.test_applications module

Applications tests

class acapi2.tests.test_applications.TestApplications(methodName='runTest')[source]

Bases: acapi2.tests.basetest.BaseTest

test_application_list(mocker)[source]
test_application_not_found(mocker)[source]
test_application_permission(mocker)[source]
test_applications_filters(mocker)[source]
test_create_environment(mocker)[source]
test_get_environments(mocker)[source]

acapi2.tests.test_environments module

Test Acquia Environments

class acapi2.tests.test_environments.TestEnvironments(methodName='runTest')[source]

Bases: acapi2.tests.basetest.BaseTest

test_activate_ssl_cert(mocker)[source]
test_backup_details(mocker)[source]
test_backup_download(mocker)[source]
test_backups(mocker)[source]
test_clear_varnish_domain(mocker)[source]
test_clear_varnish_domains(mocker)[source]
test_code_switch(mocker)[source]
test_configure(mocker)[source]
test_create_backup(mocker)[source]
test_create_domain(mocker)[source]
test_create_log_forwarding_destinations(mocker)[source]
test_deactivate_ssl_cert(mocker)[source]
test_delete_backup(mocker)[source]
test_delete_cron(mocker)[source]
test_delete_domain(mocker)[source]
test_delete_log_forwarding_destinations(mocker)[source]
test_delete_ssl_cert(mocker)[source]
test_deploy_code(mocker)[source]
test_deploy_database(mocker)[source]
test_deploy_files(mocker)[source]
test_destroy(mocker)[source]
test_disable_cron(mocker)[source]
test_enable_cron(mocker)[source]
test_get_crons(mocker)[source]
test_get_log_forwarding_destinations(mocker)[source]
test_get_php_version(mocker)[source]
test_get_servers(mocker)[source]
test_get_ssl_cert(mocker)[source]
test_get_ssl_certs(mocker)[source]
test_get_ssl_settings(mocker)[source]
test_install_ssl_cert(mocker)[source]
test_set_php_version(mocker)[source]
test_update_log_forwarding_destinations(mocker)[source]

acapi2.tests.test_http_request module

class acapi2.tests.test_http_request.TestHttpRequest(methodName='runTest')[source]

Bases: acapi2.tests.basetest.BaseTest

test_get_session()[source]
test_make_request(mock_session)[source]
test_session()[source]

acapi2.tests.test_notifications module

Test Notifications Endpoint

class acapi2.tests.test_notifications.TestNotifications(methodName='runTest')[source]

Bases: acapi2.tests.basetest.BaseTest

test_notifications(mocker)[source]

acapi2.tests.test_permissions module

Test Permissions Endpoint

class acapi2.tests.test_permissions.TestPermissions(methodName='runTest')[source]

Bases: acapi2.tests.basetest.BaseTest

test_permissions_list(mocker)[source]

acapi2.tests.test_subscriptions module

Subscriptions tests

class acapi2.tests.test_subscriptions.TestSubscriptions(methodName='runTest')[source]

Bases: acapi2.tests.basetest.BaseTest

test_subscription_applications(mocker)[source]
test_subscription_list(mocker)[source]

acapi2.tests.test_tasks module

Tasks tests

class acapi2.tests.test_tasks.TestTasks(methodName='runTest')[source]

Bases: acapi2.tests.basetest.BaseTest

test_failed_task(mocker)[source]
test_get_application_tasks(mocker)[source]
test_task_not_found(mocker)[source]
test_wait_task(mocker)[source]

Module contents

class acapi2.tests.BaseTest(methodName='runTest')[source]

Bases: unittest.case.TestCase

acquia = None
setUp()[source]

Hook method for setting up the test fixture before exercising it.