X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=integration_tests%2Ftestreceiver%2Ftemplates%2Fdeployment.yaml;h=af179688c9b920940fff991e500248ab0c414704;hb=78ba273b279a7e7af6dba811a29746b881a53a8e;hp=0a08fa37bd19f2c8c9cbb7b57f8cd6ef6390f40c;hpb=445221bb8e531d77aad987b936b30d385521134f;p=ric-plt%2Fa1.git diff --git a/integration_tests/testreceiver/templates/deployment.yaml b/integration_tests/testreceiver/templates/deployment.yaml index 0a08fa3..af17968 100644 --- a/integration_tests/testreceiver/templates/deployment.yaml +++ b/integration_tests/testreceiver/templates/deployment.yaml @@ -28,9 +28,22 @@ spec: mountPath: /opt/route/local.rt subPath: local.rt env: + # tells the test xapp to do a query + - name: DO_QUERY + value: "YES" # this sets the source field in messages from a1 to point back to a1s service name, rather than it's random pod name - name: RMR_SRC_ID value: {{ .Values.queryrmrservice.name }} + - name: HANDLER_ID + value: "query_tester" + # the xapp framework requires this to work, even if SDL isn't used. + # it does an SDL healthcheck before it starts up properly + # moreover, the db config section doesn't appear to be honored; with that set, but not this, it doesn't find SDL + # so we need this here for the test receiver which uses the xapp framework to work + - name: DBAAS_SERVICE_HOST + value: "dbaas" + - name: DBAAS_SERVICE_PORT + value: "6379" # test receiver - name: testreceiver @@ -42,10 +55,15 @@ spec: - name: testreceiverconf mountPath: /opt/route/local.rt subPath: local.rt + env: + - name: DBAAS_SERVICE_HOST + value: "dbaas" + - name: DBAAS_SERVICE_PORT + value: "6379" # test receiver that delays until sending - name: delayreceiver - image: testreceiver:latest + image: delayreceiver:latest imagePullPolicy: Never resources: {{- toYaml .Values.resources | nindent 12 }} @@ -54,12 +72,14 @@ spec: mountPath: /opt/route/local.rt subPath: local.rt env: - - name: TEST_RCV_PORT - value: "{{ .Values.delayrmrservice.port }}" - - name: TEST_RCV_SEC_DELAY - value: "5" - - name: HANDLER_ID - value: "delay_receiver" + - name: TEST_RCV_SEC_DELAY + value: "5" + - name: HANDLER_ID + value: "delay_receiver" + - name: DBAAS_SERVICE_HOST + value: "dbaas" + - name: DBAAS_SERVICE_PORT + value: "6379" volumes: - name: "testreceiverconf"