From bae8d839893d1ce5c1e9dfa670fbe536520093a0 Mon Sep 17 00:00:00 2001 From: Krzysztof Kuzmicki Date: Wed, 24 Nov 2021 12:00:45 +0100 Subject: [PATCH] [ROBOT] ADD HTTPS based BULKPM test cases that use helm based components Add https server based test cases Signed-off-by: Krzysztof Kuzmicki Issue-ID: INT-1895 Change-Id: I74f7102398a08e1629b50f510ef179d35c8761bd --- robot/assets/helm/pm-https-server/Chart.yaml | 27 +++++ robot/assets/helm/pm-https-server/README.md | 34 ++++++ .../E_VES_bulkPM_IF_3GPP_3_example_1.xml.gz | Bin 0 -> 2046 bytes .../helm/pm-https-server/templates/_helpers.tpl | 78 ++++++++++++++ .../pm-https-server/templates/certificate.yaml | 26 +++++ .../helm/pm-https-server/templates/deployment.yaml | 46 ++++++++ .../helm/pm-https-server/templates/secret.yaml | 8 ++ .../helm/pm-https-server/templates/service.yaml | 24 +++++ robot/assets/helm/pm-https-server/values.yaml | 58 ++++++++++ robot/resources/bc_interface.robot | 8 ++ robot/resources/chart_museum.robot | 10 +- robot/resources/consul_interface.robot | 4 +- robot/resources/mr_interface.robot | 9 ++ .../usecases/5gbulkpm_helm_interface.robot | 119 ++++++++++++++++----- robot/testsuites/usecases/5gbulkpm_helm.robot | 44 +++++++- 15 files changed, 466 insertions(+), 29 deletions(-) create mode 100644 robot/assets/helm/pm-https-server/Chart.yaml create mode 100644 robot/assets/helm/pm-https-server/README.md create mode 100644 robot/assets/helm/pm-https-server/resources/E_VES_bulkPM_IF_3GPP_3_example_1.xml.gz create mode 100644 robot/assets/helm/pm-https-server/templates/_helpers.tpl create mode 100644 robot/assets/helm/pm-https-server/templates/certificate.yaml create mode 100644 robot/assets/helm/pm-https-server/templates/deployment.yaml create mode 100644 robot/assets/helm/pm-https-server/templates/secret.yaml create mode 100644 robot/assets/helm/pm-https-server/templates/service.yaml create mode 100644 robot/assets/helm/pm-https-server/values.yaml diff --git a/robot/assets/helm/pm-https-server/Chart.yaml b/robot/assets/helm/pm-https-server/Chart.yaml new file mode 100644 index 00000000..32e1c595 --- /dev/null +++ b/robot/assets/helm/pm-https-server/Chart.yaml @@ -0,0 +1,27 @@ +apiVersion: v2 +name: pm-https-server +description: A Helm chart for Kubernetes + +# A chart can be either an 'application' or a 'library' chart. +# +# Application charts are a collection of templates that can be packaged into versioned archives +# to be deployed. +# +# Library charts provide useful utilities or functions for the chart developer. They're included as +# a dependency of application charts to inject those utilities and functions into the rendering +# pipeline. Library charts do not define any templates and therefore cannot be deployed. +type: application + +# This is the chart version. This version number should be incremented each time you make changes +# to the chart and its templates, including the app version. +# Versions are expected to follow Semantic Versioning (https://semver.org/) +version: 0.1.0 + +# This is the version number of the application being deployed. This version number should be +# incremented each time you make changes to the application. Versions are not expected to +# follow Semantic Versioning. They should reflect the version the application is using. +appVersion: 1.0.1 +dependencies: + - name: repositoryGenerator + version: ~9.x-0 + repository: '@chart-museum' diff --git a/robot/assets/helm/pm-https-server/README.md b/robot/assets/helm/pm-https-server/README.md new file mode 100644 index 00000000..f7d80ee8 --- /dev/null +++ b/robot/assets/helm/pm-https-server/README.md @@ -0,0 +1,34 @@ +# PM HTTPS Server + +# How to deploy on lab + +1. Copy files from helm/pm-https-server to lab + + `scp -i -r /pm-https-server ubuntu@:/pm-https-server ` +2. Log into the RKE + +3. Install chart on your lab + + `helm install pm-https-server ./pm-https-server` + +# Checking if everything is working properly + +1. Find service on which your application runs + + `kubectl get service | grep pm-https-server` + +2. If service is running try to connect to server + + `curl -u demo:demo123456! ` + + if everything is working properly you should get response like below + + `

