mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
Move test_os_server and apply fixes.
- Add missing meta value for test_create_server - Add .gitignore for pytest .cache directory Exclude test_os_server from nose test runs since it was designed for pytest. The test will work correctly when run using pytest. This is a temporary issue, as we'll be moving to pytest soon.
This commit is contained in:
0
test/units/modules/core/cloud/openstack/__init__.py
Normal file
0
test/units/modules/core/cloud/openstack/__init__.py
Normal file
@@ -4,7 +4,7 @@ import yaml
|
||||
import inspect
|
||||
import collections
|
||||
|
||||
from cloud.openstack import os_server
|
||||
from ansible.modules.core.cloud.openstack import os_server
|
||||
|
||||
|
||||
class AnsibleFail(Exception):
|
||||
@@ -180,6 +180,8 @@ class TestCreateServer(object):
|
||||
flavor: m1.tiny
|
||||
nics:
|
||||
- net-name: network1
|
||||
meta:
|
||||
- key: value
|
||||
'''
|
||||
with pytest.raises(AnsibleExit):
|
||||
os_server._create_server(self.module, self.cloud)
|
||||
Reference in New Issue
Block a user