edgexfoundry / edgex-taf

Apache License 2.0
11 stars 24 forks source link

Support test app-service with security #813

Closed MILANOFCOFEE closed 1 year ago

MILANOFCOFEE commented 1 year ago

Hi everyone, Please give me advice, I built an app-service with content upload-device-profile to core-metadata and now I want to test the data of app-service stored in core-metadata. How to test the app-service when I have a Bearer and where can I set ${jwt_token}? In file name coreMetadataAPI.robot

image
cherrycl commented 1 year ago

JWT token is auto-generated on every suite, if you want to set you own token, reference here

MILANOFCOFEE commented 1 year ago

@cherrycl Please! /edgex-taf/TAF/utils/scripts/docker/api-gateway-token.sh I saw this file and I want to know the flow run of this file. I mean this file to get jwt directly to file /edgex-taf/TAF/config/global_variables.py. Do I think that's right? Thank you so much !!!!!

cherrycl commented 1 year ago

The file api-gateway-token.sh is triggered by Get Token Keyword https://github.com/edgexfoundry/edgex-taf/blob/a8f88a8965f8eaac0de725068d28fe255b179a19/TAF/testCaseModules/keywords/common/commonKeywords.robot#L186.

cherrycl commented 1 year ago

Close this issue due to no activity.