Skip to content

Commit

Permalink
update test documentation
Browse files Browse the repository at this point in the history
Signed-off-by: nyagamunene <[email protected]>
  • Loading branch information
nyagamunene committed Dec 16, 2024
1 parent 7427b3d commit 8400dfa
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions test.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,3 +80,23 @@ Publish alive message to the manager channel. This updates the proplet.
```bash
mosquitto_pub -u $PROPLET_THING_ID -P $PROPLET_THING_KEY -I propeller -t channels/$MANAGER_CHANNEL_ID/messages/control/proplet/alive -h localhost -m "{\"proplet_id\": \"$PROPLET_THING_ID\"}"
```

**Testing proxy.**

Start proxy

```bash
go run cmd/proxy/main.go
```

Subscibe to MQTT channel to download the requested binary

```bash
mosquitto_sub -i magistrala -u $PROPLET_THING_ID -P $PROPLET_THING_KEY -t channels/$MANAGER_CHANNEL_ID/messages/registry/server -h localhost
```

Publish to MQTT channel to request the container to download

```bash
mosquitto_pub -i magistrala -u $PROPLET_THING_ID -P $PROPLET_THING_KEY -t channels/$MANAGER_CHANNEL_ID/messages/registry/proplet -h localhost -m '{"app_name":"magistrala/users"}'
```

0 comments on commit 8400dfa

Please sign in to comment.