-
Notifications
You must be signed in to change notification settings - Fork 54
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
Add test for jwt request #1784
Add test for jwt request #1784
Conversation
Robot Results
Passed Tests
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@gligorisaev The Get Unix Timestamp
does not seem to be from the DateTime library. From memory I think we were talking about creating a new keyword to provide a "rounded down" unix timestamp in seconds.
I have just added this keyword Get Unix Timestamp
to the robotframework-devicelibrary
, so can you update this in your PR? This can be done via a regex in your IDE (but I can also help).
Replace pattern (with regex option turned on): robotframework-devicelibrary.git@.+
With new text: robotframework-devicelibrary.git@0.27.1
${DEVICE_SN}= Setup | ||
Set Suite Variable $DEVICE_SN | ||
Device Should Exist ${DEVICE_SN} | ||
Stop Service tedge-mapper-c8y |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Correct me if I am wrong here, but first Default Setup
runs then Custom Setup
then the test.
Since you are stopping the tedge-mapper-c8y
here before the test starts, how can you retrieve the jwt token? this mapper must be running right.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, Bridge creation is enough to retrieve the jwt token.
Signed-off-by: gligorisaev <gligorisaev@gmail.com>
Signed-off-by: gligorisaev <gligorisaev@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved
* add jwt test --------- Signed-off-by: gligorisaev <gligorisaev@gmail.com>
Proposed changes
Types of changes
Paste Link to the issue
Checklist
cargo fmt
as mentioned in CODING_GUIDELINEScargo clippy
as mentioned in CODING_GUIDELINESFurther comments