Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add new app-service: app-service-external-mqtt-trigger for TAF test #195

Merged
merged 1 commit into from
Oct 20, 2021

Conversation

cherrycl
Copy link
Contributor

Add new app-service: app-service-external-mqtt-trigger for edgexfoundry/edgex-taf issue #514.

Signed-off-by: Cherry Wang cherry@iotechsys.com

If your build fails due to your commit message not passing the build checks, please review the guidelines here: https://github.com/edgexfoundry/edgex-compose/blob/main/.github/Contributing.md

PR Checklist

Please check if your PR fulfills the following requirements:

  • I am not introducing a breaking change (if you are, flag in conventional commit message with BREAKING CHANGE: describing the break)
  • I have fully tested (add details below) this the new feature or bug fix (if not, why?)
  • I have opened a PR for the related docs change (if not, why?)

Testing Instructions

  1. Build app-service images that contain external-mqtt-trigger profile.
  2. Deploy service using the compose file.
  3. Subscribe both topics "external-request": SubscribeTopics in Trigger and "edgex-export": Topic in Pipeline Function.
  4. Publish a message "test message" to the topic "external-request" which is defined in the profile.
  5. Both topics, external-request and edgex-export, receive the message

@cherrycl
Copy link
Contributor Author

Waiting for edgexfoundry/app-service-configurable PR #338 merged.

compose-builder/Makefile Outdated Show resolved Hide resolved
Comment on lines 19 to 24
EDGEX_PROFILE=external-mqtt-trigger
TRIGGER_EXTERNALMQTT_URL=tcp://MQTT_BROKER_ADDRESS_PLACE_HOLDER:1883
WRITABLE_PIPELINE_FUNCTIONS_MQTTEXPORT_PARAMETERS_BROKERADDRESS=tcp://MQTT_BROKER_ADDRESS_PLACE_HOLDER:1883
WRITABLE_PIPELINE_FUNCTIONS_MQTTEXPORT_PARAMETERS_TOPIC=edgex-export
# allows scripts to find and change with sed
WRITABLE_LOGLEVEL=INFO
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like the settings are only use in the one yaml file, so we could reduce number of files by moving these into the environment section of the yaml file.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Moved the environment variables to the compose-builder/add-asc-external-mqtt-trigger.yml file.

…test

Signed-off-by: Cherry Wang <cherry@iotechsys.com>
Copy link
Member

@lenny-goodell lenny-goodell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@lenny-goodell lenny-goodell merged commit c14f6a2 into edgexfoundry:main Oct 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants