virendrawali opened a new issue #83:
URL: https://github.com/apache/airavata-custos/issues/83


   I have a few queries regarding the agent management client:
   
   **1. What is an agent?**
   **2. In the agent management client samples, a username and password is used 
to get a token. Can we obtain some username and password for running our test 
cases**
   
   ```
   def register_and_enable():
       agent = {
           "id": "agent-asdasda-ebnmvf",
           "realm_roles": [],
           "attributes": [{
               "key": "agent_cluster_id",
               "values": ["123123131"]
           }]
       }
       id_res = id_client.token(token, username="isjarana", 
password="Custos1234", grant_type="password")
       response = client.register_and_enable_agent(id_res['access_token'], 
agent)
       print(response)
   
   register_and_enable()
   ```
   
   **What credentials can we use for running a similar code in test case?**


----------------------------------------------------------------
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:
[email protected]


Reply via email to