Skip to content

Commit ef9b820

Browse files
committed
fix: updated events
1 parent 79ad5a6 commit ef9b820

7 files changed

+15
-15
lines changed

Unicorn.Properties/PropertiesService.Tests/events/EventBridge/contract_status_changed_event_contract_1_approved.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
{
33
"DetailType": "ContractStatusChanged",
44
"Source": "unicorn.contracts",
5-
"EventBusName": "UnicornPropertiesEventBus-Local",
5+
"EventBusName": "UnicornPropertiesBus-local",
66
"Detail": "{ \"ContractUpdatedOn\": \"10/08/2022 19:56:30\", \"ContractId\": \"f2bedc80-3dc8-4544-9140-9b606d71a6ee\", \"PropertyId\": \"usa/anytown/main-street/111\", \"ContractStatus\": \"APPROVED\" }"
77
}
88
]

Unicorn.Properties/PropertiesService.Tests/events/EventBridge/contract_status_changed_event_contract_1_draft.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
{
33
"DetailType": "ContractStatusChanged",
44
"Source": "unicorn.contracts",
5-
"EventBusName": "UnicornPropertiesEventBus-Local",
5+
"EventBusName": "UnicornPropertiesBus-local",
66
"Detail": "{ \"ContractUpdatedOn\": \"10/08/2022 19:56:30\", \"ContractId\": \"f2bedc80-3dc8-4544-9140-9b606d71a6ee\", \"PropertyId\": \"usa/anytown/main-street/111\", \"ContractStatus\": \"DRAFT\" }"
77
}
88
]

Unicorn.Properties/PropertiesService.Tests/events/EventBridge/contract_status_changed_event_contract_2_approved.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
{
33
"DetailType": "ContractStatusChanged",
44
"Source": "unicorn.contracts",
5-
"EventBusName": "UnicornPropertiesEventBus-Local",
5+
"EventBusName": "UnicornPropertiesBus-local",
66
"Detail": "{ \"ContractUpdatedOn\": \"10/08/2022 19:56:30\", \"ContractId\": \"9183453b-d284-4466-a2d9-f00b1d569ad7\", \"PropertyId\": \"usa/anytown/main-street/222\", \"ContractStatus\": \"APPROVED\" }"
77
}
88
]

Unicorn.Properties/PropertiesService.Tests/events/EventBridge/contract_status_changed_event_contract_2_draft.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
{
33
"DetailType": "ContractStatusChanged",
44
"Source": "unicorn.contracts",
5-
"EventBusName": "UnicornPropertiesEventBus-Local",
5+
"EventBusName": "UnicornPropertiesBus-local",
66
"Detail": "{ \"ContractUpdatedOn\": \"10/08/2022 19:56:30\", \"ContractId\": \"9183453b-d284-4466-a2d9-f00b1d569ad7\", \"PropertyId\": \"usa/anytown/main-street/222\", \"ContractStatus\": \"DRAFT\" }"
77
}
88
]

Unicorn.Properties/PropertiesService.Tests/events/EventBridge/publication_approval_requested_event.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
"version": "0",
33
"id": "f849f683-76e1-1c84-669d-544a9828dfef",
44
"detail-type": "PublicationApprovalRequested",
5-
"source": "unicorn.properties.web",
6-
"account": "111111111111",
5+
"source": "unicorn.web",
6+
"account": "123456789012",
77
"time": "2022-08-16T06:33:05Z",
88
"region": "ap-southeast-2",
99
"resources": [],
@@ -27,4 +27,4 @@
2727
"prop1_interior4-bad.jpg"
2828
]
2929
}
30-
}
30+
}

Unicorn.Properties/PropertiesService.Tests/events/EventBridge/publication_evaluation_completed_event.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@
1212
"evaluation_result": "APPROVED|DECLINED",
1313
"result_reason": "UNSAFE_IMAGE_DETECTED|BAD_SENTIMENT_DETECTED|..."
1414
}
15-
}
15+
}
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
[
2-
{
3-
"Source": "unicorn.properties.web",
4-
"Detail": "{ \"property_id\": \"usa/anytown/main-street/123\", \"country\": \"USA\", \"city\": \"Anytown\", \"street\": \"Main Street\", \"number\": 123, \"description\": \"This classic Anytown estate comes with a covetable lake view. The romantic and comfortable backyard is the perfect setting for unicorn get-togethers. The open concept Main Stable is fully equipped with all the desired amenities. Second floor features 6 straw bales including large Rainbow Suite with private training pool terrace and Jr Sparkles Suite.\", \"contract\": \"sale\", \"listprice\": 200, \"currency\": \"SPL\", \"images\": [ \"prop1_exterior1.jpg\", \"prop1_interior1.jpg\", \"prop1_interior2.jpg\", \"prop1_interior3.jpg\", \"prop1_interior4-bad.jpg\" ] }",
5-
"DetailType": "PublicationApprovalRequested",
6-
"EventBusName": "UnicornPropertiesEventBus-Local"
7-
}
8-
]
2+
{
3+
"Source": "unicorn.web",
4+
"Detail": "{ \"property_id\": \"usa/anytown/main-street/123\", \"country\": \"USA\", \"city\": \"Anytown\", \"street\": \"Main Street\", \"number\": 123, \"description\": \"This classic Anytown estate comes with a covetable lake view. The romantic and comfortable backyard is the perfect setting for unicorn get-togethers. The open concept Main Stable is fully equipped with all the desired amenities. Second floor features 6 straw bales including large Rainbow Suite with private training pool terrace and Jr Sparkles Suite.\", \"contract\": \"sale\", \"listprice\": 200, \"currency\": \"SPL\", \"images\": [ \"prop1_exterior1.jpg\", \"prop1_interior1.jpg\", \"prop1_interior2.jpg\", \"prop1_interior3.jpg\", \"prop1_interior4-bad.jpg\" ] }",
5+
"DetailType": "PublicationApprovalRequested",
6+
"EventBusName": "UnicornPropertiesBus-local"
7+
}
8+
]

0 commit comments

Comments
 (0)