Skip to content

Commit b92cf8f

Browse files
committed
Enables bucket service
- Adds full support for bucket service - Adds functional tests forbuckets - Validated with ECS v3 - Fixes #10
1 parent 3f31b0e commit b92cf8f

File tree

8 files changed

+655
-139
lines changed

8 files changed

+655
-139
lines changed

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ The following table shows the supported endpoints per API version.
185185
+--------------------------+---------+---------+
186186
| Base URL | ✓* | ✓* |
187187
+--------------------------+---------+---------+
188-
| Bucket | ✓* |* |
188+
| Bucket | ✓* | |
189189
+--------------------------+---------+---------+
190190
| Data Store | ✓* ||
191191
+--------------------------+---------+---------+

ecsclient/common/configuration/licensing.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212

1313

1414
class Licensing(object):
15-
1615
def __init__(self, connection):
1716
"""
1817
Initialize a new instance
@@ -71,7 +70,7 @@ def get_license(self):
7170
log.info("Retrieving license")
7271
return self.conn.get('license')
7372

74-
def add_license(self, license):
73+
def add_license(self, license_text):
7574
"""
7675
Adds specified license.
7776
@@ -83,7 +82,10 @@ def add_license(self, license):
8382
8483
Expect: HTTP/1.1 200 OK
8584
86-
:param license: License text to be added
85+
:param license_text: License text to be added
8786
"""
88-
log.info("Adding new license: {0}".format(license))
89-
return self.conn.post(url='license', json_payload=license)
87+
payload = {
88+
"license_text": license_text
89+
}
90+
log.info("Adding a new license")
91+
return self.conn.post('license.json', json_payload=payload)

0 commit comments

Comments
 (0)