Esempio n. 1
0
 def test_list_ft_account_users(self, api_conf):
     resp = http_get(['accounts', FT_ACCOUNT, 'users'], config=api_conf)
     assert resp == APIResponse(200)
Esempio n. 2
0
 def test_get_image_summaries(self, add_alpine_latest_image, query):
     add_resp, api_conf = add_alpine_latest_image
     resp = http_get(['summaries', 'imagetags'],
                     query=query,
                     config=api_conf)
     assert resp == APIResponse(200)
Esempio n. 3
0
 def test_list_subscriptions(self, add_alpine_subscription):
     # Chose not to parametrize here because of the type parameter in the test below
     subscription, api_conf = add_alpine_subscription
     resp = http_get(['subscriptions'], config=api_conf)
     assert resp == APIResponse(200)
Esempio n. 4
0
 def test_get_ft_account_user_by_username(self, api_conf):
     ft_user = get_ft_user()
     get_resp = http_get(
         ['accounts', FT_ACCOUNT, 'users', ft_user['username']],
         config=api_conf)
     assert get_resp == APIResponse(200)
Esempio n. 5
0
 def test_list_subscriptions_with_type(self, add_alpine_subscription, s_type):
     subscription, api_conf = add_alpine_subscription
     resp = http_get(['subscriptions'],
                     query={'subscription_type': s_type},
                     config=api_conf)
     assert resp == APIResponse(200)
Esempio n. 6
0
    def test_get_subscription_by_id(self, add_alpine_subscription):
        subscription, api_conf = add_alpine_subscription

        # arbitrarily pick 1st subscription
        resp = http_get(['subscriptions', subscription.get('subscription_id')], config=api_conf)
        assert resp == APIResponse(200)
 def test_root(self):
     resp = http_get([])
     assert resp == APIResponse(200)
Esempio n. 8
0
 def test_list_subscriptions_with_key(self, add_alpine_subscription):
     subscription, api_conf = add_alpine_subscription
     resp = http_get(['subscriptions'],
                     query={'subscription_key': subscription.get('subscription_key')},
                     config=api_conf)
     assert resp == APIResponse(200)
 def test_version(self):
     resp = http_get(['version'])
     assert resp == APIResponse(200)
 def test_health(self):
     resp = http_get(['health'])
     assert resp == APIResponse(200)
Esempio n. 11
0
 def test_list_events(self, api_conf):
     resp = http_get(['events'], {'page': 1, 'limit': 1}, config=api_conf)
     assert resp == APIResponse(200)
Esempio n. 12
0
 def test_list_event_types(self, api_conf):
     resp = http_get(['event_types'], config=api_conf)
     assert resp == APIResponse(200)
Esempio n. 13
0
 def test_list_registries(self, add_and_teardown_registry):
     add_resp, api_conf = add_and_teardown_registry
     resp = http_get(['registries'], config=api_conf)
     assert resp == APIResponse(200)