Skip to content

Commit 7d1da18

Browse files
committed
fix: fixes bugs in implementation, tests and sample events
1 parent befeadb commit 7d1da18

17 files changed

+38
-25
lines changed

unicorn_properties/PropertyFunctions/src/test/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": "{ \"contract_last_modified_on\": 1669385541019, \"contract_id\": \"f2bedc80-3dc8-4544-9140-9b606d71a6ee\", \"property_id\": \"usa/anytown/main-street/111\", \"contract_status\": \"APPROVED\" }"
77
}
88
]

unicorn_properties/PropertyFunctions/src/test/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": "{ \"contract_last_modified_on\": 1669385541019, \"contract_id\": \"f2bedc80-3dc8-4544-9140-9b606d71a6ee\", \"property_id\": \"usa/anytown/main-street/111\", \"contract_status\": \"DRAFT\" }"
77
}
88
]

unicorn_properties/PropertyFunctions/src/test/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": "{ \"contract_last_modified_on\": 1669385541019, \"contract_id\": \"9183453b-d284-4466-a2d9-f00b1d569ad7\", \"property_id\": \"usa/anytown/main-street/222\", \"contract_status\": \"APPROVED\" }"
77
}
88
]

unicorn_properties/PropertyFunctions/src/test/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": "{ \"contract_last_modified_on\": 1669385541019, \"contract_id\": \"9183453b-d284-4466-a2d9-f00b1d569ad7\", \"property_id\": \"usa/anytown/main-street/222\", \"contract_status\": \"DRAFT\" }"
77
}
88
]

unicorn_properties/PropertyFunctions/src/test/events/eventbridge/publication_approval_requested_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": "PublicationApprovalRequested",
5-
"source": "unicorn.properties.web",
5+
"source": "unicorn.web",
66
"account": "123456789",
77
"time": "2022-08-16T06:33:05Z",
88
"region": "ap-southeast-2",
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
[
22
{
33
"DetailType": "PublicationApprovalRequested",
4-
"Source": "unicorn.properties.web",
5-
"EventBusName": "UnicornPropertiesEventBus-Local",
4+
"Source": "unicorn.web",
5+
"EventBusName": "UnicornPropertiesBus-local",
66
"Detail": "{\"property_id\":\"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\":[\"property_images/prop1_exterior1.jpg\",\"property_images/prop1_interior1.jpg\",\"property_images/prop1_interior2.jpg\",\"property_images/prop1_interior3.jpg\"]}"
77
}
88
]
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
[
22
{
33
"DetailType": "PublicationApprovalRequested",
4-
"Source": "unicorn.properties.web",
5-
"EventBusName": "UnicornPropertiesEventBus-Local",
4+
"Source": "unicorn.web",
5+
"EventBusName": "UnicornPropertiesBus-local",
66
"Detail": "{\"property_id\":\"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\":[\"property_images/prop1_exterior1.jpg\",\"property_images/prop1_interior1.jpg\",\"property_images/prop1_interior2.jpg\",\"property_images/prop1_interior3.jpg\"]}"
77
}
88
]
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
[
22
{
33
"DetailType": "PublicationApprovalRequested",
4-
"Source": "unicorn.properties.web",
5-
"EventBusName": "UnicornPropertiesEventBus-Local",
4+
"Source": "unicorn.web",
5+
"EventBusName": "UnicornPropertiesBus-local",
66
"Detail": "{\"property_id\":\"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\":[\"property_images/prop1_exterior1.jpg\",\"property_images/prop1_interior1.jpg\",\"property_images/prop1_interior2.jpg\",\"property_images/prop1_interior3.jpg\",\"property_images/prop1_interior4-bad.jpg\"]}"
77
}
88
]
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
[
22
{
33
"DetailType": "PublicationApprovalRequested",
4-
"Source": "unicorn.properties.web",
5-
"EventBusName": "UnicornPropertiesEventBus-Local",
4+
"Source": "unicorn.web",
5+
"EventBusName": "UnicornPropertiesBus-local",
66
"Detail": "{\"property_id\":\"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\":[\"property_images/prop1_exterior1.jpg\",\"property_images/prop1_interior1.jpg\",\"property_images/prop1_interior2.jpg\",\"property_images/prop1_interior3.jpg\"]}"
77
}
88
]
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
[
22
{
33
"DetailType": "PublicationApprovalRequested",
4-
"Source": "unicorn.properties.web",
5-
"EventBusName": "UnicornPropertiesEventBus-Local",
4+
"Source": "unicorn.web",
5+
"EventBusName": "UnicornPropertiesBus-local",
66
"Detail": "{\"property_id\":\"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\":[\"property_images/prop1_exterior1.jpg\",\"property_images/prop1_interior1.jpg\",\"property_images/prop1_interior2.jpg\",\"property_images/prop1_interior3.jpg\"]}"
77
}
88
]

0 commit comments

Comments
 (0)