Skip to content

Commit 4b08163

Browse files
authored
Merge pull request #2 from Kevinwochan/fix/updated-events
Fix/updated events
2 parents 906abac + 321d59d commit 4b08163

15 files changed

+67
-27
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
]
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
[
2+
{
3+
"DetailType": "PublicationApprovalRequested",
4+
"Source": "unicorn.web",
5+
"EventBusName": "UnicornPropertiesBus-local",
6+
"Detail": "{\"PropertyId\":\"usa/anytown/main-street/222\",\"Address\":{\"Country\":\"USA\",\"City\":\"Anytown\",\"Street\":\"Main Street\",\"Number\":222},\"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\"]}"
7+
}
8+
]
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
[
2+
{
3+
"DetailType": "PublicationApprovalRequested",
4+
"Source": "unicorn.web",
5+
"EventBusName": "UnicornPropertiesBus-local",
6+
"Detail": "{\"PropertyId\":\"usa/anytown/main-street/111\",\"Address\":{\"Country\":\"USA\",\"City\":\"Anytown\",\"Street\":\"Main Street\",\"Number\":111},\"Description\":\"This is a property for goblins. The property has the worst quality and is atrocious when it comes to design. The property is not clean whatsoever, and will make any property owner have buyers' remorse as soon the property is bought. Keep away from this property as much as possible!\",\"Contract\":\"sale\",\"ListPrice\":200,\"Currency\":\"SPL\",\"images\":[\"prop1_exterior1.jpg\",\"prop1_interior1.jpg\",\"prop1_interior2.jpg\",\"prop1_interior3.jpg\"]}"
7+
}
8+
]
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
[
2+
{
3+
"DetailType": "PublicationApprovalRequested",
4+
"Source": "unicorn.web",
5+
"EventBusName": "UnicornPropertiesBus-local",
6+
"Detail": "{\"PropertyId\":\"usa/anytown/main-street/111\",\"Address\":{\"Country\":\"USA\",\"City\":\"Anytown\",\"Street\":\"Main Street\",\"Number\":111},\"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\"]}"
7+
}
8+
]
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
[
2+
{
3+
"DetailType": "PublicationApprovalRequested",
4+
"Source": "unicorn.web",
5+
"EventBusName": "UnicornPropertiesBus-local",
6+
"Detail": "{\"PropertyId\":\"usa/anytown/main-street/333\",\"Address\":{\"Country\":\"USA\",\"City\":\"Anytown\",\"Street\":\"Main Street\",\"Number\":333},\"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\"]}"
7+
}
8+
]
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
[
2+
{
3+
"DetailType": "PublicationApprovalRequested",
4+
"Source": "unicorn.web",
5+
"EventBusName": "UnicornPropertiesBus-local",
6+
"Detail": "{\"PropertyId\":\"usa/anytown/main-street/111\",\"Address\":{\"Country\":\"USA\",\"City\":\"Anytown\",\"Street\":\"Main Street\",\"Number\":111},\"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\"]}"
7+
}
8+
]

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+
}

0 commit comments

Comments
 (0)