Skip to content
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

Linux: Unable to auto-generate a test-suite for any property/URL using CLI #9

Open
saratrajan opened this issue Dec 21, 2022 · 2 comments

Comments

@saratrajan
Copy link

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

  1. Install Akamai CLI (with brew or extract the binary) and install Test Center
  2. Setup .edgerc file and set AKAMAI_EDGERC_SECTION=default
  3. Run the below command on Git Bash
    akamai test-center --section default ts generate-default --url "https://****" --property "www-****.****.com" --propver 2 --json
  4. Error received as
The 'testRequestUrls' property is missing.
  1. 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.

@rakayada
Copy link
Collaborator

rakayada commented Apr 11, 2023

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

@rakayada
Copy link
Collaborator

rakayada commented Oct 4, 2023

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.

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants