Serverless Extensions – Part 5: Bring it all together – Testing the extension end to end
Now that we have configured and connected all the services required for our scenario, let us test out the two additional functionalities we set out to achieve.
Create a promotion applicable for all the customer groups.
The application sends a message to the ‘promotions’ queue we set up (refer part 1)
The message sent is picked up by the trigger to the ‘Master’ function(refer part 4). This function gets the contact number for the priority customers from the backend service and sends the WhatsApp message using the open connectors (refer part 1)
Since this promotion applies for all the customers, it gets published on twitter as well.
SCP functions service records execution logs which you can access from the dashboard.
Let us try to create a promotion applicable only for the priority customers.
In this case, the priority customers receive the promotion information through WhatsApp. The promotion does not get published on twitter.
I hope this blog series proves helpful to any of you planning to extend the legacy application using the services offered by SAP Cloud Platform.