add AP model matrix (#205)

This commit is contained in:
Max
2021-09-30 17:18:15 +02:00
committed by GitHub
parent 3e983c7f04
commit b1b667cebe
3 changed files with 68 additions and 88 deletions

View File

@@ -23,13 +23,13 @@ def main():
if service.ServiceName != 'Helm Service V2':
continue
config['controller']['url'] = f'https://sec-ucentral-{res_id.split("-")[0]}.cicd.lab.wlan.tip.build:16001'
config['controller']['url'] = f'https://sec-{res_id.split("-")[0]}.cicd.lab.wlan.tip.build:16001'
config['controller']['username'] = next(attr.Value for attr in service.Attributes if attr.Name == f'{service.ServiceName}.User')
#config['controller']['password'] = next(attr.Value for attr in service.Attributes if attr.Name == f'{service.ServiceName}.Password')
config['controller']['password'] = 'openwifi'
for resource in resources_in_reservation:
if resource.ResourceModelName == 'Ap':
if resource.ResourceModelName == 'ApV2':
details = session.GetResourceDetails(resource.Name)
ap_config = {}

View File

@@ -11,11 +11,11 @@ run_id = os.environ.get('GITHUB_RUN_NUMBER', 1)
def main():
parser = argparse.ArgumentParser()
parser.add_argument('--ucentral-version', default='main')
parser.add_argument('--ucentral-gw-version', default='master')
parser.add_argument('--ucentral-sec-version', default='main')
parser.add_argument('--ucentral-fms-version', default='main')
parser.add_argument('--ucentral-ui-version', default='main')
parser.add_argument('--openwifi-version', default='main')
parser.add_argument('--openwifi-gw-version', default='master')
parser.add_argument('--openwifi-sec-version', default='main')
parser.add_argument('--openwifi-fms-version', default='main')
parser.add_argument('--openwifi-ui-version', default='main')
parser.add_argument('--ap-model', default='EC420')
parser.add_argument('--wifi-type', default='Wifi5')
args = parser.parse_args()
@@ -28,11 +28,11 @@ def main():
durationInMinutes=360,
topologyFullPath='Basic Lab',
globalInputs=[
UpdateTopologyGlobalInputsRequest('Chart Version', args.ucentral_version),
UpdateTopologyGlobalInputsRequest('ucentralgw Version', args.ucentral_gw_version),
UpdateTopologyGlobalInputsRequest('ucentralsec Version', args.ucentral_sec_version),
UpdateTopologyGlobalInputsRequest('ucentralfms Version', args.ucentral_fms_version),
UpdateTopologyGlobalInputsRequest('ucentralgwui Version', args.ucentral_ui_version),
UpdateTopologyGlobalInputsRequest('Chart Version', args.openwifi_version),
UpdateTopologyGlobalInputsRequest('owgw Version', args.openwifi_gw_version),
UpdateTopologyGlobalInputsRequest('owsec Version', args.openwifi_sec_version),
UpdateTopologyGlobalInputsRequest('owfms Version', args.openwifi_fms_version),
UpdateTopologyGlobalInputsRequest('owgwui Version', args.openwifi_ui_version),
UpdateTopologyGlobalInputsRequest('AP Model', args.ap_model),
UpdateTopologyGlobalInputsRequest('Wifi type', args.wifi_type),
]