Skip to content

Commit f0f0a4a

Browse files
committed
fix resource_limit tests
1 parent 0532f5a commit f0f0a4a

File tree

2 files changed

+15
-15
lines changed

2 files changed

+15
-15
lines changed

tests/integration/targets/resource_limit/tasks/instance.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
- name: setup instance limits account
3-
cs_resourcelimit:
3+
ngine_io.cloudstack.resource_limit:
44
type: instance
55
limit: 20
66
account: "{{ cs_resource_prefix }}_user"
@@ -16,7 +16,7 @@
1616
- rl.resource_type == "instance"
1717

1818
- name: set instance limits for domain in check mode
19-
cs_resourcelimit:
19+
ngine_io.cloudstack.resource_limit:
2020
type: instance
2121
limit: 12
2222
domain: "{{ cs_resource_prefix }}-domain"
@@ -31,7 +31,7 @@
3131
- rl.resource_type == "instance"
3232

3333
- name: set instance limits for domain
34-
cs_resourcelimit:
34+
ngine_io.cloudstack.resource_limit:
3535
type: instance
3636
limit: 12
3737
domain: "{{ cs_resource_prefix }}-domain"
@@ -45,7 +45,7 @@
4545
- rl.resource_type == "instance"
4646

4747
- name: set instance limits for domain idempotence
48-
cs_resourcelimit:
48+
ngine_io.cloudstack.resource_limit:
4949
type: instance
5050
limit: 12
5151
domain: "{{ cs_resource_prefix }}-domain"
@@ -59,7 +59,7 @@
5959
- rl.resource_type == "instance"
6060

6161
- name: set instance limits for account in check mode
62-
cs_resourcelimit:
62+
ngine_io.cloudstack.resource_limit:
6363
type: instance
6464
limit: 10
6565
account: "{{ cs_resource_prefix }}_user"
@@ -76,7 +76,7 @@
7676
- rl.resource_type == "instance"
7777

7878
- name: set instance limits for account
79-
cs_resourcelimit:
79+
ngine_io.cloudstack.resource_limit:
8080
type: instance
8181
limit: 10
8282
account: "{{ cs_resource_prefix }}_user"
@@ -92,7 +92,7 @@
9292
- rl.resource_type == "instance"
9393

9494
- name: set instance limits for account idempotence
95-
cs_resourcelimit:
95+
ngine_io.cloudstack.resource_limit:
9696
type: instance
9797
limit: 10
9898
account: "{{ cs_resource_prefix }}_user"

tests/integration/targets/resource_limit/tasks/main.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
---
22
- name: setup domain
3-
cs_domain: path={{ cs_resource_prefix }}-domain
3+
ngine_io.cloudstack.domain: path={{ cs_resource_prefix }}-domain
44
register: dom
55
- name: verify setup domain
66
assert:
77
that:
88
- dom is successful
99

1010
- name: setup account
11-
cs_account:
11+
ngine_io.cloudstack.account:
1212
name: "{{ cs_resource_prefix }}_user"
1313
username: "{{ cs_resource_prefix }}_username"
1414
password: "{{ cs_resource_prefix }}_password"
@@ -24,7 +24,7 @@
2424
- acc is successful
2525

2626
- name: test failed unkonwn type
27-
cs_resourcelimit:
27+
ngine_io.cloudstack.resource_limit:
2828
type: unkonwn
2929
limit: 20
3030
domain: "{{ cs_resource_prefix }}-domain"
@@ -36,7 +36,7 @@
3636
- rl is failed
3737

3838
- name: test failed missing type
39-
cs_resourcelimit:
39+
ngine_io.cloudstack.resource_limit:
4040
register: rl
4141
ignore_errors: true
4242
- name: verify test failed missing type
@@ -45,7 +45,7 @@
4545
- rl is failed
4646

4747
- name: setup resource limits domain
48-
cs_resourcelimit:
48+
ngine_io.cloudstack.resource_limit:
4949
type: instance
5050
limit: 10
5151
domain: "{{ cs_resource_prefix }}-domain"
@@ -58,7 +58,7 @@
5858
- rl.limit == 10
5959

6060
- name: set resource limits domain to 20 in check mode
61-
cs_resourcelimit:
61+
ngine_io.cloudstack.resource_limit:
6262
type: instance
6363
limit: 20
6464
domain: "{{ cs_resource_prefix }}-domain"
@@ -73,7 +73,7 @@
7373
- rl.limit == 10
7474

7575
- name: set resource limits domain to 20
76-
cs_resourcelimit:
76+
ngine_io.cloudstack.resource_limit:
7777
type: instance
7878
limit: 20
7979
domain: "{{ cs_resource_prefix }}-domain"
@@ -87,7 +87,7 @@
8787
- rl.limit == 20
8888

8989
- name: set resource limits domain to 20 idempotence
90-
cs_resourcelimit:
90+
ngine_io.cloudstack.resource_limit:
9191
type: instance
9292
limit: 20
9393
domain: "{{ cs_resource_prefix }}-domain"

0 commit comments

Comments
 (0)