feat: add cloud profile support to tedge-mapper#3174
feat: add cloud profile support to tedge-mapper#3174jarhodes314 merged 9 commits intothin-edge:mainfrom
Conversation
Codecov ReportAttention: Patch coverage is Additional details and impacted files📢 Thoughts on this report? Let us know! |
Robot Results
|
didier-wenzek
left a comment
There was a problem hiding this comment.
What has been updated is correct, but the system tests highlight a missing fix for health checks. I will be happy to approve when fixed.
acf227b to
1c5c8d1
Compare
|
So I've now understood the healthcheck issue. The problem is that in the system test, When we then run So I'll try and come up with a resolution for this broken deserialisation logic. I think this issue also highlights an issue with the availability tests. We don't currently verify the |
I can think of two possible solutions to this issue:
Examples of what the keys look like in these cases:
As far as error handling is concerned (specifically in the case of deserialising a toml file, this shouldn't affect the Thoughts? |
We really have to fix that. Such user errors are not so unlikely and would surely cause confusion and time waste.. I have clear preference for the second proposal:
This is simple and effective. |
tests/RobotFramework/tests/cumulocity/availability/heartbeat.robot
Outdated
Show resolved
Hide resolved
tests/RobotFramework/tests/cumulocity/availability/heartbeat.robot
Outdated
Show resolved
Hide resolved
didier-wenzek
left a comment
There was a problem hiding this comment.
Approved. Thank you for this sustained effort.
Signed-off-by: James Rhodes <jarhodes314@gmail.com>
Signed-off-by: James Rhodes <jarhodes314@gmail.com>
Signed-off-by: James Rhodes <jarhodes314@gmail.com>
…obot Co-authored-by: Rina Fujino <rina.fujino.23@gmail.com>
…obot Co-authored-by: Rina Fujino <rina.fujino.23@gmail.com>
…tto config paths Signed-off-by: James Rhodes <jarhodes314@gmail.com>
2ba64b9 to
d362cc0
Compare
Signed-off-by: James Rhodes <jarhodes314@gmail.com>
baea6f7 to
6d79294
Compare
Proposed changes
This adds support to
tedge-mapper c8yfor different Cumulocity profiles, using the#[tedge_config(multi)]attribute added in #3126. The profile can be selected using either the--profileargument, or by setting theC8Y_PROFILEenvironment variable. Once it is configured with a profile,tedge-mapper c8ywill set theC8Y_PROFILEvariable for itself, ensuring that any child processes from custom operations etc. will use that c8y profile.Types of changes
Paste Link to the issue
Checklist
cargo fmtas mentioned in CODING_GUIDELINEScargo clippyas mentioned in CODING_GUIDELINESFurther comments