mirror of
https://github.com/Telecominfraproject/wlan-testing.git
synced 2025-10-29 18:12:34 +00:00
23 lines
520 B
Python
23 lines
520 B
Python
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()
|