mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 13:52:54 +00:00
Overhaul ansible-test cloud test plugins. (#53044)
This commit is contained in:
@@ -7,6 +7,7 @@ import os
|
||||
from . import (
|
||||
CloudProvider,
|
||||
CloudEnvironment,
|
||||
CloudEnvironmentConfig,
|
||||
)
|
||||
|
||||
from ..util import (
|
||||
@@ -174,12 +175,18 @@ class NiosEnvironment(CloudEnvironment):
|
||||
|
||||
Updates integration test environment after delegation.
|
||||
"""
|
||||
|
||||
def configure_environment(self, env, cmd):
|
||||
def get_environment_config(self):
|
||||
"""
|
||||
:type env: dict[str, str]
|
||||
:type cmd: list[str]
|
||||
:rtype: CloudEnvironmentConfig
|
||||
"""
|
||||
ansible_vars = dict(
|
||||
nios_provider=dict(
|
||||
host=self._get_cloud_config('NIOS_HOST'),
|
||||
username='admin',
|
||||
password='infoblox',
|
||||
),
|
||||
)
|
||||
|
||||
# Send the container IP down to the integration test(s)
|
||||
env['NIOS_HOST'] = self._get_cloud_config('NIOS_HOST')
|
||||
return CloudEnvironmentConfig(
|
||||
ansible_vars=ansible_vars,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user