Skip to content

Commit 8bde59d

Browse files
committed
refactor: update event source and rule names to use 'unicorn.approvals'
1 parent c360375 commit 8bde59d

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

unicorn_approvals/integration/subscriptions.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Resources:
1919
DeletionPolicy: Delete
2020
UpdateReplacePolicy: Delete
2121
Properties:
22-
Name: unicorn.properties-ContractStatusChanged
22+
Name: unicorn.approvals-ContractStatusChanged
2323
Description: Contract Status Changed subscription
2424
EventBusName:
2525
Fn::Sub: "{{resolve:ssm:/uni-prop/${Stage}/UnicornContractsEventBusArn}}"
@@ -42,7 +42,7 @@ Resources:
4242
DeletionPolicy: Delete
4343
UpdateReplacePolicy: Delete
4444
Properties:
45-
Name: unicorn.properties-PublicationApprovalRequested
45+
Name: unicorn.approvals-PublicationApprovalRequested
4646
Description: Publication evaluation completed subscription
4747
EventBusName:
4848
Fn::Sub: "{{resolve:ssm:/uni-prop/${Stage}/UnicornWebEventBusArn}}"

unicorn_approvals/template.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ Resources:
105105
StatusChangedEvent:
106106
Type: EventBridgeRule
107107
Properties:
108-
RuleName: unicorn.properties-ContractStatusChanged
108+
RuleName: unicorn.approvals-ContractStatusChanged
109109
EventBusName: !GetAtt UnicornApprovalsEventBus.Name
110110
Pattern:
111111
source:

unicorn_approvals/tests/events/eventbridge/publication_evaluation_completed_event.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"version": "0",
33
"id": "f849f683-76e1-1c84-669d-544a9828dfef",
44
"detail-type": "PublicationEvaluationCompleted",
5-
"source": "unicorn.properties",
5+
"source": "unicorn.approvals",
66
"account": "123456789012",
77
"time": "2022-08-16T06:33:05Z",
88
"region": "ap-southeast-2",

unicorn_approvals/tests/unit/helper.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@ def return_env_vars_dict(k={}):
1818
"AWS_DEFAULT_REGION": "ap-southeast-2",
1919
"CONTRACT_STATUS_TABLE": TABLE_NAME,
2020
"EVENT_BUS": EVENTBUS_NAME,
21-
"SERVICE_NAMESPACE": "unicorn.properties",
22-
"POWERTOOLS_SERVICE_NAME": "unicorn.properties",
21+
"SERVICE_NAMESPACE": "unicorn.approvals",
22+
"POWERTOOLS_SERVICE_NAME": "unicorn.approvals",
2323
"POWERTOOLS_TRACE_DISABLED": "true",
2424
"POWERTOOLS_LOGGER_LOG_EVENT": "true",
2525
"POWERTOOLS_LOGGER_SAMPLE_RATE": "0.1",
26-
"POWERTOOLS_METRICS_NAMESPACE": "unicorn.properties",
26+
"POWERTOOLS_METRICS_NAMESPACE": "unicorn.approvals",
2727
"LOG_LEVEL": "INFO",
2828
}
2929
d.update(k)

unicorn_web/tests/unit/events/property_approved.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"version": "0",
33
"id": "a1b2c3d4-5678-90ab-cdef-EXAMPLEaaaaa",
44
"detail-type": "PublicationEvaluationCompleted",
5-
"source": "unicorn.properties",
5+
"source": "unicorn.approvals",
66
"account": "111122223333",
77
"time": "2022-12-01T01:01:01Z",
88
"region": "ap-southeast-1",

0 commit comments

Comments
 (0)