Execution of python code on remote machines

576 views Asked by At

I'm building a testing suite using Python Pytest library, my challenge is that I want to run the test on remote windows machines without the overhead of deploying my python code on those remote machines.

Current Solution:

Using Jenkins I'm cloning the tests repository from bit bucket to the remote machine , and then using a PowerShell command through WINRM triggering the execution of the pytest script on the remote machine.

Desired Solution: The pytest code/repository will reside on a machine (local/cloud) and will execute on remote windows machines (possibly in parallel on multiple machines)

I've investigated the paramiko/factory packages but they both require the code to be present on the remote machines.

Anyone encountered similar requirement ? implemented something similar?

1

There are 1 answers

0
hermes On

you can try a pub-sub mechanism with aws ssm