It works!

` + +3. If step 2 ends with success try to upload file + + `curl -F "uploaded_file=@./resources/E_VES_bulkPM_IF_3GPP_3_example_1.xml.gz" -u demo:demo123456! http://WORKER_IP:PM_HTTPS_SERVER_PORT/upload.php` + + When file will be successfully uploaded you should see information like this: + + `The file E_VES_bulkPM_IF_3GPP_3_example_1.xml.gz has been uploaded` \ No newline at end of file diff --git a/robot/assets/helm/pm-https-server/resources/E_VES_bulkPM_IF_3GPP_3_example_1.xml.gz b/robot/assets/helm/pm-https-server/resources/E_VES_bulkPM_IF_3GPP_3_example_1.xml.gz new file mode 100644 index 0000000000000000000000000000000000000000..3af5ea8f3d98c051957cd20390b3210c5815a308 GIT binary patch literal 2046 zcmVaFJrdX!q6I2_SeLk*W}or$Bu2Z2<-z=~aaWG5j+lFv|28EjGjhb=S5@_rkIXpb^Kf3WFdR zeGAy-Pz<-q< z8vaHMlXze{H`om8sVdxDHJVlW?Vxe{wRKmOPb75gkvOL7HH{%Qz3Kk43;}5A3)dSO z!Tl@-%5hoOB{)63m!-0FdMebQ1i`=vz;y_iF7d%}1L)b$2VnSM1z`CwcDgn(Jebhy z0vAT(@CR-3*dyk-6Ij7B7>*epy6*hEG95HZ94ME|rPA8|{Eib?OL`6K8jkt`LbF0- zaBlPtEuc}`?HcwOUb`53Vv`|pf>t03_AqRmhw`J^PNCFQUs zYo8KmdO-4~hP-eA33lhiyqxgiP}*L-VKVY({l5s&HjS(1d7QgWLH@ zx?x_>nPqzd3pEgmR^=aa&zGpZ$$VAsf zNSmv2MAnlz0_NBYt44;jFmQL&ZdhB_a4^-db9@)@oUAv5mlb+sG_7xiofRI?DAN>& z5p|)~b;mSvG^}z(oSh6En>NDrJmQaB$Mh*K>oQD>gkAA@+7Wg1N0On6K^_k~coMtl zuHL!{iE4#UbkDf zUoI{#>(ONs*ZT#t;h5+$tTmH}QU=G$U zzg|{j@Z)4!mE-AgdD+ZW6Ls9+WkYjg-gJPeIIO(%@iZGuIIdQwTsX$3J*6tt*30_* zF*lg7lkdoLP29}#{cA7F80EdHX#!^B@<>2)#0pY`*rtEw(g?oKC% zTjG!Hz^}=mz_hm6p;WIZwZ&P#*Y@%es}>EhOLW~GvaSi$_XyPWVES=D`WA@3B-#=^ zUrWx|219DTnlB3H3+D^xOOg2^GvJH7A-*JB=6KP(O$Bc#mYQF5r-=YOWM`Fx$!vpheD z&mO>JV08y{k{BVT>70rSp6dp=3$<)IuLw>w>9(hev=Hu#?@gzbu}{ncoR4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