Skip to content

Commit 8670680

Browse files
Merge branch 'master' into users/santosh/tm-steps-client
2 parents 3ac9ecc + 652f7c1 commit 8670680

File tree

5 files changed

+19
-6
lines changed

5 files changed

+19
-6
lines changed

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,16 @@
22

33
<!--next-version-placeholder-->
44

5+
## v2.1.0 (2025-03-06)
6+
7+
### Feature
8+
9+
* Add client for SystemLink results API ([#82](https://github.com/ni/nisystemlink-clients-python/issues/82)) ([`53f1188`](https://github.com/ni/nisystemlink-clients-python/commit/53f1188b4c4806819dbd20011c4b69d6f51487f9))
10+
11+
### Fix
12+
13+
* Enable null value for results properties ([#99](https://github.com/ni/nisystemlink-clients-python/issues/99)) ([`cba5106`](https://github.com/ni/nisystemlink-clients-python/commit/cba510629a142bffc8d9c5872d2f7a27bca2e8c3))
14+
515
## v2.0.0 (2025-03-05)
616

717
### Feature

nisystemlink/clients/testmonitor/models/_create_result_request.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class CreateResultRequest(JsonModel):
3535
keywords: Optional[List[str]]
3636
"""A list of keywords that categorize this result."""
3737

38-
properties: Optional[Dict[str, str]]
38+
properties: Optional[Dict[str, Optional[str]]]
3939
"""A list of custom properties for this result."""
4040

4141
operator: Optional[str]

nisystemlink/clients/testmonitor/models/_update_result_request.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class UpdateResultRequest(JsonModel):
3838
keywords: Optional[List[str]]
3939
"""A list of keywords that categorize this result."""
4040

41-
properties: Optional[Dict[str, str]]
41+
properties: Optional[Dict[str, Optional[str]]]
4242
"""A list of custom properties for this result."""
4343

4444
operator: Optional[str]

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "nisystemlink-clients"
3-
version = "2.0.0"
3+
version = "2.1.0"
44
description = "NI-SystemLink Python API"
55
authors = ["National Instruments"]
66
maintainers = [

tests/integration/testmonitor/test_testmonitor.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,10 @@ def test__create_single_result_and_get_results__at_least_one_result_exists(
161161
status = Status.PASSED()
162162
results = [
163163
CreateResultRequest(
164-
part_number=unique_identifier, program_name=program_name, status=status
164+
part_number=unique_identifier,
165+
program_name=program_name,
166+
status=status,
167+
properties={"test": None},
165168
)
166169
]
167170
create_results(results)
@@ -357,7 +360,7 @@ def test__update_properties_with_replace__properties_replaced(
357360
original_properties = {"originalKey": "originalValue"}
358361
program_name = "Test Program"
359362
status = Status.PASSED()
360-
new_properties = {new_key: "newValue"}
363+
new_properties: Dict[str, Optional[str]] = {new_key: "newValue"}
361364
create_response: CreateResultsPartialSuccess = create_results(
362365
[
363366
CreateResultRequest(
@@ -394,7 +397,7 @@ def test__update_properties_append__properties_appended(
394397
original_properties = {original_key: "originalValue"}
395398
program_name = "Test Program"
396399
status = Status.PASSED()
397-
new_properties = {new_key: "newValue"}
400+
new_properties: Dict[str, Optional[str]] = {new_key: "newValue"}
398401
create_response: CreateResultsPartialSuccess = create_results(
399402
[
400403
CreateResultRequest(

0 commit comments

Comments
 (0)