summaryrefslogtreecommitdiffstats
path: root/kubernetes/cli
AgeCommit message (Expand)AuthorFilesLines
2020-12-01[CLI] Uses new tpls for repos / imagesSylvain Desbureaux3-3/+4
2020-11-30[CLI] set version back to 6.0.0Sylvain Desbureaux1-1/+1
2020-11-30[COMMON][DOC] Bump version GuilinSylvain Desbureaux3-3/+3
2020-11-05[CLI] Set Release version of GuilinKanagaraj Manickam1-1/+1
2020-10-21[CLI] change comment styleJakub Latusek3-0/+6
2020-09-04[GENERAL] Use readiness container v3.0.1Sylvain Desbureaux1-2/+1
2020-07-15[CLI] Add Kubernetes v1.17 compatibilitykwasiel1-1/+4
2020-05-06[CLI] Fix Ingress configurationSylvain Desbureaux1-1/+1
2020-04-29Change ingress hosnames for exposed servicesLucjan Bryndza1-2/+2
2020-04-16Add HTTPS ceritificate in CLI OOM chartsjitendra sharma3-0/+87
2020-04-16Set CLI version to 5.0.4Kanagaraj Manickam1-6/+6
2020-04-02Bump chart versionSylvain Desbureaux2-2/+2
2020-02-01[ONAP-wide] Replace .Release.Name with common.releaseKrzysztof Opasiak2-4/+4
2019-12-04Add ingress controler support to CLILucjan Bryndza2-0/+10
2019-07-11Moving Helm Chart version for El AltoMike Elliott2-2/+2
2019-05-29Update the CLI and VNFSDK dublin versionKanagaraj Manickam1-1/+1
2019-02-10Update Chart version for Dublin ReleaseMike Elliott2-2/+2
2018-10-23fixing clusterIP service type errorsMandeep Khinda1-1/+1
2018-10-18Sync docker tags with release manifestGary Wu1-1/+1
2018-09-25Updating charts to use common resource templateMandeep Khinda1-1/+1
2018-09-25adding unlimited resource limitMandeep Khinda1-10/+3
2018-09-24Update Chart versions to 3.0Mike Elliott2-2/+2
2018-09-20reducing resource request numbersMandeep Khinda1-4/+4
2018-09-18Fix: small definition missingrajeshkalai1-8/+15
2018-09-18Fix: change the global to application flavorrajeshkalai2-2/+2
2018-08-23License Task for VID,AAF,CLI,SNIROvaibhavjayas1-0/+14
2018-05-29Merge "Update CLI docker version for beijing"Mike Elliott1-1/+1
2018-05-24Update CLI docker version for beijingKanagaraj Manickam k003651061-1/+1
2018-05-17fixing nodeport collisions with sdncMandeep Khinda1-1/+1
2018-05-10Improve docker registry secret managementBorislavG1-1/+0
2018-05-08Set the docker version for CLI to beijingKanagaraj Manickam k003651061-1/+1
2018-05-08Merge "Set the propert CLI_MODE env"Mandeep Khinda1-1/+1
2018-05-06Fix inconsistent repository referencesBorislavG1-1/+1
2018-05-04Set the propert CLI_MODE envKanagaraj Manickam k003651061-1/+1
2018-04-16Update readiness-check versionBorislavG1-1/+1
2018-03-28CLI Configuration StandardizationPriyanka8-79/+234
2018-03-22License addition in all yamlsvaibhav_16dec4-0/+56
2018-03-01Run all components in one namespaceBorislavG2-2/+2
2018-01-18Exposed 8080 and 9090 ports in onap-cliEC2 Default User2-4/+9
2017-12-08Migrate to R1 released docker imagesAlexis de Talhouƫt1-1/+1
2017-10-29Add option to disable specific deploymentsyuryn2-0/+4
2017-09-14Deploment configuration for CLIsubhash kumar singh4-0/+59
>} Delete Config Map ${CONFIG_MAP_NAME} Remove File ${CONFIG_MAP_FILE} Delete Config Map [Arguments] ${configMapName} ${configMapDelete} = Run And Return Rc kubectl -n onap delete configmap ${configMapName} Should Be Equal As Integers ${configMapDelete} 0 Create Config Map From File [Arguments] ${configMapName} ${configMapFilePath} ${createConfigMapRC} = Run And Return Rc kubectl -n onap create configmap ${configMapName} --from-file=${configMapFilePath} Should Be Equal As Integers ${createConfigMapRC} 0 Wait Until Keyword Succeeds 1 min 5s Config Map Exists ${configMapName} Config Map Exists [Arguments] ${configMapName} ${configMapExists} = Run And Return Rc kubectl -n onap get configmap | grep ${configMapName} Should Be Equal As Integers ${configMapExists} 0 Get Pod Yaml [Arguments] ${compSpecName} ${podYaml} = Run And Return Rc And Output kubectl -n onap get pod $(kubectl get pod -n onap | grep ${compSpecName} | awk '{print $1}') -o yaml Should Be Equal As Integers ${podYaml[0]} 0 ${podYaml} = Set Variable ${podYaml[1]} [Return] ${podYaml} Get Content Of Mounted Folder Inside Container [Arguments] ${compSpecName} ${volumeMountPath} ${mountedFolderContent} = Run And Return Rc And Output kubectl -n onap exec $(kubectl get pod -n onap | grep ${compSpecName} | awk '{print $1}') -c ${compSpecName} -- ls ${volumeMountPath} Should Be Equal As Integers ${mountedFolderContent[0]} 0 ${mountedFolderContent} = Set Variable ${mountedFolderContent[1]} [Return] ${mountedFolderContent} Verify If Volume Is Mounted [Arguments] ${podYaml} ${volumeMountPath} Should Contain ${podYaml} ${volumeMountPath} Verify If Config Map Is Mounted As Volume [Arguments] ${podYaml} ${configMapName} Should Contain ${podYaml} ${configMapName} Verify If Mounted Folder Is Empty [Arguments] ${mountedFolderContent} Should Be Empty ${mountedFolderContent} Verify If Mounted Folder Contains File [Arguments] ${compSpecName} ${fileName} ${configMapDir} ${dirContent} = Run And Return Rc And Output kubectl -n onap exec $(kubectl get pod -n onap | grep ${compSpecName} | awk '{print $1}') -c ${compSpecName} -- ls ${configMapDir} Should Be Equal As Integers ${dirContent[0]} 0 Should Contain ${dirContent[1]} ${fileName} Verify File Content [Arguments] ${compSpecName} ${configMapFilePath} ${content} ${fileContent} = Run And Return Rc And Output kubectl -n onap exec $(kubectl get pod -n onap | grep ${compSpecName} | awk '{print $1}') -c ${compSpecName} -- cat ${configMapFilePath} Should Be Equal As Integers ${fileContent[0]} 0 Should Contain ${fileContent[1]} ${content} Verify If Component Is Onboarded [Arguments] ${compSpecName} ${session}= Create Session ${SESSION_NAME} ${DCAEMOD_ONBOARDING_API_SERVER} ${headers}= Create Dictionary content-type=application/json ${resp} = Get Request ${SESSION_NAME} /onboarding/components?name=${compSpecName} headers=${headers} Log ${resp.json()} Should Not Be Empty ${resp.json().get('components')} Onboard Component Spec [Arguments] ${componentSpec} ${dict_values} ${compSpecName} ${session}= Create Session ${SESSION_NAME} ${DCAEMOD_ONBOARDING_API_SERVER} ${headers}= Create Dictionary content-type=application/json Templating.Create Environment dcaemod ${GLOBAL_TEMPLATE_FOLDER} ${componentSpec}= Templating.Apply Template dcaemod ${componentSpec} ${dict_values} ${resp} = Post Request ${SESSION_NAME} /onboarding/components data=${componentSpec} headers=${headers} Should Be True ${resp.status_code} < 300 Wait Until Keyword Succeeds 2 min 5s Verify If Component Is Onboarded ${compSpecName} Log ${resp.json()} Add Registry Client ${session}= Create Session ${SESSION_NAME} ${DCAEMOD_DESIGNTOOL_SERVER} ${headers}= Create Dictionary content-type=application/json ${data} = Set Variable {"revision": {"version": 0}, "component": {"name": "registry_test", "uri": "http://dcaemod-nifi-registry:18080"}} ${resp} = Post Request ${SESSION_NAME} /nifi-api/controller/registry-clients data=${data} headers=${headers} Should Be True ${resp.status_code} < 300 Set Global Variable ${REGISTRY_CLIENT_ID} ${resp.json().get('id')} Set Global Variable ${REGISTRY_CLIENT_VERSION} ${resp.json().get('revision').get('version')} Add Distribution Target ${session}= Create Session distributor ${DCAEMOD_DISTRIBUTOR_API_SERVER} ${headers}= Create Dictionary content-type=application/json ${data} = Set Variable {"name": "runtime_test", "runtimeApiUrl": "http://dcaemod-runtime-api:9090"} ${resp} = Post Request distributor /distributor/distribution-targets data=${data} headers=${headers} Should Be True ${resp.status_code} < 300 Set Global Variable ${DISTRIBUTION_TARGET_ID} ${resp.json().get('id')} Create Process Group [Arguments] ${name} ${session}= Create Session ${SESSION_NAME} ${DCAEMOD_DESIGNTOOL_SERVER} ${headers}= Create Dictionary content-type=application/json ${resp} = Get Request ${SESSION_NAME} /nifi-api/flow/process-groups/root/ headers=${headers} Should Be True ${resp.status_code} < 300 Log ${resp.json()} ${parentGroupId} = Set Variable ${resp.json().get('processGroupFlow').get('id')} ${data} = Set Variable {"revision": {"clientId": "${CLIENT_ID}", "version": 0}, "component" : {"parentGroupId" : "${parentGroupId}", "name" : "${name}"}} ${resp} = Post Request ${SESSION_NAME} /nifi-api/process-groups/${parentGroupId}/process-groups data=${data} headers=${headers} Should Be True ${resp.status_code} < 300 Log ${resp.json()} ${processGroupId} = Set Variable ${resp.json().get('id')} [Return] ${processGroupId} Verify If NIFI Processor Is Created [Arguments] ${typeName} ${session}= Create Session ${SESSION_NAME} ${DCAEMOD_DESIGNTOOL_SERVER} ${headers}= Create Dictionary content-type=application/json ${resp} = Get Request ${SESSION_NAME} /nifi-api/flow/processor-types?type=org.onap.dcae.${typeName} headers=${headers} Log ${resp.json()} Should Not Be Empty ${resp.json().get('processorTypes')} Create Processor [Arguments] ${processGroupId} ${compSpecName} ${session}= Create Session ${SESSION_NAME} ${DCAEMOD_DESIGNTOOL_SERVER} ${headers}= Create Dictionary content-type=application/json ${typeName} = Evaluate $compSpecName.title() ${typeName} = Remove String ${typeName} - ${data} = Set Variable {"revision": {"clientId": "${CLIENT_ID}", "version": 0},"component": {"parentGroupId": "${processGroupId}", "name": "${compSpecName}", "type": "org.onap.dcae.${typeName}"}} Wait Until Keyword Succeeds 60s 5s Verify If NIFI Processor Is Created ${typeName} ${resp} = Post Request ${SESSION_NAME} /nifi-api/process-groups/${processGroupId}/processors data=${data} headers=${headers} Should Be True ${resp.status_code} < 300 Save Flow By Version Controlling [Arguments] ${flowName} ${processGroupId} ${session}= Create Session ${SESSION_NAME} ${DCAEMOD_DESIGNTOOL_SERVER} ${headers}= Create Dictionary content-type=application/json ${resp} = Get Request ${SESSION_NAME} /nifi-api/flow/registries/${REGISTRY_CLIENT_ID}/buckets headers=${headers} Should Be True ${resp.status_code} < 300 Log ${resp.json()} ${bucketId} = Set Variable ${resp.json().get('buckets')[0].get('id')} ${processGrVersion} ${_}= Get Process Group Revision ${processGroupId} ${data} = Set Variable {"versionedFlow": {"flowName": "${flowName}", "bucketId": "${bucketId}", "registryId": "${REGISTRY_CLIENT_ID}"}, "processGroupRevision": {"clientId": "${CLIENT_ID}", "version": ${processGrVersion}}} ${resp} = Post Request ${SESSION_NAME} /nifi-api/versions/process-groups/${processGroupId} data=${data} headers=${headers} Should Be True ${resp.status_code} < 300 Distribute The Flow [Arguments] ${processGroupId} ${session}= Create Session ${SESSION_NAME} ${DCAEMOD_DESIGNTOOL_SERVER} ${session}= Create Session distributor ${DCAEMOD_DISTRIBUTOR_API_SERVER} ${headers}= Create Dictionary content-type=application/json ${resp} = Get Request ${SESSION_NAME} /nifi-api/process-groups/${processGroupId} headers=${headers} Should Be True ${resp.status_code} < 300 Log ${resp.json()} ${flowId} = Set Variable ${resp.json().get('component').get('versionControlInformation').get('flowId')} ${data} = Set Variable {"processGroupId": "${flowId}"} ${resp} = Post Request distributor /distributor/distribution-targets/${DISTRIBUTION_TARGET_ID}/process-groups data=${data} headers=${headers} Should Be True ${resp.status_code} < 300 Deploy Applictaion [Arguments] ${processGroupName} ${compSpecName} ${command_output} = Run And Return Rc And Output helm repo update Should Be Equal As Integers ${command_output[0]} 0 ${helm_install}= Set Variable helm -n onap install ${ONAP_HELM_RELEASE}-${compSpecName} chart-museum/${compSpecName} --set global.repository=${registry_ovveride} ${helm_install_command_output} = Run And Return Rc And Output ${helm_install} Log ${helm_install_command_output[1]} Should Be Equal As Integers ${helm_install_command_output[0]} 0 Set Test Variable ${IS_SERVICE_DEPLOYED} True ${kubectl_patch}= Set Variable kubectl -n onap patch deployment ${ONAP_HELM_RELEASE}-${compSpecName} -p '{"spec":{"template":{"spec":{"containers":[{"name": "${compSpecName}","image":"docker.io/nginx:latest"}]}}}}' ${kubectl_patch_command_output}= Run And Return Rc And Output ${kubectl_patch} Log ${kubectl_patch_command_output[1]} Should Be Equal As Integers ${kubectl_patch_command_output[0]} 0 Wait Until Keyword Succeeds 4 min 15s Check NGINX Applictaion ${compSpecName} Check NGINX Applictaion [Arguments] ${compSpecName} ${check_command}= Set Variable kubectl get deployment -n onap | grep ${compSpecName} | grep 1/1 ${check_command_command_output}= Run And Return Rc And Output ${check_command} Log ${check_command_command_output[1]} Should Be Equal As Integers ${check_command_command_output[0]} 0 Undeploy Application [Arguments] ${CHART_NAME} Uninstall helm charts ${ONAP_HELM_RELEASE}-${CHART_NAME} Get Process Group Revision [Arguments] ${processGroupId} ${session}= Create Session ${SESSION_NAME} ${DCAEMOD_DESIGNTOOL_SERVER} ${headers}= Create Dictionary content-type=application/json ${resp} = Get Request ${SESSION_NAME} /nifi-api/versions/process-groups/${processGroupId} headers=${headers} Should Be True ${resp.status_code} < 300 ${currentProcessGrVersion} = Set Variable ${resp.json().get('processGroupRevision').get('version')} ${clientId} = Set Variable ${resp.json().get('processGroupRevision').get('clientId')} [Return] ${currentProcessGrVersion} ${clientId} Delete Distribution Target ${session}= Create Session distributor ${DCAEMOD_DISTRIBUTOR_API_SERVER} ${resp} = Delete Request distributor /distributor/distribution-targets/${DISTRIBUTION_TARGET_ID} Should Be True ${resp.status_code} < 300 Delete Process Group [Arguments] ${processGroupId} ${session}= Create Session ${SESSION_NAME} ${DCAEMOD_DESIGNTOOL_SERVER} ${processGrVersion} ${clientId}= Get Process Group Revision ${processGroupId} ${resp} = Delete Request ${SESSION_NAME} /nifi-api/process-groups/${processGroupId}?version=${processGrVersion}&clientId=${clientId} Should Be True ${resp.status_code} < 300 Delete Registry Client ${session}= Create Session ${SESSION_NAME} ${DCAEMOD_DESIGNTOOL_SERVER} ${resp} = Delete Request ${SESSION_NAME} /nifi-api/controller/registry-clients/${REGISTRY_CLIENT_ID}?version=${REGISTRY_CLIENT_VERSION} Should Be True ${resp.status_code} < 300 Configure Nifi Registry And Distribution Target Restart Runtime API Add Registry Client Add Distribution Target Add chart repository chart-museum http://chart-museum:80 onapinitializer demo123456! ${command_output} = Run And Return Rc And Output ${HELM_RELEASE} Should Be Equal As Integers ${command_output[0]} 0 Set Global Variable ${ONAP_HELM_RELEASE} ${command_output[1]} Restart Runtime API ${restart_command}= Set Variable kubectl delete pod $(kubectl get pods -n onap | grep dcaemod-runtime-api | awk '{print $1}') -n onap ${restart_command_command_output}= Run And Return Rc And Output ${restart_command} Log ${restart_command_command_output[1]} Should Be Equal As Integers ${restart_command_command_output[0]} 0 Wait Until Keyword Succeeds 2 min 5s Check Runtime API Check Runtime API ${check_command}= Set Variable kubectl get deployment -n onap | grep dcaemod-runtime-api | grep 1/1 ${check_command_command_output}= Run And Return Rc And Output ${check_command} Log ${check_command_command_output[1]} Should Be Equal As Integers ${check_command_command_output[0]} 0 Delete Nifi Registry And Distribution Target Run Keyword If '${DISTRIBUTION_TARGET_ID}' != '${EMPTY}' Wait Until Keyword Succeeds 2 min 5s Delete Distribution Target Run Keyword If '${REGISTRY_CLIENT_ID}' != '${EMPTY}' Wait Until Keyword Succeeds 2 min 5s Delete Registry Client Delete Process Group And Deployment Run Keyword If ${IS_PROCESS_GROUP_SET} Run Keywords Delete Process Group ${PROCESS_GROUP_ID} ... AND Set Suite Variable ${IS_PROCESS_GROUP_SET} False Run Keyword If ${IS_SERVICE_DEPLOYED} Run Keywords Undeploy Application ${CHART_NAME} ... AND Set Suite Variable ${IS_SERVICE_DEPLOYED} False