AppScale / appscale-agents

AppScale Cloud Agents
Other
0 stars 7 forks source link

Initial working appscale-agents from appscale-tools repo #1

Closed scragraham closed 5 years ago

scragraham commented 5 years ago

This is the initial PR for the working version of appscale.agents.

Running 'make' without any arguments will print the help:

$ make
Testing
test       - Run Python Unit tests 

Installation
install    - Install via pip, ensuring a virtualenv
install-no-venv - Install via pip without ensuring a virtualenv

Build (for PyPi)
build      - Build distro for pypi upload
clean      - Clean build directories
upload     - Upload distribution to pypi

Utilities
bump-major - Bump major version number for appscale-agents
bump-minor - Bump minor version number for appscale-agents
bump-patch - Bump patch version number for appscale-agents
scragraham commented 5 years ago

Unit tests:

make test                                                     ✔
Collecting flexmock
Installing collected packages: flexmock
Successfully installed flexmock-0.10.2
test_config_path (test_config_appscale_state.TestAppScaleState) ... ok
test_generate_rsa_key (test_config_appscale_state.TestAppScaleState) ... ok
test_get_app_id (test_config_appscale_state.TestAppScaleState) ... ok
test_get_app_secret_key (test_config_appscale_state.TestAppScaleState) ... ok
test_get_client_secrets_location (test_config_appscale_state.TestAppScaleState) ... ok
test_get_group (test_config_appscale_state.TestAppScaleState) ... ok
test_get_infrastructure_option (test_config_appscale_state.TestAppScaleState) ... ok
test_get_oauth2_storage_location (test_config_appscale_state.TestAppScaleState) ... ok
test_get_project (test_config_appscale_state.TestAppScaleState) ... ok
test_get_resource_group (test_config_appscale_state.TestAppScaleState) ... ok
test_get_storage_account (test_config_appscale_state.TestAppScaleState) ... ok
test_get_subscription_id (test_config_appscale_state.TestAppScaleState) ... ok
test_get_tenant_id (test_config_appscale_state.TestAppScaleState) ... ok
test_get_zone (test_config_appscale_state.TestAppScaleState) ... ok
test_locations_json_location (test_config_appscale_state.TestAppScaleState) ... ok
test_locations_yaml_location (test_config_appscale_state.TestAppScaleState) ... ok
test_private_key (test_config_appscale_state.TestAppScaleState) ... ok
test_public_key (test_config_appscale_state.TestAppScaleState) ... ok
test_shell_exceptions (test_config_appscale_state.TestAppScaleState) ... ok
test_ssh_key (test_config_appscale_state.TestAppScaleState) ... ok
test_upgrade_json_file (test_config_appscale_state.TestAppScaleState) ... ok
test_write_key_file (test_config_appscale_state.TestAppScaleState) ... ok

test_create_agent_azure (test_agent_factory.TestAgentFactory) ... ok
test_create_agent_ec2 (test_agent_factory.TestAgentFactory) ... ok
test_create_agent_euca (test_agent_factory.TestAgentFactory) ... ok
test_create_agent_gce (test_agent_factory.TestAgentFactory) ... ok
test_create_agent_openstack (test_agent_factory.TestAgentFactory) ... ok
test_create_invalid_infrastructure (test_agent_factory.TestAgentFactory) ... ok

test_euca_run_instances (test_agent_euca.TestEucaAgent) ... ok
test_ec2_run_instances (test_agent_ec2.TestEC2Agent) ... ok
test_ec2_run_instances_agentruntimeexception (test_agent_ec2.TestEC2Agent) ... ok
test_diff_helper (test_base_agent.TestBaseAgent) ... ok
test_gce_run_instances (test_agent_gce.TestGCEAgent) ... ok

----------------------------------------------------------------------
Ran 33 tests in 80.398s

OK