Module
RHC::Rest::Mock::Helpers
In:
lib/rhc/rest/mock.rb
Methods
credentials_for
define_exceptional_test_on_wizard
empty_domains
empty_keys
empty_response_list
expect_authorization
mock_alias_links
mock_alias_response
mock_api_with_authorizations
mock_app_links
mock_cart_links
mock_cartridge_response
mock_client_links
mock_date_1
mock_domain_links
mock_gear_groups_response
mock_href
mock_key_links
mock_pass
mock_real_client_links
mock_response_links
mock_uri
mock_user
mock_user_auth
mock_user_links
new_authorization
new_domain
simple_carts
simple_user
stub_add_authorization
stub_add_key
stub_add_key_error
stub_api
stub_api_request
stub_api_v12
stub_authorizations
stub_create_domain
stub_delete_authorization
stub_delete_authorizations
stub_mock_ssh_keys
stub_no_domains
stub_no_keys
stub_one_application
stub_one_domain
stub_one_key
stub_relative_application
stub_simple_carts
stub_update_key
stub_user
Public Instance methods
credentials_for
(with_auth)
define_exceptional_test_on_wizard
()
empty_domains
()
empty_keys
()
empty_response_list
(type)
expect_authorization
(with_auth)
mock_alias_links
(domain_id='test_domain',app_id='test_app',alias_id='test.foo.com')
mock_alias_response
(count=1)
mock_api_with_authorizations
()
mock_app_links
(domain_id='test_domain',app_id='test_app')
mock_cart_links
(domain_id='test_domain',app_id='test_app',cart_id='test_cart')
mock_cartridge_response
(cart_count=1, url=false)
mock_client_links
()
mock_date_1
()
mock_domain_links
(domain_id='test_domain')
mock_gear_groups_response
()
mock_href
(relative="", with_auth=false)
Creates consistent hrefs for testing
mock_key_links
(key_id='test_key')
mock_pass
()
mock_real_client_links
()
mock_response_links
(links)
mock_uri
()
mock_user
()
mock_user_auth
()
mock_user_links
()
new_authorization
(params)
new_domain
(name)
simple_carts
()
simple_user
(login)
stub_add_authorization
(params)
stub_add_key
(name='default')
stub_add_key_error
(name, message, code=422)
stub_api
(auth=false, authorizations=false)
stub_api_request
(method, uri, with_auth=true)
stub_api_v12
(auth=false)
stub_authorizations
()
stub_create_domain
(name)
stub_delete_authorization
(token)
stub_delete_authorizations
()
stub_mock_ssh_keys
(name='test')
stub_no_domains
()
stub_no_keys
()
stub_one_application
(domain_name, name, *args)
stub_one_domain
(name, optional_params=nil)
stub_one_key
(name)
stub_relative_application
(domain_name, app_name, body = {}, status = 200)
stub_simple_carts
()
stub_update_key
(name)
stub_user
(auth=mock_user_auth)
[Validate]