Revision 6d34b917

b/test/apitest2.py
1
#!/usr/bin/python
2
from commissioning.clients.http import main, HTTP_API_Client
3
from commissioning import QuotaholderAPI
4
import unittest
5

  
6
QH_URL = "http://localhost:8008/api/quotaholder/v"
7

  
8
class QuotaholderHTTP(HTTP_API_Client):
9
    api_spec = QuotaholderAPI()
10

  
11
class QuotaHolderAPITest(unittest.TestCase):
12
    def setUp(self):
13
        self.qh = QuotaholderHTTP(QH_URL)
14

  
15
    def tearDown(self):
16
        del self.qh
17

  
18
    def test_001_create_entity(self):
19
        pass
20

  
21
    def test_002_set_entity_key(self):
22
        pass
23

  
24
    def test_003_list_entities(self):
25
        pass
26

  
27
    def test_004_get_entity(self):
28
        pass
29

  
30
    def test_005_get_limits(self):
31
        pass
32

  
33
    def test_006_set_limits(self):
34
        pass
35

  
36
    def test_007_get_holding(self):
37
        pass
38

  
39
    def test_008_set_holding(self):
40
        pass
41

  
42
    def test_009_list_resources(self):
43
        pass
44

  
45
    def test_010_get_quota(self):
46
        pass
47

  
48
    def test_011_set_quota(self):
49
        pass
50

  
51
    def test_012_issue_commission(self):
52
        pass
53

  
54
    def test_013_accept_commission(self):
55
        pass
56

  
57
    def test_014_reject_commission(self):
58
        pass
59

  
60
    def test_015_get_pending_commissions(self):
61
        pass
62

  
63
    def test_016_resolve_pending_commissions(self):
64
        pass
65

  
66
    def test_017_release_entity(self):
67
        pass
68

  
69
    def test_018_get_timeline(self):
70
        pass
71

  
72

  
73

  
74
if __name__ == "__main__":
75
    unittest.main()

Also available in: Unified diff