Pearl1594 commented on issue #96:
URL: https://github.com/apache/cloudstack-go/issues/96#issuecomment-2566359533

   @lucasdk3 I wasn't able to reproduce this issue. I added some test data - 
https://github.com/apache/cloudstack-go/pull/99/files and tried running the 
RegisterUserKeys test using:
   ```
   /sb/cloudstack-go$ /usr/local/go/bin/go test -timeout 30s -run 
^TestUserService$/^RegisterUserKeys$ github.com/apache/cloudstack-go/v2/test
   ok   github.com/apache/cloudstack-go/v2/test 0.007s
   ```
   And it successfully ran. 
   
   Just to validate if the test was actually being run, I tried to change the 
response structure to :
   ```
     "registerUserKeys": {
       "registeruserkeysresponse": {
           "apikey": 
"hNfJi2dO5kwD6gTtYoifqu_4CSI3FcTtxc4MydW24PdJalv8mfTGsf425twAdLrIKX5IewfqIfYDEumO6-yRaw",
           "secretkey": 
"zV8kAYlyY4H-rEDO-Ot-VVPjKteVcU4haQcdRarte9wuOUhko3uzcnnFqNii8xifcpbe0eWR6IHAXjVGB2m1Hw"
       } 
     }
   ``
   And on re-running the test it failed - indicating that the test runs fine:
   ```
   /sb/cloudstack-go$ /usr/local/go/bin/go test -timeout 30s -run 
^TestUserService$/^RegisterUserKeys$ github.com/apache/cloudstack-go/v2/test
   --- FAIL: TestUserService (0.00s)
       --- FAIL: TestUserService/RegisterUserKeys (0.00s)
           UserService_test.go:180: json: cannot unmarshal string into Go value 
of type cloudstack.RegisterUserKeysResponse
   FAIL
   FAIL github.com/apache/cloudstack-go/v2/test 0.007s
   FAIL
   ```
   Can you please let us know if there's anything different that needs to be 
done.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to