*** Variables ***
${NFVO_HOST}      localhost    # Hostname of the NFVO
${NFVO_PORT}      8081    # Listening port of the NFVO
${NFVO_SCHEMA}    https

${AUTHORIZATION_HEADER}    Authorization
${AUTHORIZATION_TOKEN}    Bearer 0b79bab50daca910b000d4f1a2b675d604257e42

${OAUTH_ENCRIPTION_ALGORITHM}    HS256
${NSINSTANCE_PERMITTED_SCOPE}    nslcm:v2:ns_instance 
${NSINSTANCE_NOT_PERMITTED_SCOPE}    nslcm:v2:ns_instance:readonly
${INSTANTIATE_PERMITTED_SCOPE}    nslcm:v2:instantiate
${SCALE_PERMITTED_SCOPE}    nslcm:v2:scale
${UPDATE_PERMITTED_SCOPE}    nslcm:v2:update
${HEAL_PERMITTED_SCOPE}    nslcm:v2:heal
${TERMINATE_PERMITTED_SCOPE}    nslcm:v2:tearminate
${OPOCCS_PERMITTED_SCOPE}    nslcm:v2:op_occs
${OPOCCS_NOT_PERMITTED_SCOPE}    nslcm:v2:op_occs:readonly
${SUBSCRIPTIONS_PERMITTED_SCOPE}    nslcm:v2:subscriptions
${SNAPSHOT_PERMITTED_SCOPE}    nslcm:v2:subscriptions
${NOT_PERMITTED_SCOPE}    nslcm:v2:invalid

################################################################################################
##### THIS VARIABLE BELOW ALLOWS TO SKIP INTERMEDIATE LIFEFYCLE OP OCC INTERMEDIATE CHECKS #####
##### IT IS INTENDED TO BE A KNOWN DEVIATION FROM STANDARDS                                #####

${SKIP_INTERMEDIATE_NOTIFICATION_CHECKS}    0

################################################################################################


${CONTENT_TYPE}    application/json
${ACCEPT_JSON}         application/json
${ACCEPT}         application/json
${CONTENT_TYPE_PATCH}    application/merge-patch+json
${apiRoot}        /
${apiName}        nslcm
${apiMajorVersion}     v2
${AUTH_USAGE}     1
${nsInstanceId}       6fc3539c-e602-4afa-8e13-962fb5a7d81f
${nsdId}                58a7beb6-aa89-405e-bd90-7d276b967c03
${disabledNsdId}        fca7c896-a7d0-4ff8-865e-f5c8ee2fd1c3
${nonExistentNsId}      nonExistent
${ConflictNsInstanceId}    007c111c-e602-4afa-8e13-962fb5a7d81d
${nsInstanceName}    Test-nsInstance
${nsInstanceDescription}    description ns
${nsFlavourId}      0
${nsDegreeHealing}      HEAL_RESTORE
${vimAccountId}      	931f6a4d-6a97-43f3-a6f0-13853ef577ea
${nsLcmOpOccId}    6fc3539c-e602-4afa-8e13-962fb5a7d81d
${nsLcmOpOccId_scheduledOp_notStarted}    6fc3539c-e602-4afa-8e13-962fb5a7d81d
${nsLcmOpOccId_scheduledOp_alreadyStarted}    6fc3539c-e602-4afa-8e13-962fb5a7d81d
${NFVO_DUPLICATION}    0
${sub_filter}    id=41fdd38a-3d4c-465c-83e0-f80e014425f8
${sub_filter_invalid}    nfvid=41fdd38a-3d4c-465c-83e0-f80e014425f8
${fields_sub}    filter
${fields_nsInstances}         monitoringParameter,wanConnectionInfo
${POS_filter_nsInstances}    id=41fdd38a-3d4c-465c-83e0-f80e014425f8
${NEG_filter_nsInstances}    nfvid=41fdd38a-3d4c-465c-83e0-f80e014425f8 

${schedule_for_new_operation_start}    2023-05-12T07:20:50.52Z

${fields_nsLcmOpOcc}    cancelMode,error
${POS_filter_nsLcmOpOcc}    id=41fdd38a-3d4c-465c-83e0-f80e014425f8
${NEG_filter_nsLcmOpOcc}    nfvid=41fdd38a-3d4c-465c-83e0-f80e014425f8 
   
${subscriptionId}    6fc3539c-e602-4afa-8e13-962fb5a7d81f
${vnfInstanceId}    id-of-new-vnf-instance-for-UPDATE-NS-Task
${instantiationLevelId}     myNextLevel

${scaleType}        SCALE_VNF
${scaleTimeout}     1
${scaleVnfType}     SCALE_IN
${scaleGroupDescriptor}     myScalingGroup
${scaleMemberVnfIndex}     1

${callback_port}    9091
${callback_uri}    http://localhost
${callback_endpoint}    /endpoint
${callback_endpoint_fwd}    /endpoint/check
${sleep_interval}    20s
${total_polling_time}   2 min
${polling_interval}     10 sec

${notification_request}    {}
${notification_response}    {}

${MOCK_SERVER_JAR}    ../../../bin/mockserver-netty-5.5.0-jar-with-dependencies.jar

${response}    {}

${Etag}=    an etag
${NEG_SELECTOR}    fields=wrong_field
${json}    {"notificationStatus": ""}

${POS_FILTER_snapshot}     id=41fdd38a-3d4c-465c-83e0-f80e014425f8   # Positive case, suing compiant fields name for filtering get request
${NEG_FILTER_snapshot}     nfvId=41fdd38a-3d4c-465c-83e0-f80e014425f8    # Negative case, using wrong name of field
${fields_snapshot}    vnfSnapshot

${vnfSnapshotInfoId}
${vnfSnapshotInfoId_InUse}    snapshotId-of-a-resource-AlreadyInUse-bySomeOther-operation
${invalidVnfSnapshotInfoId}    invalid-or-nonexistent-vnfSnapshotInforId    

${PAGING_SUPPORTED}    1

${callbackResp}    127.0.0.1

${check_descriptors}    1
${descriptorType}    SOL006

#############internal variables used for descriptor parsing################
${tosca_type_VDU_compute}    tosca.nodes.nfv.Vdu.Compute
${tosca_type_VNF}    tosca.nodes.nfv.VNF
${tosca_type_virtual_link}    tosca.nodes.nfv.VnfVirtualLink
${tosca_type_VDU_cp}    tosca.nodes.nfv.VduCp
${tosca_type_storage}    tosca.nodes.nfv.Vdu.VirtualBlockStorage
${tosca_type_derived_from_VNF}

${tosca_type_NS}    tosca.nodes.nfv.NS
${tosca_type_NsVirtualLink}    tosca.nodes.nfv.NsVirtualLink
${tosca_type_NsCP}    tosca.nodes.nfv.Cp
  
${VDU_IDs}
${CP_IDs}
${Storage_IDs}
${internalCP_IDs}
${externalCP_IDs}
${InstantiationLevel_IDs}

${NS_VirtualLink_IDs}

${SAP_IDs}

${NS_DescriptorID}
${Designer}
${NS_Name}
${NS_Version}

${Descriptor_ID}
${Provider}
${Product_Name}
${Software_Version}
${Descriptor_Version}
${Flavour_ID}

${invalid_etag}=    invalid etag
${PRODUCER_SUPPORT_COND_REQ}    1