Revision 66855d86 snf-cyclades-app/synnefo/plankton/tests.py
b/snf-cyclades-app/synnefo/plankton/tests.py | ||
---|---|---|
45 | 45 |
class PlanktonAPITest(BaseAPITest): |
46 | 46 |
def setUp(self, *args, **kwargs): |
47 | 47 |
super(PlanktonAPITest, self).setUp(*args, **kwargs) |
48 |
self.compute_path = get_service_path(cyclades_services, 'image',
|
|
48 |
self.api_path = get_service_path(cyclades_services, 'image',
|
|
49 | 49 |
version='v1.0') |
50 | 50 |
def myget(self, path, *args, **kwargs): |
51 |
path = join_urls(self.compute_path, path)
|
|
51 |
path = join_urls(self.api_path, path)
|
|
52 | 52 |
return self.get(path, *args, **kwargs) |
53 | 53 |
|
54 | 54 |
def myput(self, path, *args, **kwargs): |
55 |
path = join_urls(self.compute_path, path)
|
|
55 |
path = join_urls(self.api_path, path)
|
|
56 | 56 |
return self.put(path, *args, **kwargs) |
57 | 57 |
|
58 | 58 |
def mypost(self, path, *args, **kwargs): |
59 |
path = join_urls(self.compute_path, path)
|
|
59 |
path = join_urls(self.api_path, path)
|
|
60 | 60 |
return self.post(path, *args, **kwargs) |
61 | 61 |
|
62 | 62 |
def mydelete(self, path, *args, **kwargs): |
63 |
path = join_urls(self.compute_path, path)
|
|
63 |
path = join_urls(self.api_path, path)
|
|
64 | 64 |
return self.delete(path, *args, **kwargs) |
65 | 65 |
|
66 | 66 |
|
Also available in: Unified diff