mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-30 14:21:26 -07:00
Add support for cloud tests to ansible-test. (#24315)
* Split out ansible-test docker functions. * Add cloud support to ansible-test.
This commit is contained in:
parent
986765312f
commit
a07d42e16d
19 changed files with 1059 additions and 135 deletions
|
@ -17,6 +17,7 @@ class Metadata(object):
|
|||
def __init__(self):
|
||||
"""Initialize metadata."""
|
||||
self.changes = {} # type: dict [str, tuple[tuple[int, int]]
|
||||
self.cloud_config = None # type: dict [str, str]
|
||||
|
||||
def populate_changes(self, diff):
|
||||
"""
|
||||
|
@ -45,6 +46,7 @@ class Metadata(object):
|
|||
"""
|
||||
return dict(
|
||||
changes=self.changes,
|
||||
cloud_config=self.cloud_config,
|
||||
)
|
||||
|
||||
def to_file(self, path):
|
||||
|
@ -77,5 +79,6 @@ class Metadata(object):
|
|||
"""
|
||||
metadata = Metadata()
|
||||
metadata.changes = data['changes']
|
||||
metadata.cloud_config = data['cloud_config']
|
||||
|
||||
return metadata
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue