Пример #1
0
 def test_avi_to_ansible_delete(self, cleanup):
     obj = AviAnsibleConverter(avi_cfg, outdir)
     obj.write_ansible_playbook()
     assert outdir + '/avi_config_delete.yml'
     file = outdir + '/avi_config_delete.yml'
     output = subprocess.check_output('/usr/local/bin/ansible-playbook '
                                      '%s --extra-vars "controller=%s username=%s password=%s"'
                                      % (file, setup.get('controller_ip'), setup.get('controller_user'),
                                         setup.get('controller_password')), shell=True)
Пример #2
0
 def test_avi_to_ansible_delete(self, cleanup):
     obj = AviAnsibleConverter(avi_cfg, outdir)
     obj.write_ansible_playbook()
     assert outdir + '/avi_config_delete.yml'
     file = outdir + '/avi_config_delete.yml'
     output = subprocess.check_output(
         '/usr/local/bin/ansible-playbook '
         '-s %s --extra-vars "controller=%s username=%s password=%s"' %
         (file, '10.10.29.206', 'admin', 'avi123$%'),
         shell=True)
Пример #3
0
 def test_avi_to_ansible_delete(self, cleanup):
     obj = AviAnsibleConverter(avi_cfg, outdir)
     obj.write_ansible_playbook()
     assert outdir + '/avi_config_delete.yml'
     file = outdir + '/avi_config_delete.yml'
     output = subprocess.check_output(
         '/usr/local/bin/ansible-playbook '
         '%s --extra-vars "controller=%s username=%s password=%s"' %
         (file, setup.get('controller_ip'), setup.get('controller_user'),
          setup.get('controller_password')),
         shell=True)
Пример #4
0
 def test_avi_to_ansible_playbook_conv(self, cleanup):
     obj = AviAnsibleConverter(avi_cfg, outdir)
     obj.write_ansible_playbook()
     assert outdir + '/avi_config.yml'
     assert outdir + '/avi_config_delete.yml'
Пример #5
0
 def test_avi_to_ansible_conv(self, cleanup):
     obj = AviAnsibleConverter(avi_cfg, outdir)
     obj.write_yaml()
     assert outdir + '/ansible_avi_config.yml'
Пример #6
0
 def test_avi_to_ansible_playbook_conv(self, cleanup):
     obj = AviAnsibleConverter(avi_cfg, outdir)
     obj.write_ansible_playbook()
     assert outdir + '/avi_config.yml'
     assert outdir + '/avi_config_delete.yml'
Пример #7
0
 def test_avi_to_ansible_conv(self, cleanup):
     obj = AviAnsibleConverter(avi_cfg, outdir)
     obj.write_yaml()
     assert outdir + '/ansible_avi_config.yml'