cs_serviceoffer: remove unused code and improve test coverage (#33276)

This commit is contained in:
René Moser 2017-11-25 11:58:38 +01:00 committed by GitHub
commit 1f9e84fdd4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 30 additions and 18 deletions

View file

@ -10,6 +10,26 @@
that:
- so|success
- name: fail missing storage type and is_system
cs_serviceoffer:
name: System Offering for Ansible
cpu_number: 1
cpu_speed: 500
memory: 512
host_tag: perf
storage_tag: perf
storage_type: shared
offer_ha: true
limit_cpu_usage: false
is_system: true
register: so
ignore_errors: true
- name: verify create system service offering in check mode
assert:
that:
- so|failed
- so.msg.startswith('missing required arguments:')
- name: create system service offering in check mode
cs_serviceoffer:
name: System Offering for Ansible