aboutsummaryrefslogtreecommitdiffstats
path: root/moonclient/moonclient/tests/tests_external_commands.json
blob: 0aa6f704daaa44bb6f41ccb5237fd329bf068adf (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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
{
  "command_options": "-f value",
  "tests_group": {
    "main": [
      {
        "name": "list tenant",
        "command": "tenant list",
        "result": "(?!demo)",
        "description": "List all tenants (must be empty)"
      },
      {
        "name": "add tenant demo",
        "command": "tenant add demo",
        "result": "^$",
        "description": "Add a new tenant",
        "command_options": ""
      },
      {
        "name": "check tenant demo",
        "command": "tenant list",
        "result": "(?P<uuid>\\w+)\\s+demo",
        "description": "Check that tenant demo has been correctly added"
      },
      {
        "name": "create_intraextension_admin",
        "command": "intraextension add --policy_model policy_rbac_admin admin_test",
        "result": "IntraExtension created: (?P<uuid_admin>\\w+)",
        "description": "Create an admin intra extension",
        "command_options": ""
      },
      {
        "name": "list_intraextension_admin",
        "command": "intraextension list",
        "result": "$uuid_admin",
        "description": "Check the existence of that admin intra extension"
      },
      {
        "name": "create_intraextension_authz",
        "command": "intraextension add --policy_model policy_authz authz_test",
        "result": "IntraExtension created: (?P<uuid_authz>\\w+)",
        "description": "Create an authz intra extension",
        "command_options": ""
      },
      {
        "name": "list_intraextension_authz",
        "command": "intraextension list",
        "result": "$uuid_authz",
        "description": "Check the existence of that authz intra extension"
      },
      {
        "name": "set_tenant_authz",
        "command": "tenant set --authz $uuid_authz $uuid",
        "result": "",
        "description": "Connect the authz intra extension to the tenant demo",
        "command_options": ""
      },
      {
        "name": "check authz ie for tenant demo",
        "command": "tenant list",
        "result": "demo $uuid_authz",
        "description": "Check that authz ie has been correctly added for tenant demo ",
        "command_options": "-c name -c intra_authz_extension_id -f value"
      },
      {
        "name": "set_tenant_admin",
        "command": "tenant set --admin $uuid_admin $uuid",
        "result": "",
        "description": "Connect the admin intra extension to the tenant demo",
        "command_options": ""
      },
      {
        "name": "check admin ie for tenant demo",
        "command": "tenant list",
        "result": "demo $uuid_admin",
        "description": "Check that admin ie has been correctly added for tenant demo ",
        "command_options": "-c name -c intra_admin_extension_id -f value"
      },

      {
        "name": "check nova command",
        "external_command": "nova list",
        "result": "\\| (?P<uuid_server>[\\w\\-]+)\\s+\\| (?P<name_server>\\w+)\\s+\\| ACTIVE\\s+\\| [\\w\\-]+\\s+\\| Running",
        "description": "Check that nova is running and get the ID of one running server"
      },

      {
        "name": "delete_admin_intra_extension",
        "command": "intraextension delete $uuid_admin",
        "result": "",
        "description": "Delete the admin intra extension",
        "command_options": ""
      },
      {
        "name": "delete_authz_intra_extension",
        "command": "intraextension delete $uuid_authz",
        "result": "",
        "description": "Delete the authz intra extension",
        "command_options": ""
      },
      {
        "name": "delete_tenant",
        "command": "tenant delete $uuid",
        "result": "",
        "description": "Delete the tenant demo",
        "command_options": ""
      }
    ]
  }
}