Skip to content

Commit

Permalink
Remove unused behaviours
Browse files Browse the repository at this point in the history
Problem:
Some defined behaviours have been removed from archivist.

Solution:
"Firmware", "Maintenance", "LocationUpdate" and "UserAttributes"
behaviours removed from examples and tests.

Signed-off-by: Paul Hewlett <phewlett76@gmail.com>
  • Loading branch information
eccles committed Jul 6, 2021
1 parent 5472d3d commit b6a79b7
Show file tree
Hide file tree
Showing 7 changed files with 4 additions and 13 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ attrs = {
"some_custom_attribute": "value" # You can add any custom value as long as
# it does not start with arc_
}
behaviours = ["Attachments", "Firmware", "LocationUpdate", "Maintenance", "RecordEvidence"]
behaviours = ["Attachments", "RecordEvidence"]

# The first argument is the behaviours of the asset
# The second argument is the attributes of the asset
Expand Down
2 changes: 1 addition & 1 deletion examples/access_policy_create.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def main():
{
"asset_attributes_read": ["toner_colour", "toner_type"],
"asset_attributes_write": ["toner_colour"],
"behaviours": ["Attachments", "Firmware", "Maintenance", "RecordEvidence"],
"behaviours": ["Attachments", "RecordEvidence"],
"event_arc_display_type_read": ["toner_type", "toner_colour"],
"event_arc_display_type_write": ["toner_replacement"],
"include_attributes": [
Expand Down
3 changes: 0 additions & 3 deletions examples/create_asset.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,6 @@ def create_asset(arch):
}
behaviours = [
"Attachments",
"Firmware",
"LocationUpdate",
"Maintenance",
"RecordEvidence",
]

Expand Down
3 changes: 0 additions & 3 deletions examples/create_event.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,6 @@ def create_asset(arch):
}
behaviours = [
"Attachments",
"Firmware",
"LocationUpdate",
"Maintenance",
"RecordEvidence",
]

Expand Down
2 changes: 1 addition & 1 deletion functests/execaccess_policies.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"subjects/6a951b62-0a26-4c22-a886-1082297b063b",
"subjects/a24306e5-dc06-41ba-a7d6-2b6b3e1df48d",
],
"behaviours": ["Attachments", "Firmware", "Maintenance", "RecordEvidence"],
"behaviours": ["Attachments", "RecordEvidence"],
"include_attributes": [
"arc_display_name",
"arc_display_type",
Expand Down
2 changes: 1 addition & 1 deletion unittests/testaccess_policies.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
"subjects/6a951b62-0a26-4c22-a886-1082297b063b",
"subjects/a24306e5-dc06-41ba-a7d6-2b6b3e1df48d",
],
"behaviours": ["Attachments", "Firmware", "Maintenance", "RecordEvidence"],
"behaviours": ["Attachments", "RecordEvidence"],
"include_attributes": [
"arc_display_name",
"arc_display_type",
Expand Down
3 changes: 0 additions & 3 deletions unittests/testassets.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,7 @@


BEHAVIOURS = [
"Firmware",
"Maintenance",
"RecordEvidence",
"LocationUpdate",
"Attachments",
]
PRIMARY_IMAGE = {
Expand Down

0 comments on commit b6a79b7

Please sign in to comment.