BjornMagnussonXA | be9a07f | 2021-02-25 10:51:46 +0100 | [diff] [blame] | 1 | #!/bin/bash |
| 2 | |
| 3 | # ============LICENSE_START=============================================== |
| 4 | # Copyright (C) 2020 Nordix Foundation. All rights reserved. |
| 5 | # ======================================================================== |
| 6 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 7 | # you may not use this file except in compliance with the License. |
| 8 | # You may obtain a copy of the License at |
| 9 | # |
| 10 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 11 | # |
| 12 | # Unless required by applicable law or agreed to in writing, software |
| 13 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 14 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 15 | # See the License for the specific language governing permissions and |
| 16 | # limitations under the License. |
| 17 | # ============LICENSE_END================================================= |
| 18 | # |
| 19 | |
| 20 | # List of short names for all supported apps, including simulators etc |
BjornMagnussonXA | 007b645 | 2021-11-29 08:03:38 +0100 | [diff] [blame] | 21 | APP_SHORT_NAMES="PA ICS SDNC CP NGW RC RICSIM HTTPPROXY CBS CONSUL DMAAPMR MR CR PRODSTUB KUBEPROXY DMAAPMED DMAAPADP PVCCLEANER" |
BjornMagnussonXA | be9a07f | 2021-02-25 10:51:46 +0100 | [diff] [blame] | 22 | |
| 23 | # List of available apps that built and released of the project |
BjornMagnussonXA | 007b645 | 2021-11-29 08:03:38 +0100 | [diff] [blame] | 24 | PROJECT_IMAGES="PA ICS SDNC CP NGW RICSIM RC DMAAPMED DMAAPADP" |
BjornMagnussonXA | be9a07f | 2021-02-25 10:51:46 +0100 | [diff] [blame] | 25 | |
| 26 | # List of available apps to override with local or remote staging/snapshot/release image |
BjornMagnussonXA | 007b645 | 2021-11-29 08:03:38 +0100 | [diff] [blame] | 27 | AVAILABLE_IMAGES_OVERRIDE="PA ICS SDNC CP NGW RICSIM RC DMAAPMED DMAAPADP" |
BjornMagnussonXA | be9a07f | 2021-02-25 10:51:46 +0100 | [diff] [blame] | 28 | |
| 29 | # List of available apps where the image is built by the test environment |
BjornMagnussonXA | 674793d | 2021-05-06 19:49:17 +0200 | [diff] [blame] | 30 | LOCAL_IMAGE_BUILD="MR CR PRODSTUB KUBEPROXY HTTPPROXY" |
BjornMagnussonXA | be9a07f | 2021-02-25 10:51:46 +0100 | [diff] [blame] | 31 | |
BjornMagnussonXA | 663566c | 2021-11-08 10:25:07 +0100 | [diff] [blame] | 32 | # List of system app used only by the test env - kubernetes |
| 33 | TESTENV_KUBE_SYSTEM_APPS="PVCCLEANER" |
| 34 | |
| 35 | # List of system app used only by the test env - docker |
| 36 | TESTENV_DOCKER_SYSTEM_APPS="" |
| 37 | |
BjornMagnussonXA | be9a07f | 2021-02-25 10:51:46 +0100 | [diff] [blame] | 38 | |
| 39 | #Integrate a new app into the test environment |
| 40 | # 1 Choose a short name for the app |
| 41 | # Note than an app might use more than one image |
| 42 | # 2 Add the short name to APP_SHORT_NAMES |
| 43 | # 3 If the image is built and released as part of the project, |
| 44 | # add the short name to PROJECT_IMAGES |
| 45 | # 4 If it possible to override with for example a local image, |
| 46 | # add the short name to AVAILABLE_IMAGES_OVERRIDE |
| 47 | # This is default...so normally images shall be possible to override |
| 48 | # 5 If the image is built by the test script, |
| 49 | # add the short name to LOCAL_IMAGE_BUILD |
BjornMagnussonXA | 663566c | 2021-11-08 10:25:07 +0100 | [diff] [blame] | 50 | # 6 Special app used only by the test env is added to TESTENV_KUBE_SYSTEM_APPS and/or TESTENV_DOCKER_SYSTEM_APPS |
BjornMagnussonXA | be9a07f | 2021-02-25 10:51:46 +0100 | [diff] [blame] | 51 | # Summary: |
| 52 | # All app short name shall exist in APP_SHORT_NAMES |
| 53 | # Then the app short name be added to both PROJECT_IMAGES and AVAILABLE_IMAGES_OVERRIDE |
| 54 | # or only to LOCAL_IMAGE_BUILD |