Skip to content

Commit e3a9b5d

Browse files
committed
Prepare Version 2.0
1 parent 52d1165 commit e3a9b5d

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,17 @@
11
# Changelog
22

33

4+
## Version 2.0
5+
46
* Added Changes support to the Audit API.
7+
* Fixed Issue #53 "KeyError when retrieving 'bulkOperation'"; bulk operations JSON is somewhat _non-standard_ as
8+
the root element is not named like the corresponding REST resource.
9+
* Added proper support for the CurrentUser API; this is a breaking change as some functions moved from the User API
10+
to the CurrentUser API (the correct place).
11+
* Added support for 2FA at user level; TFA/TOTP can be enabled for individual users. Parts of this functionality,
12+
e.g. getting the TOTP secret are only available at the CurrentUser level
13+
* Adding traditional date filter parameter names (date_from and date_to in addition to before/after) to Events
14+
and Alarms API.
515

616

717
## Version 1.10

integration_tests/test_inventory.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@ def test_get_availability(live_c8y: CumulocityApi, sample_device: Device):
133133
print("Availability not yet available (pun intended). Retrying ...")
134134
assert availability
135135

136+
136137
@pytest.fixture
137138
def object_with_measurements(live_c8y: CumulocityApi, mutable_object: ManagedObject) -> ManagedObject:
138139
"""Provide a managed object with predefined measurements."""
@@ -143,21 +144,25 @@ def object_with_measurements(live_c8y: CumulocityApi, mutable_object: ManagedObj
143144
live_c8y.measurements.create(*ms)
144145
return mutable_object
145146

147+
146148
def test_get_supported_measurements(live_c8y: CumulocityApi, object_with_measurements: ManagedObject):
147149
"""Verify that the supported measurements can be retrieved."""
148150
result = live_c8y.inventory.get_supported_measurements(object_with_measurements.id)
149151
assert set(result) == {'c8y_Counter', 'c8y_Integers'}
150152

153+
151154
def test_get_supported_measurements_2(live_c8y: CumulocityApi, object_with_measurements: ManagedObject):
152155
"""Verify that the supported measurements can be retrieved."""
153156
result = object_with_measurements.get_supported_measurements()
154157
assert set(result) == {'c8y_Counter', 'c8y_Integers'}
155158

159+
156160
def test_get_supported_series(live_c8y: CumulocityApi, object_with_measurements: ManagedObject):
157161
"""Verify that the supported measurement series can be retrieved."""
158162
result = live_c8y.inventory.get_supported_series(object_with_measurements.id)
159163
assert set(result) == {'c8y_Counter.N', 'c8y_Integers.V1', 'c8y_Integers.V2'}
160164

165+
161166
def test_get_supported_series_2(live_c8y: CumulocityApi, object_with_measurements: ManagedObject):
162167
"""Verify that the supported measurement series can be retrieved."""
163168
result = object_with_measurements.get_supported_series()

0 commit comments

Comments
 (0)