weizhouapache commented on pull request #70:
URL: 
https://github.com/apache/cloudstack-cloudmonkey/pull/70#issuecomment-783371982


   tested ok.
   
   1. if /root/.cmk/config does not exist, and it is passed
   ```
   # bin/cmk -c /root/.cmk/config list accounts filter=id
   Config file doesn't exist.
   ```
   2. if /root/.cmk/config does not exist, but not passed.  following command 
will create a new file
   ```
   # bin/cmk list accounts filter=id
   🙈 Error: failed to authenticate with the CloudStack server, please check the 
settings: Post "http://localhost:8080/client/api": dial tcp [::1]:8080: 
connect: connection refused
   ```
   3. use a pre-defined config
   ```
   # bin/cmk -c /root/.cmk/config.testcloud list accounts filter=id
   {
     "account": [
       {
         "id": "1648da77-c83e-4941-80eb-bd01028afbfb"
       }
     ],
     "count": 1
   }
   
   ```
   4. use a non-existing config file
   ```
   # bin/cmk -c /root/.cmk/config.nothing list accounts filter=id
   Config file doesn't exist.
   
   ```


----------------------------------------------------------------
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.

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


Reply via email to