waft.test_resource_manager.trm module

TRM core functionality for managing organizations.

class waft.test_resource_manager.trm.Trm

Bases: object

Test resource manager. Note this is just a conceptual stand in until TRM is designed in full.

dynamic_org_trm_auth_token: str = 'fnmt3g78t7tzpof4s0ehkhc3oame8ydf'
classmethod get_dynamic_org() TrmOrganization

Reserve and return the details of a dynamically managed org.

Returns:

object with reserved account details

Return type:

TrmOrganization

classmethod get_org_by_account_id(account_id: str) TrmOrganization

Get the details of a registered org by its account ID.

Returns:

object with registered account details

Return type:

TrmOrganization

classmethod get_org_by_name(org_name: str) TrmOrganization

Get the details of a registered org by its name.

Returns:

object with registered account details

Return type:

TrmOrganization

registered_orgs: list[TrmOrganization] = [TrmOrganization(id='2f50d216dfc261dbd562dde5d61d8f95.access', account='fa6f75aeb90e49bea7fea4a62e6b33a3', name='AutoWARP', team_domain='autowarp'), TrmOrganization(id='5876667137465a642018a962f8eb9d59.access', account='4ec5857cf3a9959b29ee458c50c84f8c', name='AutoWARPc', team_domain='autowarpc'), TrmOrganization(id='e1b0596a8027a94f4398a013eb878559.access', account='6d4c4540e6836b4a7875d67a73fc436a', name='AutoWARPe', team_domain='autowarpe'), TrmOrganization(id='696e343ba32b94812b33c152100e2f71.access', account='413df57cc7ef0b4a8bdbe29abca66f26', name='WAFT Test Device Profiles', team_domain='wafttestdeviceprofiles')]