You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Unable to auto-generate a test-suite for any property/URL using CLI as an error is thrown that The 'testRequestUrls' property is missing.
Version
test-center version 0.1.1
Steps to Reproduce
Install Akamai CLI (with brew or extract the binary) and install Test Center
Setup .edgerc file and set AKAMAI_EDGERC_SECTION=default
Run the below command on Git Bash akamai test-center --section default ts generate-default --url "https://****" --property "www-****.****.com" --propver 2 --json
Error received as
The 'testRequestUrls' property is missing.
Retried it with AKAMAI_LOG=debug and found that the Configs payload and testRequestUrls payload are going as {} and null respectively!
DEBUG[0000] Checking for upgrades
time="2022-12-21T12:09:33-08:00" level=debug msg="Timestamp: '20221221T20:09:33+0000'"
time="2022-12-21T12:09:33-08:00" level=debug msg="Nonce: '8b886537-30a3-44f2-9ebb-d4ffab956679'"
time="2022-12-21T12:09:33-08:00" level=debug msg="Unsigned authorization header: ****;timestamp=20221221T20:09:33+0000;nonce=****;'"
time="2022-12-21T12:09:33-08:00" level=debug msg="Body is {\"configs\":{},\"testRequestUrls\":null}"
time="2022-12-21T12:09:33-08:00" level=debug msg="Signing content: {\"configs\":{},\"testRequestUrls\":null}"
time="2022-12-21T12:09:33-08:00" level=debug msg="Content hash is '****'"
time="2022-12-21T12:09:33-08:00" level=debug msg="Data to sign POST\thttps\****\t/test-management/v3/functional/test-suites/auto-generate\t\t*****;timestamp=20221221T20:09:33+0000;nonce=****;"
time="2022-12-21T12:09:33-08:00" level=debug msg="Signed authorization header: 'EG1-HMAC-SHA256 client_token=****;access_token=****;timestamp=20221221T20:09:33+0000;nonce=****;signature=****'"
The 'testRequestUrls' property is missing.
Workaround & More notes
The same .edgerc setup is working perfectly on PowerShell interface for exact same command and params. Issue is only on Azure DevOps (where we are trying on Ubuntu) and on Git Bash.
Involvement of Akamai ProServ
We currently have an open ticket with Akamai and worked with Professional Services team briefly and we have confirmed that this is not a setup issue as we could successfully hit the underlying API from both Postman and using httpie-edgegrid - both the times we are getting a successful response.
This indicates that the GoLang module is unable to parse the params passed over CLI and is missing to create a valid payload for the API. Hopefully the internal developer would be reached out to sooner and this would be fixed.
The text was updated successfully, but these errors were encountered:
Hi @saratrajan,
We have tried multiple times to reproduce this issue but no luck.
Can you please share more info on this issue -
Ubuntu Version
Git Bash Version and Windows Version
More Logs with - AKAMAI_CLI_LOG=trace
it is happening for test-center command only or this issue is present in other commands as well.
Workaround & More notes
You can try to run this command via alternate methods and see if it's working till the time issue is fixed.
Replace double quotes with single quotes - akamai test-center --section default ts generate-default --url 'https://****' --property 'www-****.****.com' --propver 2 --json
Or try to run command with json - echo '{"configs":{"propertyManager":{"propertyName":"www-****.****.com","propertyVersion":2}},"testRequestUrls":["https://****"]}' | akamai test-center --section default ts generate-default
Hi @saratrajan,
We have released the GA version for cli-test-center 1.0.0 and the current release has multiple new feature/bug fixes/library updates/code improvements.
Users need to upgrade to the latest test-center version 1.0.0 for cli-test-center commands to work properly. Please refer README.md file for more information on breaking changes.
Update to the latest cli-test-center version using this command - akamai update test-center
This new release might have fixed this issue as there are library updates and code improvements. Please check the same after upgrading the cli-test-center version.
Description
Unable to auto-generate a test-suite for any property/URL using CLI as an error is thrown that
The 'testRequestUrls' property is missing.
Version
test-center version 0.1.1
Steps to Reproduce
akamai test-center --section default ts generate-default --url "https://****" --property "www-****.****.com" --propver 2 --json
The 'testRequestUrls' property is missing.
AKAMAI_LOG=debug
and found that the Configs payload and testRequestUrls payload are going as {} and null respectively!Workaround & More notes
The same .edgerc setup is working perfectly on PowerShell interface for exact same command and params. Issue is only on Azure DevOps (where we are trying on Ubuntu) and on Git Bash.
Involvement of Akamai ProServ
We currently have an open ticket with Akamai and worked with Professional Services team briefly and we have confirmed that this is not a setup issue as we could successfully hit the underlying API from both Postman and using httpie-edgegrid - both the times we are getting a successful response.
This indicates that the GoLang module is unable to parse the params passed over CLI and is missing to create a valid payload for the API. Hopefully the internal developer would be reached out to sooner and this would be fixed.
The text was updated successfully, but these errors were encountered: