summaryrefslogtreecommitdiffstats
path: root/huawei/vnfmadapter/VnfmadapterService/service/src/integration-test/resources/vnfmadapter/mocoserver/addauthinfo.json
blob: cd4398bddc3467155368ac87bae6d2ac1f5cbfdd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
{
    "request": {
        "uri": "/rest/vnfmmed/v2/auth/tokens",
        "method": "post",
        "headers": {
            "Content-Type": "application/json;charset=UTF-8"
        },
        "json": {
            "auth": {
                "identity": {
                    "methods": ["password"],
                    "password": {
                          "user": {
                                "name": "admin",
                                "password": "User@123"
                          }
                    }
                }
            }
        }        
    },
    "response": {
        "status": 201,
        "json": {
              "token": {
                  "methods": ["password"],
                  "expires_at": "",
                  "user": {
                      "id": "admin",
                      "name": "admin"
                  },
                  "roa_rand": "RoaRand"
              }
        }
    }
}