Skip to content

Commit

Permalink
feat(uat): add windows build for python paho client (#377)
Browse files Browse the repository at this point in the history
  • Loading branch information
eschastlivtsev authored Jul 25, 2023
1 parent 6d366ab commit 7f601cd
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 27 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -730,11 +730,11 @@ def __create_publish_properties(self, message: MqttPubMessage):

if message.response_topic is not None:
properties.ResponseTopic = message.response_topic
self.__logger.warning("Copied TX response topic '%s'", message.response_topic)
self.__logger.info("Copied TX response topic '%s'", message.response_topic)

if message.correlation_data is not None:
properties.CorrelationData = message.correlation_data
self.__logger.warning("Copied TX correlation data '%s'", str(message.correlation_data))
self.__logger.info("Copied TX correlation data '%s'", str(message.correlation_data))

properties.UserProperty = user_properties

Expand Down Expand Up @@ -802,6 +802,11 @@ def __convert_to_conn_ack(self, mqtt_result: MqttResult) -> Mqtt5ConnAck:
"""
props = mqtt_result.properties
mqtt_properties = self.__convert_to_mqtt5_properties(getattr(props, "UserProperty", None), "CONNACK")

response_information = getattr(props, "ResponseInformation", None)
if response_information is not None:
self.__logger.info("CONNACK Rx response information: '%s'", response_information)

conn_ack = Mqtt5ConnAck(
sessionPresent=mqtt_result.flags["session present"],
reasonCode=mqtt_result.reason_code,
Expand All @@ -816,7 +821,7 @@ def __convert_to_conn_ack(self, mqtt_result: MqttResult) -> Mqtt5ConnAck:
subscriptionIdentifiersAvailable=getattr(props, "SubscriptionIdentifierAvailable", None),
sharedSubscriptionsAvailable=getattr(props, "SharedSubscriptionAvailable", None),
serverKeepAlive=getattr(props, "ServerKeepAlive", None),
responseInformation=getattr(props, "ResponseInformation", None),
responseInformation=response_information,
serverReference=getattr(props, "ServerReference", None),
topicAliasMaximum=getattr(props, "TopicAliasMaximum", None),
properties=mqtt_properties,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ Feature: GGMQ-1
| mqtt-v | name | agent | recipe | subscribe-status-q1 |
| v3 | paho-java | aws.greengrass.client.Mqtt5JavaPahoClient | client_java_paho.yaml | GRANTED_QOS_0 |

@mqtt3 @paho-python @SkipOnWindows
@mqtt3 @paho-python
Examples:
| mqtt-v | name | agent | recipe | subscribe-status-q1 |
| v3 | paho-python | aws.greengrass.client.Mqtt5PythonPahoClient | client_python_paho.yaml | GRANTED_QOS_1 |
Expand All @@ -107,7 +107,7 @@ Feature: GGMQ-1
| mqtt-v | name | agent | recipe | subscribe-status-q1 |
| v5 | paho-java | aws.greengrass.client.Mqtt5JavaPahoClient | client_java_paho.yaml | GRANTED_QOS_1 |

@mqtt5 @paho-python @SkipOnWindows
@mqtt5 @paho-python
Examples:
| mqtt-v | name | agent | recipe | subscribe-status-q1 |
| v5 | paho-python | aws.greengrass.client.Mqtt5PythonPahoClient | client_python_paho.yaml | GRANTED_QOS_1 |
Expand Down Expand Up @@ -243,7 +243,7 @@ Feature: GGMQ-1
| mqtt-v | name | agent | recipe | iot_data_1-publish | subscribe-status-q1 |
| v3 | sdk-java | aws.greengrass.client.Mqtt5JavaSdkClient | client_java_sdk.yaml | 0 | GRANTED_QOS_0 |

@mqtt3 @paho-python @SkipOnWindows
@mqtt3 @paho-python
Examples:
| mqtt-v | name | agent | recipe | iot_data_1-publish | subscribe-status-q1 |
| v3 | paho-python | aws.greengrass.client.Mqtt5PythonPahoClient | client_python_paho.yaml | 0 | GRANTED_QOS_1 |
Expand All @@ -253,7 +253,7 @@ Feature: GGMQ-1
| mqtt-v | name | agent | recipe | iot_data_1-publish | subscribe-status-q1 |
| v5 | sdk-java | aws.greengrass.client.Mqtt5JavaSdkClient | client_java_sdk.yaml | 135 | GRANTED_QOS_1 |

@mqtt5 @paho-python @SkipOnWindows
@mqtt5 @paho-python
Examples:
| mqtt-v | name | agent | recipe | iot_data_1-publish | subscribe-status-q1 |
| v5 | paho-python | aws.greengrass.client.Mqtt5PythonPahoClient | client_python_paho.yaml | 0 | GRANTED_QOS_1 |
Expand Down Expand Up @@ -402,7 +402,7 @@ Feature: GGMQ-1
| mqtt-v | name | agent | recipe |
| v3 | paho-java | aws.greengrass.client.Mqtt5JavaPahoClient | client_java_paho.yaml |

@mqtt3 @paho-python @SkipOnWindows
@mqtt3 @paho-python
Examples:
| mqtt-v | name | agent | recipe |
| v3 | paho-python | aws.greengrass.client.Mqtt5PythonPahoClient | client_python_paho.yaml |
Expand All @@ -422,7 +422,7 @@ Feature: GGMQ-1
| mqtt-v | name | agent | recipe |
| v5 | paho-java | aws.greengrass.client.Mqtt5JavaPahoClient | client_java_paho.yaml |

@mqtt5 @paho-python @SkipOnWindows
@mqtt5 @paho-python
Examples:
| mqtt-v | name | agent | recipe |
| v5 | paho-python | aws.greengrass.client.Mqtt5PythonPahoClient | client_python_paho.yaml |
Expand Down Expand Up @@ -548,7 +548,7 @@ Feature: GGMQ-1
| mqtt-v | name | agent | recipe |
| v3 | paho-java | aws.greengrass.client.Mqtt5JavaPahoClient | client_java_paho.yaml |

@mqtt3 @paho-python @SkipOnWindows
@mqtt3 @paho-python
Examples:
| mqtt-v | name | agent | recipe |
| v3 | paho-python | aws.greengrass.client.Mqtt5PythonPahoClient | client_python_paho.yaml |
Expand All @@ -568,7 +568,7 @@ Feature: GGMQ-1
| mqtt-v | name | agent | recipe |
| v5 | paho-java | aws.greengrass.client.Mqtt5JavaPahoClient | client_java_paho.yaml |

@mqtt5 @paho-python @SkipOnWindows
@mqtt5 @paho-python
Examples:
| mqtt-v | name | agent | recipe |
| v5 | paho-python | aws.greengrass.client.Mqtt5PythonPahoClient | client_python_paho.yaml |
Expand Down Expand Up @@ -745,7 +745,7 @@ Feature: GGMQ-1
| mqtt-v | name | agent | recipe | subscribe-status-na | subscribe-status-good | publish-status-nms |
| v3 | paho-java | aws.greengrass.client.Mqtt5JavaPahoClient | client_java_paho.yaml | GRANTED_QOS_0 | GRANTED_QOS_0 | 0 |

@mqtt3 @paho-python @SkipOnWindows
@mqtt3 @paho-python
Examples:
| mqtt-v | name | agent | recipe | subscribe-status-na | subscribe-status-good | publish-status-nms |
| v3 | paho-python | aws.greengrass.client.Mqtt5PythonPahoClient | client_python_paho.yaml | UNSPECIFIED_ERROR | GRANTED_QOS_1 | 0 |
Expand All @@ -765,7 +765,7 @@ Feature: GGMQ-1
| mqtt-v | name | agent | recipe | subscribe-status-na | subscribe-status-good | publish-status-nms |
| v5 | paho-java | aws.greengrass.client.Mqtt5JavaPahoClient | client_java_paho.yaml | NOT_AUTHORIZED | GRANTED_QOS_1 | 16 |

@mqtt5 @paho-python @SkipOnWindows
@mqtt5 @paho-python
Examples:
| mqtt-v | name | agent | recipe | subscribe-status-na | subscribe-status-good | publish-status-nms |
| v5 | paho-python | aws.greengrass.client.Mqtt5PythonPahoClient | client_python_paho.yaml | NOT_AUTHORIZED | GRANTED_QOS_1 | 0 |
Expand Down Expand Up @@ -891,7 +891,7 @@ Feature: GGMQ-1
| mqtt-v | name | agent | recipe |
| v3 | paho-java | aws.greengrass.client.Mqtt5JavaPahoClient | client_java_paho.yaml |

@mqtt3 @paho-python @SkipOnWindows
@mqtt3 @paho-python
Examples:
| mqtt-v | name | agent | recipe |
| v3 | paho-python | aws.greengrass.client.Mqtt5PythonPahoClient | client_python_paho.yaml |
Expand All @@ -911,7 +911,7 @@ Feature: GGMQ-1
| mqtt-v | name | agent | recipe |
| v5 | paho-java | aws.greengrass.client.Mqtt5JavaPahoClient | client_java_paho.yaml |

@mqtt5 @paho-python @SkipOnWindows
@mqtt5 @paho-python
Examples:
| mqtt-v | name | agent | recipe |
| v5 | paho-python | aws.greengrass.client.Mqtt5PythonPahoClient | client_python_paho.yaml |
Expand Down Expand Up @@ -1040,7 +1040,7 @@ Feature: GGMQ-1
| mqtt-v | name | agent | recipe |
| v3 | paho-java | aws.greengrass.client.Mqtt5JavaPahoClient | client_java_paho.yaml |

@mqtt3 @paho-python @SkipOnWindows
@mqtt3 @paho-python
Examples:
| mqtt-v | name | agent | recipe |
| v3 | paho-python | aws.greengrass.client.Mqtt5PythonPahoClient | client_python_paho.yaml |
Expand All @@ -1060,7 +1060,7 @@ Feature: GGMQ-1
| mqtt-v | name | agent | recipe |
| v5 | paho-java | aws.greengrass.client.Mqtt5JavaPahoClient | client_java_paho.yaml |

@mqtt5 @paho-python @SkipOnWindows
@mqtt5 @paho-python
Examples:
| mqtt-v | name | agent | recipe |
| v5 | paho-python | aws.greengrass.client.Mqtt5PythonPahoClient | client_python_paho.yaml |
Expand Down Expand Up @@ -1437,7 +1437,7 @@ Feature: GGMQ-1
| mqtt-v | name | agent | recipe |
| v3 | paho-java | aws.greengrass.client.Mqtt5JavaPahoClient | client_java_paho.yaml |

@mqtt3 @paho-python @SkipOnWindows
@mqtt3 @paho-python
Examples:
| mqtt-v | name | agent | recipe |
| v3 | paho-python | aws.greengrass.client.Mqtt5PythonPahoClient | client_python_paho.yaml |
Expand All @@ -1457,7 +1457,7 @@ Feature: GGMQ-1
| mqtt-v | name | agent | recipe |
| v5 | paho-java | aws.greengrass.client.Mqtt5JavaPahoClient | client_java_paho.yaml |

@mqtt5 @paho-python @SkipOnWindows
@mqtt5 @paho-python
Examples:
| mqtt-v | name | agent | recipe |
| v5 | paho-python | aws.greengrass.client.Mqtt5PythonPahoClient | client_python_paho.yaml |
Expand Down Expand Up @@ -1558,7 +1558,7 @@ Feature: GGMQ-1
| mqtt-v | name | agent | recipe |
| v3 | paho-java | aws.greengrass.client.Mqtt5JavaPahoClient | client_java_paho.yaml |

@mqtt3 @paho-python @SkipOnWindows
@mqtt3 @paho-python
Examples:
| mqtt-v | name | agent | recipe |
| v3 | paho-python | aws.greengrass.client.Mqtt5PythonPahoClient | client_python_paho.yaml |
Expand All @@ -1578,7 +1578,7 @@ Feature: GGMQ-1
| mqtt-v | name | agent | recipe |
| v5 | paho-java | aws.greengrass.client.Mqtt5JavaPahoClient | client_java_paho.yaml |

@mqtt5 @paho-python @SkipOnWindows
@mqtt5 @paho-python
Examples:
| mqtt-v | name | agent | recipe |
| v5 | paho-python | aws.greengrass.client.Mqtt5PythonPahoClient | client_python_paho.yaml |
Expand Down Expand Up @@ -1714,7 +1714,7 @@ Feature: GGMQ-1
| mqtt-v | name | agent | recipe | publish-status-na |
| v3 | paho-java | aws.greengrass.client.Mqtt5JavaPahoClient | client_java_paho.yaml | 0 |

@mqtt3 @paho-python @SkipOnWindows
@mqtt3 @paho-python
Examples:
| mqtt-v | name | agent | recipe | publish-status-na |
| v3 | paho-python | aws.greengrass.client.Mqtt5PythonPahoClient | client_python_paho.yaml | 0 |
Expand All @@ -1734,7 +1734,7 @@ Feature: GGMQ-1
| mqtt-v | name | agent | recipe | publish-status-na |
| v5 | paho-java | aws.greengrass.client.Mqtt5JavaPahoClient | client_java_paho.yaml | 135 |

@mqtt5 @paho-python @SkipOnWindows
@mqtt5 @paho-python
Examples:
| mqtt-v | name | agent | recipe | publish-status-na |
| v5 | paho-python | aws.greengrass.client.Mqtt5PythonPahoClient | client_python_paho.yaml | 0 |
Expand Down Expand Up @@ -1825,7 +1825,7 @@ Feature: GGMQ-1
| mqtt-v | name | agent | recipe |
| v3 | paho-java | aws.greengrass.client.Mqtt5JavaPahoClient | client_java_paho.yaml |

@mqtt3 @paho-python @SkipOnWindows
@mqtt3 @paho-python
Examples:
| mqtt-v | name | agent | recipe |
| v3 | paho-python | aws.greengrass.client.Mqtt5PythonPahoClient | client_python_paho.yaml |
Expand Down Expand Up @@ -2347,7 +2347,7 @@ Feature: GGMQ-1
| mqtt-v | name | agent | recipe | publish-status-nms |
| v5 | paho-java | aws.greengrass.client.Mqtt5JavaPahoClient | client_java_paho.yaml | 16 |

@mqtt5 @paho-python @SkipOnWindows
@mqtt5 @paho-python
Examples:
| mqtt-v | name | agent | recipe | publish-status-nms |
| v5 | paho-python | aws.greengrass.client.Mqtt5PythonPahoClient | client_python_paho.yaml | 0 |
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,24 @@ ComponentConfiguration:
controlAddresses: 127.0.0.1
controlPort: 47619
Manifests:
- Artifacts:
- Platform:
os: linux
Artifacts:
- URI: classpath:/local-store/artifacts/client-python-paho
Permission:
Read: ALL
Execute: OWNER
Lifecycle:
Run: |
{artifacts:path}/client-python-paho "{configuration:/agentId}" "{configuration:/controlPort}" {configuration:/controlAddresses}
# Only linux support at this moment
- Platform:
os: windows
Artifacts:
- URI: classpath:/local-store/artifacts/client-python-paho.exe
Permission:
Read: ALL
Execute: OWNER
Lifecycle:
Run: |
{artifacts:path}/client-python-paho.exe "{configuration:/agentId}" "{configuration:/controlPort}" {configuration:/controlAddresses}

0 comments on commit 7f601cd

Please sign in to comment.