summaryrefslogtreecommitdiffstats
path: root/moonclient/moonclient/tests/tests_change_auth.json
blob: 38d1d134a85447c62c26afa30e13fe8d9acfd70d (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
{
  "command_options": "-f value",
  "tests_group": {
    "authz": [

      {
        "auth_name": "demo",
        "description": "Change user to demo"
      },

      {
        "name": "list tenant",
        "command": "tenant list",
        "result": "^$",
        "description": "Check if user demo cannot read the list of all tenants."
      },

      {
        "auth_name": "admin",
        "description": "Change user to admin"
      },

      {
        "name": "list tenant",
        "command": "tenant list",
        "result": "admin",
        "description": "Check if user admin can read the list of all tenants."
      }

    ]
  }
}