This repository was archived by the owner on Jan 16, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 24
Expand file tree
/
Copy pathtest_api_token_api.py
More file actions
111 lines (76 loc) Β· 3.18 KB
/
test_api_token_api.py
File metadata and controls
111 lines (76 loc) Β· 3.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
# coding: utf-8
"""
Wavefront REST API Documentation
<p>The REST API enables you to interact with the Wavefront service by using standard REST API tools. You can use the REST API to automate commonly executed operations, for example to tag sources automatically.</p><p>When you make REST API calls outside the REST API documentation UI, to authenticate to the service, you must use an API token associated with a user account or a service account. For information on how to get the API token and examples, see <a href=\"http://docs.wavefront.com/using_wavefront_api.html\">Use the Wavefront REST API.</a></p> # noqa: E501
OpenAPI spec version: v2
Contact: chitimba@wavefront.com
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import wavefront_api_client
from wavefront_api_client.api.api_token_api import ApiTokenApi # noqa: E501
from wavefront_api_client.rest import ApiException
class TestApiTokenApi(unittest.TestCase):
"""ApiTokenApi unit test stubs"""
def setUp(self):
self.api = wavefront_api_client.api.api_token_api.ApiTokenApi() # noqa: E501
def tearDown(self):
pass
def test_create_token(self):
"""Test case for create_token
Create new api token # noqa: E501
"""
pass
def test_delete_customer_token(self):
"""Test case for delete_customer_token
Delete the specified api token for a customer # noqa: E501
"""
pass
def test_delete_token(self):
"""Test case for delete_token
Delete the specified api token # noqa: E501
"""
pass
def test_delete_token_service_account(self):
"""Test case for delete_token_service_account
Delete the specified api token of the given service account # noqa: E501
"""
pass
def test_generate_token_service_account(self):
"""Test case for generate_token_service_account
Create a new api token for the service account # noqa: E501
"""
pass
def test_get_all_tokens(self):
"""Test case for get_all_tokens
Get all api tokens for a user # noqa: E501
"""
pass
def test_get_customer_token(self):
"""Test case for get_customer_token
Get the specified api token for a customer # noqa: E501
"""
pass
def test_get_customer_tokens(self):
"""Test case for get_customer_tokens
Get all api tokens for a customer # noqa: E501
"""
pass
def test_get_tokens_service_account(self):
"""Test case for get_tokens_service_account
Get all api tokens for the given service account # noqa: E501
"""
pass
def test_update_token_name(self):
"""Test case for update_token_name
Update the name of the specified api token # noqa: E501
"""
pass
def test_update_token_name_service_account(self):
"""Test case for update_token_name_service_account
Update the name of the specified api token for the given service account # noqa: E501
"""
pass
if __name__ == '__main__':
unittest.main()