Skip to content

Commit

Permalink
Merge pull request #125 from thin-edge/feat-add-tedge-command-plugin-…
Browse files Browse the repository at this point in the history
…to-child-devices

feat: add tedge-command-plugin to child device images
  • Loading branch information
reubenmiller authored Dec 17, 2024
2 parents 2383ea1 + d45ea3f commit d02bb90
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions images/child-device-container/child.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ RUN apk add --no-cache \
&& curl -1sLf 'https://dl.cloudsmith.io/public/thinedge/community/config.alpine.txt?distro=alpine&codename=v3.8' >> /etc/apk/repositories \
&& apk add --no-cache \
tedge-apk-plugin \
tedge-command-plugin \
tedge-inventory-plugin \
tedge-pki-smallstep-client \
&& echo "tedge ALL = (ALL) NOPASSWD: /usr/bin/tedge, /usr/bin/tedge-write /etc/*, /etc/tedge/sm-plugins/[a-zA-Z0-9]*, /bin/sync, /bin/kill" > /etc/sudoers.d/tedge \
Expand Down
1 change: 1 addition & 0 deletions images/child-device-systemd/child.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ RUN echo "running" \
&& curl -1sLf 'https://dl.cloudsmith.io/public/thinedge/community/setup.deb.sh' | sudo -E bash \
&& DEBIAN_FRONTEND=noninteractive apt-get -y install \
tedge-agent \
tedge-command-plugin \
tedge-inventory-plugin \
# Local PKI service for easy child device registration
tedge-pki-smallstep-client \
Expand Down
5 changes: 5 additions & 0 deletions tests/debian-systemd/children-container/operations.robot
Original file line number Diff line number Diff line change
Expand Up @@ -72,3 +72,8 @@ Install device profile
Cumulocity.Managed Object Should Have Fragment Values c8y_Firmware.name\=iot-linux c8y_Firmware.version\=3.0.0
Cumulocity.Device Should Have Installed Software {"name":"jq"}
Cumulocity.Should Support Configurations container.env includes=${True}

Execute shell command
${operation}= Cumulocity.Execute Shell Command ls -l /etc/tedge
${operation}= Operation Should Be SUCCESSFUL ${operation}
Should Not Be Empty ${operation["c8y_Command"]["result"]}
5 changes: 5 additions & 0 deletions tests/debian-systemd/children-systemd/operations.robot
Original file line number Diff line number Diff line change
Expand Up @@ -75,3 +75,8 @@ Install device profile
Cumulocity.Managed Object Should Have Fragment Values c8y_Firmware.name\=iot-linux c8y_Firmware.version\=3.0.0
Cumulocity.Device Should Have Installed Software {"name":"jq"}
Cumulocity.Should Support Configurations container.env includes=${True}

Execute shell command
${operation}= Cumulocity.Execute Shell Command ls -l /etc/tedge
${operation}= Operation Should Be SUCCESSFUL ${operation}
Should Not Be Empty ${operation["c8y_Command"]["result"]}

4 comments on commit d02bb90

@github-actions
Copy link

Choose a reason for hiding this comment

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

Robot Results

✅ Passed ❌ Failed ⏭️ Skipped Total Pass % ⏱️ Duration
11 0 2 11 100 31.761s

@github-actions
Copy link

Choose a reason for hiding this comment

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

Robot Results

✅ Passed ❌ Failed ⏭️ Skipped Total Pass % ⏱️ Duration
14 0 0 14 100 57.803999999s

@github-actions
Copy link

Choose a reason for hiding this comment

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

Robot Results

✅ Passed ❌ Failed ⏭️ Skipped Total Pass % ⏱️ Duration
7 0 0 7 100 50.301s

@github-actions
Copy link

Choose a reason for hiding this comment

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

Robot Results

✅ Passed ❌ Failed ⏭️ Skipped Total Pass % ⏱️ Duration
35 0 2 35 100 4m12.283s

Please sign in to comment.