mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-22 12:50:22 -07:00
Run vyos_command Network tests in Shippable (#24514)
* Run VyOS Network tests in Shippable * net_command no longer exists * network/ci * Disable other network tests * pep8 fix * Fix PEP 8 issue.
This commit is contained in:
parent
e56c418d9d
commit
e9e2d67035
30 changed files with 14 additions and 505 deletions
|
@ -320,6 +320,7 @@ def network_inventory(remotes):
|
|||
ansible_user=remote.connection.username,
|
||||
ansible_ssh_private_key_file=remote.ssh_key.key,
|
||||
ansible_network_os=remote.platform,
|
||||
ansible_connection='local'
|
||||
)
|
||||
|
||||
groups[remote.platform].append(
|
||||
|
|
|
@ -73,17 +73,23 @@ class ManageNetworkCI(object):
|
|||
"""Wait for instance to respond to ansible ping."""
|
||||
extra_vars = [
|
||||
'ansible_host=%s' % self.core_ci.connection.hostname,
|
||||
'ansible_user=%s' % self.core_ci.connection.username,
|
||||
'ansible_port=%s' % self.core_ci.connection.port,
|
||||
'ansible_connection=local',
|
||||
'ansible_ssh_private_key_file=%s' % self.core_ci.ssh_key.key,
|
||||
'ansible_network_os=%s' % self.core_ci.platform,
|
||||
]
|
||||
|
||||
name = '%s-%s' % (self.core_ci.platform, self.core_ci.version.replace('.', '_'))
|
||||
|
||||
env = ansible_environment(self.core_ci.args)
|
||||
cmd = ['ansible', '-m', 'net_command', '-a', '?', '-i', '%s,' % name, name, '-e', ' '.join(extra_vars)]
|
||||
cmd = [
|
||||
'ansible',
|
||||
'-m', '%s_command' % self.core_ci.platform,
|
||||
'-a', 'commands=?',
|
||||
'-u', self.core_ci.connection.username,
|
||||
'-i', '%s,' % name,
|
||||
'-e', ' '.join(extra_vars),
|
||||
name,
|
||||
]
|
||||
|
||||
for _ in range(1, 90):
|
||||
try:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue