Skip to content

Commit

Permalink
fix: LIST not Write
Browse files Browse the repository at this point in the history
  • Loading branch information
doctrino committed Nov 12, 2024
1 parent 50b958e commit b42889b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cognite/client/data_classes/capabilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -890,8 +890,8 @@ class SAPWritebackRequestsAcl(Capability):
scope: AllScope | InstancesScope

class Action(Capability.Action): # type: ignore [misc]
Read = "READ"
Write = "WRITE"
List = "LIST"

class Scope:
All = AllScope
Expand Down
4 changes: 2 additions & 2 deletions tests/tests_unit/test_data_classes/test_capabilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,10 +96,10 @@ def all_acls():
{"roboticsAcl": {"actions": ["READ"], "scope": {"datasetScope": {"ids": ["583194012260066"]}}}},
{"sapWritebackAcl": {"actions": ["READ", "WRITE"], "scope": {"all": {}}}},
{"sapWritebackAcl": {"actions": ["READ", "WRITE"], "scope": {"instancesScope": {"instances": ["123", "456"]}}}},
{"sapWritebackRequestsAcl": {"actions": ["READ", "WRITE"], "scope": {"all": {}}}},
{"sapWritebackRequestsAcl": {"actions": ["WRITE", "LIST"], "scope": {"all": {}}}},
{
"sapWritebackRequestsAcl": {
"actions": ["READ", "WRITE"],
"actions": ["WRITE", "LIST"],
"scope": {"instancesScope": {"instances": ["123", "456"]}},
}
},
Expand Down

0 comments on commit b42889b

Please sign in to comment.