mirror of
https://github.com/Telecominfraproject/wlan-testing.git
synced 2025-10-30 02:22:44 +00:00
add Quali python scripts (#41)
Signed-off-by: Max Brenner <xamrennerb@gmail.com>
This commit is contained in:
22
.quali/start_reservation.py
Normal file
22
.quali/start_reservation.py
Normal file
@@ -0,0 +1,22 @@
|
||||
import os
|
||||
|
||||
from common import wait_for_reservation_status, get_session
|
||||
|
||||
run_id = os.environ.get('GITHUB_RUN_NUMBER', 1)
|
||||
|
||||
def main():
|
||||
session = get_session()
|
||||
|
||||
reservation = session.CreateImmediateTopologyReservation(
|
||||
reservationName=f'sanity-{run_id}',
|
||||
owner=session.username,
|
||||
durationInMinutes=60,
|
||||
topologyFullPath='API TESTING'
|
||||
).Reservation
|
||||
|
||||
print(reservation.Id)
|
||||
|
||||
wait_for_reservation_status(session, reservation.Id, 'Ready')
|
||||
|
||||
if __name__ == '__main__':
|
||||
main()
|
||||
Reference in New Issue
Block a user