parallel execution for multiple servers

Abierto
#714 1 comentario 1 reacción 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
5/5
Tiempo estimado
Más de una semana
Aptitud para principiantes
18/100
Tipo de issue
Nueva funcionalidad
Claridad
Necesita aclaración
Estado de actividad
Estancado
Stack tecnológico
azure, gcp, python

Línea de trabajo

The issue names no repository files or tests; start with the inline unittest.TestCase, setUp method, and testinfra.get_host entry point. Determine whether parallel checks across multiple GCP and Azure servers are intended to be supported, and define done as a documented, tested way to run those checks concurrently.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

question

I have few hundred small GCP, Azure servers. I want to run some basic tests against them. Is there a way to parallelize my tests? Each test test less than a few ms, but I have hundreds of checks I need to run.

My code looks like this

import unittest
import testinfra

class Test(unittest.TestCase):
    def setUp(self):
        self.host = testinfra.get_host("paramiko://user@localhost")

    def test_foo_config(self):
        self.assertEqual(self.host.run("/tmp/f.sh").rc,0)


if __name__=="__main__":
    unittest.main()

Any help in organizing code, tips, and recommendations would be much appreciated.

Great tool BTW

Lenguaje dominante
Python
Estrellas
2.5k
Forks
359
Métricas de merge de PR
Sin PR fusionados en 30 d

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de pytest-dev/pytest-testinfra

Todos los issues de pytest-dev/pytest-testinfra

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.