aboutsummaryrefslogtreecommitdiffstats
path: root/kubernetes/robot/demo-k8s.sh
AgeCommit message (Collapse)AuthorFilesLines
2022-07-06[COMMON] Replace kubectl calls to bash by shguillaume.lambert1-2/+2
TODO: add a proper detection in CI scripts Issue-ID: OOM-2643 Signed-off-by: guillaume.lambert <guillaume.lambert@orange.com> Change-Id: Iad9bc6d5f4dcca89ce225e5ce8ac1a421b364427
2022-03-29[ROBOT] Adopt robot test cases to helm based deploymentKrzysztof Kuzmicki1-0/+2
Adopt robot cases to helm based deployment Signed-off-by: Krzysztof Kuzmicki <krzysztof.kuzmicki@nokia.com> Issue-ID: INT-1895 Change-Id: I20594ae0734f3b5a3222fe38c625a4f40c31ff29
2021-12-08[ROBOT] ADD BULKPM testsuite to use helm based component servicesKrzysztof Kuzmicki1-10/+76
Changes required in OOM before adding BULKPM test cases that use helm based component services Signed-off-by: Krzysztof Kuzmicki <krzysztof.kuzmicki@nokia.com> Issue-ID: INT-1895 Change-Id: I188c847ff7b4f66c88f2b067c0c05ba1c19ac1d7
2021-09-22[COMMON] Enforce checkbashisms tox profileGuillaume Lambert1-1/+2
- add checkbahims to tox.ini default profiles - remove -f options to unforce bashisms detection in explicit bash scripts and to differentiate treatments between bash and sh - migrate #!/bin/bash shebangs to #!/bin/sh for scripts without bashisms The following scripts have not been migrated since they still use bashisms difficult to migrate (mostly arrays - more details below) ./kubernetes/common/mariadb-init/resources/config/db_init.sh ./kubernetes/portal/components/portal-mariadb/resources/config/ \ mariadb/docker-entrypoint.sh ./kubernetes/helm/plugins/deploy/deploy.sh ./kubernetes/helm/plugins/undeploy/undeploy.sh ./kubernetes/sdnc/components/sdnc-prom/resources/bin/ensureSdncActive.sh $ find . -not -path '*/\.*' -name *.sh -exec checkbashisms -f {} + 2>&1\ | grep line | cut -d' ' -f 7- | sort | uniq -c | sort -k1,1nr 18 (bash arrays, ${name[0|*|@]}): 2 (declare): 1 ($FUNCNAME): 1 (shopt): 1 (trap with ERR|DEBUG|RETURN): https://mywiki.wooledge.org/Bashism#Arrays https://mywiki.wooledge.org/Bashism#Special_Variables https://mywiki.wooledge.org/Bashism#Builtins https://www.oilshell.org/release/0.5.alpha2/test/spec.wwz/builtin-trap.html Issue-ID: OOM-2643 Signed-off-by: Guillaume Lambert <guillaume.lambert@orange.com> Change-Id: Id06ad1d45004321a293bdd26038d8da5f7b6b4ac
2021-09-20[COMMON] Replace tabs by 4 ws in shell scriptsguillaume.lambert1-125/+125
with the following command $ find . -not -path '*/\.*' -name *.sh -exec sed -i 's/\t/ /g' {} + then realign manually what deserves it and in particular, unindent some EOF scripting tags so they do not trigger errors. Issue-ID: OOM-2643 Signed-off-by: guillaume.lambert <guillaume.lambert@orange.com> Change-Id: Ibfa463ec8083d5a39de18a54d9c1d8746710fe03
2021-06-29[COMMON] Fix read -s, echo -e and $'...' bashismsGuillaume Lambert1-1/+4
pointed out by checkbashisms. Issue-ID: OOM-2643 Signed-off-by: Guillaume Lambert <guillaume.lambert@orange.com> Change-Id: I527f9b8dcad98a5dd9eb30390d26c95c1d918c09
2021-06-24[COMMON] Fix some bashismsGuillaume Lambert1-1/+1
pointed out by checkbashisms: - variable name HOSTNAME - source instead of . - sleep with suffix - string increments And migrate a few shebangs to /bin/sh Issue-ID: OOM-2643 Signed-off-by: Guillaume Lambert <guillaume.lambert@orange.com> Change-Id: I653c14454a3232b5a349ca1564ece53ddc94289d
2021-06-23[COMMON] Revert "[COMMON] Fix a few bashisms"Krzysztof Opasiak1-1/+1
This reverts commit 62178a49cc9e4088019d426636657d9f2980d242. This commit introduced regression on portal db config job which is now unable to start: /usr/local/bin/docker-entrypoint.sh: line 114: syntax error near unexpected token `(' Issue-ID: OOM-1 Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com> Change-Id: I3cb72cd7625b180b364b713fe942d5956736ebef
2021-06-15[COMMON] Fix a few bashismsGuillaume Lambert1-1/+1
pointed out by checkbashisms: - variable name HOSTNAME - source instead of . - variable increments - sleep with suffix And migrate a few shebangs to /bin/sh Issue-ID: OOM-2643 Signed-off-by: Guillaume Lambert <guillaume.lambert@orange.com> Change-Id: I82981bcff17e88cf824935b841ce37a585ddde00
2021-05-17[COMMON] Fix condition bracket bashisms - step 1Guillaume Lambert1-1/+1
pointed out by checkbashisms $ mycmd=$(tox -e checkbashisms | grep '(\[\[ foo \]\] should be \[ foo \])' | sed -e "s@^[^.]*\(.[^ ]*\) line \([0-9]*\) .*@sed -i '\2s/\\\[\\\[\\\( [^]]*\\\)\\\]\\\]/[\\\1]/g' \1;@") $ eval $mycmd plus fix manually quoting hells induced and bash specific regex and multi-conditions Issue-ID: OOM-2643 Signed-off-by: Guillaume Lambert <guillaume.lambert@orange.com> Change-Id: Ie7ca5b71938fae22c200b7fead418618160fbe19
2021-04-27Merge "[COMMON] Fix condition equality bashisms"Krzysztof Opasiak1-1/+1
2021-04-16[COMMON] Fix condition equality bashismsGuillaume Lambert1-1/+1
pointed out by checkbashisms. $ mycmd=$(tox -e checkbashisms | grep "(should be 'b = a')" | sed -e "s@^[^.]*\(.[^ ]*\) line \([0-9]*\) .*@sed -i -e '\2s/==/=/g' \1;@") $ eval $mycmd Issue-ID: OOM-2643 Signed-off-by: Guillaume Lambert <guillaume.lambert@orange.com> Change-Id: I9032130bc4717e111de11a73187c2f1052376e45
2021-04-14[COMMON] Fix function declarations bashismsGuillaume Lambert1-1/+1
pointed out by checkbashisms. $ mycmd=$(tox -e checkbashisms | grep "^possible .*'function' is useless " | sed -e "s@^[^.]*\(.[^ ]*\) line \([0-9]*\) .*@sed -i -e '\2s/functio n \\\([^ ()]*\\\) *(\\\?)\\\?/\\\1 ()/\' -e '\2s/(){/() {/' \1;@") $ eval $mycmd Issue-ID: OOM-2643 Signed-off-by: Guillaume Lambert <guillaume.lambert@orange.com> Change-Id: Ic41c8ba8288b7a90db9f5775cd601c09ff2ab663
2020-12-07[ROBOT] Reintegrate robot in main repositorySylvain Desbureaux1-0/+235
Robot chart is currently in its own directory. As a lot will be done in the charts with tight coordination between "common" part and components parts, it's a lot easier to have everything in a same place for now. we're using commit 85b5af5058bbda19b557add185d917f60c2188ee from robot Issue-ID: OOM-2645 Signed-off-by: Sylvain Desbureaux <sylvain.desbureaux@orange.com> Change-Id: I7c187b616d3436ed2eab7bf7e95cb6a1a90edf31
2019-07-29removing and move to subrepoDR695H1-223/+0
i accounted for all changes made here but not merged (1 pull) Issue-ID: TEST-165 Change-Id: I8e0921d1a462f9fec5f838f0618980bd91b64f95 Signed-off-by: DR695H <dr695h@att.com>
2019-06-25Add back pkg_host variable during transitionGary Wu1-3/+2
Add back the pkg_host variable assignment until testsuite 1.5.0 is released, so that the vfwclosedloop case can continue to work in the mean time. Issue-ID: TEST-158 Signed-off-by: Gary Wu <gary.wu@futurewei.com> Change-Id: I95c147ead54baab4f1dcbf090b00b0e5dbb60c8f
2019-06-14adding in packet generator property required for test caseDR695H1-1/+1
Issue-ID: TEST-158 Change-Id: I7fa98584d69f4cae97e30668764ab7234d69f4ca Signed-off-by: DR695H <dr695h@att.com>
2019-05-06Updates to usage and add directso tagBrian Freeman1-0/+14
Issue-ID: INT-1067 Change-Id: I590a6839f9888e27981efd37a614465ec0001878 Signed-off-by: Brian Freeman <bf1936@att.com>
2019-04-17Fix script name in usage outputkaihlavi1-21/+22
demo.sh replaced with demo-k8s.sh in output Some spaces adjusted to tabs (in line with the rest of the script) and some typos corrected Change-Id: I9b19d191a8e2f1fc3cc791d1b549722390e3c97d Issue-ID: OOM-1798 Signed-off-by: kaihlavi <l.kaihlavirt@partner.samsung.com>
2019-02-18Add vFWDT and changeOpenECOMP_ETE installBrian Freeman1-1/+9
Issue-ID: INT-829 Change-Id: I7c666388def4b3af39208adb7333c06a64970372 Signed-off-by: Brian Freeman <bf1936@att.com>
2018-11-02Add/clean up options in demo and ete scriptsGary Wu1-4/+13
Change-Id: I17587e7313f562e325c99fca6761b21cbbc16d10 Issue-ID: INT-586 Signed-off-by: Gary Wu <gary.i.wu@huawei.com>
2018-11-02Merge "Automate vFWNG model distribution for CDS"Alexis de Talhouët1-0/+4
2018-11-01Stop overwriting demo.sh test output logsGary Wu1-2/+10
Generate sequential output log directories for demo.sh just like for ete.sh. Change-Id: I67f8d5f6c9f38625c0024ad5a8d54349a52046db Issue-ID: INT-586 Signed-off-by: Gary Wu <gary.i.wu@huawei.com>
2018-11-01Automate vFWNG model distribution for CDSYang Xu1-0/+4
Change-Id: I7de62e5cb260238f1cb934256cd78d062d55fbc0 Issue-ID: INT-708 Signed-off-by: Yang Xu <yang.xu3@huawei.com>
2018-10-29Add oam-ip-addr to heatbridge input paramsMarco Platania1-3/+5
Change-Id: I68e08317b415fe265a9e46ad948facb04c3c630d Issue-ID: INT-696 Signed-off-by: Marco Platania <platania@research.att.com>
2018-10-28Add CDS test option to demo-k8s.shYang Xu1-0/+4
Change-Id: Id548768e28c8e4f4bd3a402a70d12a71ee0b4bfd Issue-ID: CCSDK-537 Signed-off-by: Yang Xu <yang.xu3@huawei.com>
2018-09-14Add portal option to ete test scriptGary Wu1-1/+3
Change-Id: I42011b0dae86eb96b52764085adfccbb8e062b9d Issue-ID: PORTAL-388 Signed-off-by: Gary Wu <gary.i.wu@huawei.com>
2018-09-04Apache 2 License updation for common,helm,robot,sovaibhavjayas1-0/+14
Issue-ID: OOM-1356 Change-Id: I656f4ce722cd239933aa5a088308da5e9de7a7db Signed-off-by: vaibhavjayas <vaibhav.jayas@amdocs.com>
2018-05-15Correct variable references for namespace shiftBrian Freeman1-20/+20
Issue-ID: OOM-794 Change-Id: Id7bcd5aa90444cd3f5e9292f3daf7e9722722442 Signed-off-by: Brian Freeman <bf1936@att.com>
2018-04-23Fix demo-k8Brian Freeman1-3/+9
Issue-ID: OOM-794 Change-Id: I07674d726496f7d30350033b4a3ad0ad337f4b28 Signed-off-by: Brian Freeman <bf1936@att.com>
2018-04-17Synching robot up with Beijing codeMandeep Khinda1-13/+17
-updating configmaps with master -parameterizing auth -removing asdc interface fork. no longer needed as be/fe are split -fixing spaces -aligning with templates better -adding comments to values that need overriding per environment -injecting demo project into container in /share/heat on startup -addressing comment on demo-k8s.sh Issue-ID: OOM-795 Change-Id: Iebc959c20491e3e2ca8cf64f22444918650d1970 Signed-off-by: Mandeep Khinda <mandeep.khinda@amdocs.com>
2018-03-01Run all components in one namespaceBorislavG1-14/+18
Change-Id: I5fcd4d577c1fda4de27842807c7cf7a5d372756e Issue-ID: OOM-722 Signed-off-by: BorislavG <Borislav.Glozman@amdocs.com>
2018-01-18Add heatbridge support to OOM robot scriptAlexis de Talhouët1-0/+17
Change-Id: If703508bde4f5357d5148a71e7800c9513cb3ae9 Issue-ID: OOM-497 Signed-off-by: Alexis de Talhouët <adetalhouet89@gmail.com> (cherry picked from commit fee3caea746ea2bc6fb7aa2da905f09d0490ff63)
2017-11-30Output the Robot logs at the proper placeAlexis de Talhouët1-1/+1
A small webserver in bind behind /share/logs specifically to display the logs, so we need to correctly output them there. As specified in the robot scripts. see https://gerrit.onap.org/r/gitweb?p=testsuite/properties.git;a=blob;f=ete.sh;h=93070c995d12f2cdb59275477e9ca6be2956e696;hb=refs/heads/amsterdam#l20 see https://gerrit.onap.org/r/gitweb?p=testsuite/properties.git;a=blob;f=demo.sh;h=e7dcd51db31a58d75095c60fde93abc1d8c2b01c;hb=refs/heads/amsterdam#l147 Change-Id: I5a41c9865295d2db0ded131bb985ef323a79ecc5 Issue-ID: OOM-382 Signed-off-by: Alexis de Talhouët <adetalhouet89@gmail.com>
2017-11-28bringing robot up to date with 1.1Mandeep Khinda1-0/+127
-updates to various files that have changed in the VM version -OpenO support (test success requires kube2msb and msb to be working) -removed un-used -docker.sh scripts (I don't find them useful so I am proposing to removing them here) -updates to SDNC preload eliminates some old parameter subst. we were doing. -With these change and a temporary tweak to kube2msb that points it to a rancher server (kubeMasterUrl) robot results are pretty much on par with my VM deployment of ONAP: ============================================================================== OpenECOMP ETE | FAIL | 31 critical tests, 25 passed, 6 failed Issue-ID: OOM-382 Change-Id: I2e3bcfd6fce31b0e4de8b7d66be90c7490e04c5c Signed-off-by: Mandeep Khinda <mandeep.khinda@amdocs.com>