Skip to content

Commit b6a79b7

Browse files
committed
Remove unused behaviours
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>
1 parent 5472d3d commit b6a79b7

7 files changed

Lines changed: 4 additions & 13 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ attrs = {
4646
"some_custom_attribute": "value" # You can add any custom value as long as
4747
# it does not start with arc_
4848
}
49-
behaviours = ["Attachments", "Firmware", "LocationUpdate", "Maintenance", "RecordEvidence"]
49+
behaviours = ["Attachments", "RecordEvidence"]
5050

5151
# The first argument is the behaviours of the asset
5252
# The second argument is the attributes of the asset

examples/access_policy_create.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def main():
5454
{
5555
"asset_attributes_read": ["toner_colour", "toner_type"],
5656
"asset_attributes_write": ["toner_colour"],
57-
"behaviours": ["Attachments", "Firmware", "Maintenance", "RecordEvidence"],
57+
"behaviours": ["Attachments", "RecordEvidence"],
5858
"event_arc_display_type_read": ["toner_type", "toner_colour"],
5959
"event_arc_display_type_write": ["toner_replacement"],
6060
"include_attributes": [

examples/create_asset.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,6 @@ def create_asset(arch):
3737
}
3838
behaviours = [
3939
"Attachments",
40-
"Firmware",
41-
"LocationUpdate",
42-
"Maintenance",
4340
"RecordEvidence",
4441
]
4542

examples/create_event.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,6 @@ def create_asset(arch):
8282
}
8383
behaviours = [
8484
"Attachments",
85-
"Firmware",
86-
"LocationUpdate",
87-
"Maintenance",
8885
"RecordEvidence",
8986
]
9087

functests/execaccess_policies.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
"subjects/6a951b62-0a26-4c22-a886-1082297b063b",
4545
"subjects/a24306e5-dc06-41ba-a7d6-2b6b3e1df48d",
4646
],
47-
"behaviours": ["Attachments", "Firmware", "Maintenance", "RecordEvidence"],
47+
"behaviours": ["Attachments", "RecordEvidence"],
4848
"include_attributes": [
4949
"arc_display_name",
5050
"arc_display_type",

unittests/testaccess_policies.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
"subjects/6a951b62-0a26-4c22-a886-1082297b063b",
5555
"subjects/a24306e5-dc06-41ba-a7d6-2b6b3e1df48d",
5656
],
57-
"behaviours": ["Attachments", "Firmware", "Maintenance", "RecordEvidence"],
57+
"behaviours": ["Attachments", "RecordEvidence"],
5858
"include_attributes": [
5959
"arc_display_name",
6060
"arc_display_type",

unittests/testassets.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,7 @@
2525

2626

2727
BEHAVIOURS = [
28-
"Firmware",
29-
"Maintenance",
3028
"RecordEvidence",
31-
"LocationUpdate",
3229
"Attachments",
3330
]
3431
PRIMARY_IMAGE = {

0 commit comments

Comments
 (0)