Skip to content

parallel execution for multiple servers #714

Open
@TheKushIsGood

Description

@TheKushIsGood

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions