Skip to content

Commit 2383ea1

Browse files
authored
Merge pull request #124 from thin-edge/feat-use-tedge-command-plugin
feat: use new tedge-command-plugin
2 parents 29b9489 + 4e7646d commit 2383ea1

File tree

8 files changed

+15
-13
lines changed

8 files changed

+15
-13
lines changed

images/alpine-s6/alpine-s6.dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ RUN curl -sSL thin-edge.io/install.sh | sh -s
3232
RUN curl -sSL thin-edge.io/install-services.sh | sh -s \
3333
# Install additional community plugins
3434
&& apk add --no-cache \
35-
c8y-command-plugin \
35+
tedge-command-plugin \
3636
tedge-apk-plugin
3737

3838
# Set permissions of all files under /etc/tedge

images/common/config/tedge-configuration-plugin.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ group = 'root'
3434
mode = 0o644
3535

3636
[[files]]
37-
path = '/etc/c8y-command-plugin/env'
37+
path = '/etc/tedge-command-plugin/env'
3838
type = 'shell'
3939
user = 'tedge'
4040
group = 'tedge'

images/common/utils/set-startup-info

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ set -e
33
TARGET="$(tedge config get mqtt.topic_root)/$(tedge config get mqtt.device_topic_id)"
44

55
# firmware
6+
# TODO: Remove dumb sleep and find out way the firmware is not always published to the cloud
7+
sleep 5
68
tedge mqtt pub -r --qos 1 "$TARGET/twin/firmware" "$(printf '{"name": "iot-linux", "version": "1.0.0"}')"
79

810
# Trigger inventory service on startup

images/debian-systemd/debian-systemd.dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ RUN echo "running" \
7373
&& systemctl enable collectd \
7474
&& DEBIAN_FRONTEND=noninteractive apt-get -y --no-install-recommends install \
7575
tedge-inventory-plugin \
76-
c8y-command-plugin \
76+
tedge-command-plugin \
7777
tedge-nodered-plugin-ng \
7878
# Local PKI service for easy child device registration
7979
tedge-pki-smallstep-ca \

images/tedge-containermgmt/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ RUN apk update \
66
&& wget -q -O - 'https://dl.cloudsmith.io/public/thinedge/community/rsa.B24635C28003430C.key' > /etc/apk/keys/community@thinedge-B24635C28003430C.rsa.pub \
77
&& wget -q -O - 'https://dl.cloudsmith.io/public/thinedge/community/config.alpine.txt?distro=alpine&codename=v3.8' >> /etc/apk/repositories \
88
&& apk add --no-cache \
9-
c8y-command-plugin \
9+
tedge-command-plugin \
1010
tedge-apk-plugin \
1111
# Containerization defaults
1212
tedge-container-plugin \

images/tedge/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ RUN apk update \
66
&& wget -q -O - 'https://dl.cloudsmith.io/public/thinedge/community/rsa.B24635C28003430C.key' > /etc/apk/keys/community@thinedge-B24635C28003430C.rsa.pub \
77
&& wget -q -O - 'https://dl.cloudsmith.io/public/thinedge/community/config.alpine.txt?distro=alpine&codename=v3.8' >> /etc/apk/repositories \
88
&& apk add --no-cache \
9-
c8y-command-plugin \
9+
tedge-command-plugin \
1010
tedge-apk-plugin \
1111
&& apk cache clean
1212

tests/alpine-s6/children/operations.robot

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,14 @@ It Should List the Installed Software
3434
Device Should Have Installed Software tedge tedge-agent
3535

3636
Install software (apk package)
37-
${operation}= Install Software {"name": "jq", "version": "latest", "softwareType": "apk"}
37+
${operation}= Install Software {"name": "htop", "version": "latest", "softwareType": "apk"}
3838
Operation Should Be SUCCESSFUL ${operation}
39-
Device Should Have Installed Software {"name": "jq", "softwareType": "apk"}
39+
Device Should Have Installed Software {"name": "htop", "softwareType": "apk"}
4040

4141
Uninstall software (apk package)
42-
${operation}= Uninstall Software {"name": "jq", "version": "latest", "softwareType": "apk"}
42+
${operation}= Uninstall Software {"name": "htop", "version": "latest", "softwareType": "apk"}
4343
Operation Should Be SUCCESSFUL ${operation}
44-
Device Should Not Have Installed Software {"name": "jq", "softwareType": "apk"}
44+
Device Should Not Have Installed Software {"name": "htop", "softwareType": "apk"}
4545

4646
*** Keywords ***
4747

tests/tedge/operations.robot

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -98,16 +98,16 @@ Check Software List
9898
Install software
9999
[Arguments] ${device}
100100
Cumulocity.Set Device ${device}
101-
${operation}= Cumulocity.Install Software {"name": "jq", "version": "latest", "softwareType": "apk"}
101+
${operation}= Cumulocity.Install Software {"name": "htop", "version": "latest", "softwareType": "apk"}
102102
Operation Should Be SUCCESSFUL ${operation}
103-
Device Should Have Installed Software jq
103+
Device Should Have Installed Software htop
104104

105105
Uninstall software
106106
[Arguments] ${device}
107107
Cumulocity.Set Device ${device}
108-
${operation}= Cumulocity.Uninstall Software {"name": "jq", "version": "latest", "softwareType": "apk"}
108+
${operation}= Cumulocity.Uninstall Software {"name": "htop", "version": "latest", "softwareType": "apk"}
109109
Operation Should Be SUCCESSFUL ${operation}
110-
Device Should Not Have Installed Software jq
110+
Device Should Not Have Installed Software htop
111111

112112
Execute shell command
113113
[Arguments] ${device}

0 commit comments

Comments
 (0)