Issue #, if available:
Implement Retain As published flag
Description of changes:
Add GGMQ-1-T103 scenario outline to test 'retain as published' feature
Update MqttControlSteps by adding receivedRetain variable and use it in receive steps
Update EventFilter to allow reset retain matching
Tune logging of MqttControlSteps
Tune steps sentences
Add explicit disconnect for all devices
Why is this change necessary:
We should be able to test 'retain as published' flag has effect
How was this change tested:
Run scenarios including new GGMQ-1-T103 on codeBuild
Test results:
[INFO ] 2023-06-20 22:06:20.328 [main] StepTrackingReporting - Passed: 'GGMQ-1-T1-v3-sdk-java: As a customer, I can connect, subscribe/publish at QoS 0 and 1 and receive using client application to MQTT topic'
[INFO ] 2023-06-20 22:06:20.328 [main] StepTrackingReporting - Passed: 'GGMQ-1-T1-v3-mosquitto-c: As a customer, I can connect, subscribe/publish at QoS 0 and 1 and receive using client application to MQTT topic'
[INFO ] 2023-06-20 22:06:20.328 [main] StepTrackingReporting - Passed: 'GGMQ-1-T1-v3-paho-java: As a customer, I can connect, subscribe/publish at QoS 0 and 1 and receive using client application to MQTT topic'
[INFO ] 2023-06-20 22:06:20.328 [main] StepTrackingReporting - Passed: 'GGMQ-1-T1-v5-sdk-java: As a customer, I can connect, subscribe/publish at QoS 0 and 1 and receive using client application to MQTT topic'
[INFO ] 2023-06-20 22:06:20.328 [main] StepTrackingReporting - Passed: 'GGMQ-1-T1-v5-mosquitto-c: As a customer, I can connect, subscribe/publish at QoS 0 and 1 and receive using client application to MQTT topic'
[INFO ] 2023-06-20 22:06:20.328 [main] StepTrackingReporting - Passed: 'GGMQ-1-T1-v5-paho-java: As a customer, I can connect, subscribe/publish at QoS 0 and 1 and receive using client application to MQTT topic'
[INFO ] 2023-06-20 22:06:20.329 [main] StepTrackingReporting - Passed: 'GGMQ-1-T8-v3-sdk-java: As a customer, I can configure local MQTT messages to be forwarded to a PubSub topic'
[INFO ] 2023-06-20 22:06:20.329 [main] StepTrackingReporting - Passed: 'GGMQ-1-T8-v3-mosquitto-c: As a customer, I can configure local MQTT messages to be forwarded to a PubSub topic'
[INFO ] 2023-06-20 22:06:20.329 [main] StepTrackingReporting - Passed: 'GGMQ-1-T8-v3-paho-java: As a customer, I can configure local MQTT messages to be forwarded to a PubSub topic'
[INFO ] 2023-06-20 22:06:20.329 [main] StepTrackingReporting - Passed: 'GGMQ-1-T8-v5-sdk-java: As a customer, I can configure local MQTT messages to be forwarded to a PubSub topic'
[INFO ] 2023-06-20 22:06:20.329 [main] StepTrackingReporting - Passed: 'GGMQ-1-T8-v5-mosquitto-c: As a customer, I can configure local MQTT messages to be forwarded to a PubSub topic'
[INFO ] 2023-06-20 22:06:20.329 [main] StepTrackingReporting - Passed: 'GGMQ-1-T8-v5-paho-java: As a customer, I can configure local MQTT messages to be forwarded to a PubSub topic'
[INFO ] 2023-06-20 22:06:20.329 [main] StepTrackingReporting - Passed: 'GGMQ-1-T9-v3-sdk-java: As a customer,I can configure local MQTT messages to be forwarded to an IoT Core MQTT topic'
[INFO ] 2023-06-20 22:06:20.329 [main] StepTrackingReporting - Passed: 'GGMQ-1-T9-v3-mosquitto-c: As a customer,I can configure local MQTT messages to be forwarded to an IoT Core MQTT topic'
[ERROR] 2023-06-20 22:06:20.329 [main] StepTrackingReporting - Failed: 'GGMQ-1-T9-v3-paho-java: As a customer,I can configure local MQTT messages to be forwarded to an IoT Core MQTT topic': Failed at 'my device is registered as a Thing'
[INFO ] 2023-06-20 22:06:20.329 [main] StepTrackingReporting - Passed: 'GGMQ-1-T9-v5-sdk-java: As a customer,I can configure local MQTT messages to be forwarded to an IoT Core MQTT topic'
[INFO ] 2023-06-20 22:06:20.329 [main] StepTrackingReporting - Passed: 'GGMQ-1-T9-v5-mosquitto-c: As a customer,I can configure local MQTT messages to be forwarded to an IoT Core MQTT topic'
[ERROR] 2023-06-20 22:06:20.329 [main] StepTrackingReporting - Failed: 'GGMQ-1-T9-v5-paho-java: As a customer,I can configure local MQTT messages to be forwarded to an IoT Core MQTT topic': Failed at 'the Greengrass deployment is COMPLETED on the device after 5 minutes'
[INFO ] 2023-06-20 22:06:20.329 [main] StepTrackingReporting - Passed: 'GGMQ-1-T13-v3-sdk-java: As a customer, I can connect two GGADs and send message from one GGAD to the other based on CDA configuration'
[INFO ] 2023-06-20 22:06:20.329 [main] StepTrackingReporting - Passed: 'GGMQ-1-T13-v3-mosquitto-c: As a customer, I can connect two GGADs and send message from one GGAD to the other based on CDA configuration'
[ERROR] 2023-06-20 22:06:20.330 [main] StepTrackingReporting - Failed: 'GGMQ-1-T13-v3-paho-java: As a customer, I can connect two GGADs and send message from one GGAD to the other based on CDA configuration': Failed at 'the Greengrass deployment is COMPLETED on the device after 5 minutes'
[INFO ] 2023-06-20 22:06:20.330 [main] StepTrackingReporting - Passed: 'GGMQ-1-T13-v5-sdk-java: As a customer, I can connect two GGADs and send message from one GGAD to the other based on CDA configuration'
[INFO ] 2023-06-20 22:06:20.330 [main] StepTrackingReporting - Passed: 'GGMQ-1-T13-v5-mosquitto-c: As a customer, I can connect two GGADs and send message from one GGAD to the other based on CDA configuration'
[INFO ] 2023-06-20 22:06:20.330 [main] StepTrackingReporting - Passed: 'GGMQ-1-T13-v5-paho-java: As a customer, I can connect two GGADs and send message from one GGAD to the other based on CDA configuration'
[INFO ] 2023-06-20 22:06:20.330 [main] StepTrackingReporting - Passed: 'GGMQ-1-T14-v3-sdk-java: As a customer, I can configure IoT Core messages to be forwarded to local MQTT topic'
[INFO ] 2023-06-20 22:06:20.330 [main] StepTrackingReporting - Passed: 'GGMQ-1-T14-v3-mosquitto-c: As a customer, I can configure IoT Core messages to be forwarded to local MQTT topic'
[INFO ] 2023-06-20 22:06:20.330 [main] StepTrackingReporting - Passed: 'GGMQ-1-T14-v3-paho-java: As a customer, I can configure IoT Core messages to be forwarded to local MQTT topic'
[INFO ] 2023-06-20 22:06:20.330 [main] StepTrackingReporting - Passed: 'GGMQ-1-T14-v5-sdk-java: As a customer, I can configure IoT Core messages to be forwarded to local MQTT topic'
[INFO ] 2023-06-20 22:06:20.330 [main] StepTrackingReporting - Passed: 'GGMQ-1-T14-v5-mosquitto-c: As a customer, I can configure IoT Core messages to be forwarded to local MQTT topic'
[INFO ] 2023-06-20 22:06:20.330 [main] StepTrackingReporting - Passed: 'GGMQ-1-T14-v5-paho-java: As a customer, I can configure IoT Core messages to be forwarded to local MQTT topic'
[ERROR] 2023-06-20 22:06:20.330 [main] StepTrackingReporting - Failed: 'GGMQ-1-T15-v3-sdk-java: As a customer, I can configure Pubsub messages to be forwarded to local MQTT topic': Failed at 'the Greengrass deployment is COMPLETED on the device after 5 minutes'
[INFO ] 2023-06-20 22:06:20.330 [main] StepTrackingReporting - Passed: 'GGMQ-1-T15-v3-mosquitto-c: As a customer, I can configure Pubsub messages to be forwarded to local MQTT topic'
[INFO ] 2023-06-20 22:06:20.330 [main] StepTrackingReporting - Passed: 'GGMQ-1-T15-v3-paho-java: As a customer, I can configure Pubsub messages to be forwarded to local MQTT topic'
[INFO ] 2023-06-20 22:06:20.330 [main] StepTrackingReporting - Passed: 'GGMQ-1-T15-v5-sdk-java: As a customer, I can configure Pubsub messages to be forwarded to local MQTT topic'
[ERROR] 2023-06-20 22:06:20.331 [main] StepTrackingReporting - Failed: 'GGMQ-1-T15-v5-mosquitto-c: As a customer, I can configure Pubsub messages to be forwarded to local MQTT topic': Failed at 'the Greengrass deployment is COMPLETED on the device after 5 minutes'
[INFO ] 2023-06-20 22:06:20.331 [main] StepTrackingReporting - Passed: 'GGMQ-1-T15-v5-paho-java: As a customer, I can configure Pubsub messages to be forwarded to local MQTT topic'
[INFO ] 2023-06-20 22:06:20.331 [main] StepTrackingReporting - Passed: 'GGMQ-1-T101-v3-sdk-java: As a customer, I can use publish retain flag'
[INFO ] 2023-06-20 22:06:20.331 [main] StepTrackingReporting - Passed: 'GGMQ-1-T101-v3-mosquitto-c: As a customer, I can use publish retain flag'
[INFO ] 2023-06-20 22:06:20.331 [main] StepTrackingReporting - Passed: 'GGMQ-1-T101-v3-paho-java: As a customer, I can use publish retain flag'
[INFO ] 2023-06-20 22:06:20.331 [main] StepTrackingReporting - Passed: 'GGMQ-1-T102-v5-sdk-java: As a customer, I can use publish retain flag and subscribe retain handling as expected'
[INFO ] 2023-06-20 22:06:20.331 [main] StepTrackingReporting - Passed: 'GGMQ-1-T102-v5-mosquitto-c: As a customer, I can use publish retain flag and subscribe retain handling as expected'
[INFO ] 2023-06-20 22:06:20.331 [main] StepTrackingReporting - Passed: 'GGMQ-1-T102-v5-paho-java: As a customer, I can use publish retain flag and subscribe retain handling as expected'
[INFO ] 2023-06-20 22:06:20.331 [main] StepTrackingReporting - Passed: 'GGMQ-1-T103-v5-sdk-java: As a customer, I can use retain as published flag'
[ERROR] 2023-06-20 22:06:20.331 [main] StepTrackingReporting - Failed: 'GGMQ-1-T103-v5-mosquitto-c: As a customer, I can use retain as published flag': Failed at 'my device is registered as a Thing'
[INFO ] 2023-06-20 22:06:20.331 [main] StepTrackingReporting - Passed: 'GGMQ-1-T103-v5-paho-java: As a customer, I can use retain as published flag'
Any additional information or context required to review the change:
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
Issue #, if available: Implement Retain As published flag
Description of changes:
Why is this change necessary: We should be able to test 'retain as published' flag has effect
How was this change tested: Run scenarios including new GGMQ-1-T103 on codeBuild
Test results:
Any additional information or context required to review the change:
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.