summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--compose/config/clamp/AcRuntimeParameters.yaml31
-rw-r--r--compose/config/clamp/HttpParticipantParameters.yaml26
-rw-r--r--compose/config/clamp/KubernetesParticipantParameters.yaml28
-rw-r--r--compose/config/clamp/PolicyParticipantParameters.yaml28
-rw-r--r--compose/config/clamp/SimulatorParticipantParameters.yaml28
-rw-r--r--compose/config/clamp/legacy/AcRuntimeParameters.yaml74
-rw-r--r--compose/config/clamp/legacy/HttpParticipantParameters.yaml45
-rw-r--r--compose/config/clamp/legacy/KubernetesParticipantParameters.yaml66
-rw-r--r--compose/config/clamp/legacy/PolicyParticipantParameters.yaml63
-rw-r--r--compose/config/clamp/legacy/SimulatorParticipantParameters.yaml50
-rw-r--r--compose/docker-compose.yml15
-rwxr-xr-xcsit/run-acm-regression.sh30
12 files changed, 165 insertions, 319 deletions
diff --git a/compose/config/clamp/AcRuntimeParameters.yaml b/compose/config/clamp/AcRuntimeParameters.yaml
index dbcbc562..f2ef511a 100644
--- a/compose/config/clamp/AcRuntimeParameters.yaml
+++ b/compose/config/clamp/AcRuntimeParameters.yaml
@@ -113,3 +113,34 @@ tracing:
sampler:
jaeger-remote:
endpoint: http://jaeger:14250
+
+# legacy config
+---
+
+spring:
+ config:
+ activate:
+ on-profile: legacy
+runtime:
+ participantParameters:
+ heartBeatMs: 20000
+ maxStatusWaitMs: 200000
+ topicParameterGroup:
+ topicSources:
+ -
+ topic: policy-acruntime-participant
+ servers:
+ - ${topicServer:kafka:9092}
+ topicCommInfrastructure: kafka
+ fetchTimeout: 15000
+ useHttps: false
+ topicSinks:
+ -
+ topic: policy-acruntime-participant
+ servers:
+ - ${topicServer:kafka:9092}
+ topicCommInfrastructure: kafka
+ useHttps: false
+ acmParameters:
+ toscaElementName: org.onap.policy.clamp.acm.AutomationCompositionElement
+ toscaCompositionName: org.onap.policy.clamp.acm.AutomationComposition
diff --git a/compose/config/clamp/HttpParticipantParameters.yaml b/compose/config/clamp/HttpParticipantParameters.yaml
index 62e309c3..9f9e2f0f 100644
--- a/compose/config/clamp/HttpParticipantParameters.yaml
+++ b/compose/config/clamp/HttpParticipantParameters.yaml
@@ -73,3 +73,29 @@ tracing:
sampler:
jaeger-remote:
endpoint: http://jaeger:14250
+
+# legacy config
+---
+
+spring:
+ config:
+ activate:
+ on-profile: legacy
+participant:
+ intermediaryParameters:
+ reportingTimeIntervalMs: 120000
+ participantId: 101c62b3-8918-41b9-a747-d21eb79c6c01
+ clampAutomationCompositionTopics:
+ topicSources:
+ - topic: policy-acruntime-participant
+ servers:
+ - ${topicServer:kafka:9092}
+ topicCommInfrastructure: kafka
+ fetchTimeout: 15000
+ useHttps: false
+ topicSinks:
+ - topic: policy-acruntime-participant
+ servers:
+ - ${topicServer:kafka:9092}
+ topicCommInfrastructure: kafka
+ useHttps: false
diff --git a/compose/config/clamp/KubernetesParticipantParameters.yaml b/compose/config/clamp/KubernetesParticipantParameters.yaml
index 76ae9696..ab96f51c 100644
--- a/compose/config/clamp/KubernetesParticipantParameters.yaml
+++ b/compose/config/clamp/KubernetesParticipantParameters.yaml
@@ -87,3 +87,31 @@ logging:
chart:
api:
enabled: false
+
+# legacy config
+---
+
+spring:
+ config:
+ activate:
+ on-profile: legacy
+participant:
+ intermediaryParameters:
+ reportingTimeIntervalMs: 120000
+ participantId: 101c62b3-8918-41b9-a747-d21eb79c6c02
+ clampAutomationCompositionTopics:
+ topicSources:
+ -
+ topic: policy-acruntime-participant
+ servers:
+ - ${topicServer:kafka:9092}
+ topicCommInfrastructure: kafka
+ fetchTimeout: 15000
+ useHttps: false
+ topicSinks:
+ -
+ topic: policy-acruntime-participant
+ servers:
+ - ${topicServer:kafka:9092}
+ topicCommInfrastructure: kafka
+ useHttps: false
diff --git a/compose/config/clamp/PolicyParticipantParameters.yaml b/compose/config/clamp/PolicyParticipantParameters.yaml
index a65eeb03..c7af9dd1 100644
--- a/compose/config/clamp/PolicyParticipantParameters.yaml
+++ b/compose/config/clamp/PolicyParticipantParameters.yaml
@@ -84,3 +84,31 @@ server:
enabled: false
servlet:
context-path: /onap/policy/clamp/acm/policyparticipant
+
+# legacy config
+---
+
+spring:
+ config:
+ activate:
+ on-profile: legacy
+participant:
+ intermediaryParameters:
+ reportingTimeIntervalMs: 120000
+ participantId: 101c62b3-8918-41b9-a747-d21eb79c6c03
+ clampAutomationCompositionTopics:
+ topicSources:
+ -
+ topic: policy-acruntime-participant
+ servers:
+ - ${topicServer:kafka:9092}
+ topicCommInfrastructure: kafka
+ fetchTimeout: 15000
+ useHttps: false
+ topicSinks:
+ -
+ topic: policy-acruntime-participant
+ servers:
+ - ${topicServer:kafka:9092}
+ topicCommInfrastructure: kafka
+ useHttps: false
diff --git a/compose/config/clamp/SimulatorParticipantParameters.yaml b/compose/config/clamp/SimulatorParticipantParameters.yaml
index 6f6a5131..996404f4 100644
--- a/compose/config/clamp/SimulatorParticipantParameters.yaml
+++ b/compose/config/clamp/SimulatorParticipantParameters.yaml
@@ -77,4 +77,30 @@ tracing:
protocol: http
sampler:
jaeger-remote:
- endpoint: http://jaeger:14250 \ No newline at end of file
+ endpoint: http://jaeger:14250
+
+# legacy config
+---
+
+spring:
+ config:
+ activate:
+ on-profile: legacy
+participant:
+ intermediaryParameters:
+ reportingTimeIntervalMs: 120000
+ participantId: ${participantId:101c62b3-8918-41b9-a747-d21eb79c6c90}
+ clampAutomationCompositionTopics:
+ topicSources:
+ - topic: policy-acruntime-participant
+ servers:
+ - ${topicServer:kafka:9092}
+ topicCommInfrastructure: kafka
+ fetchTimeout: 15000
+ useHttps: false
+ topicSinks:
+ - topic: policy-acruntime-participant
+ servers:
+ - ${topicServer:kafka:9092}
+ topicCommInfrastructure: kafka
+ useHttps: false
diff --git a/compose/config/clamp/legacy/AcRuntimeParameters.yaml b/compose/config/clamp/legacy/AcRuntimeParameters.yaml
deleted file mode 100644
index 656b3f9f..00000000
--- a/compose/config/clamp/legacy/AcRuntimeParameters.yaml
+++ /dev/null
@@ -1,74 +0,0 @@
-spring:
- security:
- user:
- name: runtimeUser
- password: zb!XztG34
- mvc:
- converters:
- preferred-json-mapper: gson
- datasource:
- url: jdbc:mariadb://${mariadb.host:mariadb}:${mariadb.port:3306}/clampacm
- driverClassName: org.mariadb.jdbc.Driver
- username: policy_user
- password: policy_user
- hikari:
- connectionTimeout: 30000
- idleTimeout: 600000
- maxLifetime: 1800000
- maximumPoolSize: 10
- jpa:
- hibernate:
- ddl-auto: none
- naming:
- physical-strategy: org.hibernate.boot.model.naming.PhysicalNamingStrategyStandardImpl
- implicit-strategy: org.onap.policy.common.spring.utils.CustomImplicitNamingStrategy
- properties:
- hibernate:
- format_sql: true
-
-security:
- enable-csrf: false
-
-server:
- servlet:
- context-path: /onap/policy/clamp/acm
- port: 6969
- ssl:
- enabled: false
- error:
- path: /error
-
-runtime:
- participantParameters:
- heartBeatMs: 20000
- maxStatusWaitMs: 200000
- topicParameterGroup:
- topicSources:
- -
- topic: policy-acruntime-participant
- servers:
- - ${topicServer:kafka:9092}
- topicCommInfrastructure: kafka
- fetchTimeout: 15000
- useHttps: false
- topicSinks:
- -
- topic: policy-acruntime-participant
- servers:
- - ${topicServer:kafka:9092}
- topicCommInfrastructure: kafka
- useHttps: false
- acmParameters:
- toscaElementName: org.onap.policy.clamp.acm.AutomationCompositionElement
- toscaCompositionName: org.onap.policy.clamp.acm.AutomationComposition
-
-management:
- endpoints:
- web:
- base-path: /
- exposure:
- include: health, metrics, prometheus
-
-metrics:
- security:
- disabled: false
diff --git a/compose/config/clamp/legacy/HttpParticipantParameters.yaml b/compose/config/clamp/legacy/HttpParticipantParameters.yaml
deleted file mode 100644
index a26a81d0..00000000
--- a/compose/config/clamp/legacy/HttpParticipantParameters.yaml
+++ /dev/null
@@ -1,45 +0,0 @@
-spring:
- security:
- user:
- name: participantUser
- password: zb!XztG34
- autoconfigure:
- exclude: >
- org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration,
- org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaAutoConfiguration,
- org.springframework.boot.autoconfigure.jdbc.DataSourceTransactionManagerAutoConfiguration
-security:
- enable-csrf: false
-participant:
- intermediaryParameters:
- reportingTimeIntervalMs: 120000
- description: Participant Description
- participantId: 101c62b3-8918-41b9-a747-d21eb79c6c01
- clampAutomationCompositionTopics:
- topicSources:
- - topic: policy-acruntime-participant
- servers:
- - ${topicServer:kafka:9092}
- topicCommInfrastructure: kafka
- fetchTimeout: 15000
- useHttps: false
- topicSinks:
- - topic: policy-acruntime-participant
- servers:
- - ${topicServer:kafka:9092}
- topicCommInfrastructure: kafka
- useHttps: false
- participantSupportedElementTypes:
- - typeName: org.onap.policy.clamp.acm.HttpAutomationCompositionElement
- typeVersion: 1.0.0
-management:
- endpoints:
- web:
- exposure:
- include: health, metrics, prometheus
-server:
- port: 6969
- ssl:
- enabled: false
- servlet:
- context-path: /onap/policy/clamp/acm/httpparticipant
diff --git a/compose/config/clamp/legacy/KubernetesParticipantParameters.yaml b/compose/config/clamp/legacy/KubernetesParticipantParameters.yaml
deleted file mode 100644
index 449e9617..00000000
--- a/compose/config/clamp/legacy/KubernetesParticipantParameters.yaml
+++ /dev/null
@@ -1,66 +0,0 @@
-spring:
- security:
- user:
- name: participantUser
- password: zb!XztG34
- autoconfigure:
- exclude: >
- org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration,
- org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaAutoConfiguration,
- org.springframework.boot.autoconfigure.jdbc.DataSourceTransactionManagerAutoConfiguration
-security:
- enable-csrf: false
-
-participant:
- localChartDirectory: /home/policy/local-charts
- infoFileName: CHART_INFO.json
- intermediaryParameters:
- reportingTimeIntervalMs: 120000
- description: Participant Description
- participantId: 101c62b3-8918-41b9-a747-d21eb79c6c02
- clampAutomationCompositionTopics:
- topicSources:
- -
- topic: policy-acruntime-participant
- servers:
- - ${topicServer:kafka:9092}
- topicCommInfrastructure: kafka
- fetchTimeout: 15000
- useHttps: false
- topicSinks:
- -
- topic: policy-acruntime-participant
- servers:
- - ${topicServer:kafka:9092}
- topicCommInfrastructure: kafka
- useHttps: false
- participantSupportedElementTypes:
- - typeName: org.onap.policy.clamp.acm.K8SMicroserviceAutomationCompositionElement
- typeVersion: 1.0.0
-
-management:
- endpoints:
- web:
- exposure:
- include: health, metrics, prometheus
-server:
- port: 6969
- ssl:
- enabled: false
- servlet:
- context-path: /onap/policy/clamp/acm/k8sparticipant
-
-logging:
- # Configuration of logging
- level:
- ROOT: ERROR
- org.springframework: ERROR
- org.springframework.data: ERROR
- org.springframework.web.reactive.function.client.ExchangeFunctions: ERROR
- org.onap.policy.clamp.acm.participant.kubernetes: INFO
- file:
- name: /var/log/onap/policy/clamp/application.log
-
-chart:
- api:
- enabled: false
diff --git a/compose/config/clamp/legacy/PolicyParticipantParameters.yaml b/compose/config/clamp/legacy/PolicyParticipantParameters.yaml
deleted file mode 100644
index 307e0b60..00000000
--- a/compose/config/clamp/legacy/PolicyParticipantParameters.yaml
+++ /dev/null
@@ -1,63 +0,0 @@
-spring:
- security:
- user:
- name: participantUser
- password: zb!XztG34
- autoconfigure:
- exclude: >
- org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration,
- org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaAutoConfiguration,
- org.springframework.boot.autoconfigure.jdbc.DataSourceTransactionManagerAutoConfiguration
-participant:
- pdpGroup: defaultGroup
- pdpType: apex
- policyApiParameters:
- clientName: api
- hostname: policy-api
- port: 6969
- userName: policyadmin
- password: zb!XztG34
- useHttps: false
- allowSelfSignedCerts: true
- policyPapParameters:
- clientName: pap
- hostname: policy-pap
- port: 6969
- userName: policyadmin
- password: zb!XztG34
- useHttps: false
- allowSelfSignedCerts: true
- intermediaryParameters:
- reportingTimeIntervalMs: 120000
- description: Participant Description
- participantId: 101c62b3-8918-41b9-a747-d21eb79c6c03
- clampAutomationCompositionTopics:
- topicSources:
- -
- topic: policy-acruntime-participant
- servers:
- - ${topicServer:kafka:9092}
- topicCommInfrastructure: kafka
- fetchTimeout: 15000
- useHttps: false
- topicSinks:
- -
- topic: policy-acruntime-participant
- servers:
- - ${topicServer:kafka:9092}
- topicCommInfrastructure: kafka
- useHttps: false
- participantSupportedElementTypes:
- - typeName: org.onap.policy.clamp.acm.PolicyAutomationCompositionElement
- typeVersion: 1.0.0
-management:
- endpoints:
- web:
- exposure:
- include: health, metrics, prometheus
-server:
- port: 6969
- ssl:
- enabled: false
- servlet:
- context-path: /onap/policy/clamp/acm/policyparticipant
diff --git a/compose/config/clamp/legacy/SimulatorParticipantParameters.yaml b/compose/config/clamp/legacy/SimulatorParticipantParameters.yaml
deleted file mode 100644
index acc1db66..00000000
--- a/compose/config/clamp/legacy/SimulatorParticipantParameters.yaml
+++ /dev/null
@@ -1,50 +0,0 @@
-spring:
- security:
- user:
- name: participantUser
- password: zb!XztG34
- autoconfigure:
- exclude:
- - org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaAutoConfiguration
- - org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration
- - org.springframework.boot.autoconfigure.jdbc.DataSourceTransactionManagerAutoConfiguration
- - org.springframework.boot.autoconfigure.data.web.SpringDataWebAutoConfiguration
-
-security:
- enable-csrf: false
-participant:
- intermediaryParameters:
- reportingTimeIntervalMs: 120000
- description: Participant Description
- participantId: ${participantId:101c62b3-8918-41b9-a747-d21eb79c6c90}
- clampAutomationCompositionTopics:
- topicSources:
- - topic: policy-acruntime-participant
- servers:
- - ${topicServer:kafka:9092}
- topicCommInfrastructure: kafka
- fetchTimeout: 15000
- useHttps: false
- topicSinks:
- - topic: policy-acruntime-participant
- servers:
- - ${topicServer:kafka:9092}
- topicCommInfrastructure: kafka
- useHttps: false
- participantSupportedElementTypes:
- -
- typeName: ${supportedElementTypeName:org.onap.policy.clamp.acm.SimAutomationCompositionElement}
- typeVersion: ${supportedElementTypeVersion:1.0.0}
-
-management:
- endpoints:
- web:
- base-path: /
- exposure:
- include: health, metrics, prometheus
-server:
- port: 6969
- ssl:
- enabled: false
- servlet:
- context-path: /onap/policy/simparticipant
diff --git a/compose/docker-compose.yml b/compose/docker-compose.yml
index b44da88f..afa05bf8 100644
--- a/compose/docker-compose.yml
+++ b/compose/docker-compose.yml
@@ -277,12 +277,13 @@ services:
OTEL_EXPORTER_OTLP_PROTOCOL: http/protobuf
OTEL_EXPORTER_OTLP_TRACES_PROTOCOL: http/protobuf
OTEL_EXPORTER_OTLP_ENDPOINT: http://jaeger:4318
+ SPRING_PROFILES_ACTIVE: ${CLAMP_PROFILE:-default}
# Tracing can be configured for grpc or http - default is http
#OTEL_EXPORTER_OTLP_PROTOCOL: grpc
#OTEL_EXPORTER_OTLP_TRACES_PROTOCOL: grpc
#OTEL_EXPORTER_OTLP_ENDPOINT: http://jaeger:4317
volumes:
- - ./${CLAMP_CONFIG_PATH:-config/clamp}/AcRuntimeParameters.yaml:/opt/app/policy/clamp/etc/AcRuntimeParameters.yaml
+ - ./config/clamp/AcRuntimeParameters.yaml:/opt/app/policy/clamp/etc/AcRuntimeParameters.yaml
- ./config/clamp/logback.xml:/opt/app/policy/clamp/etc/logback.xml:ro
- ./config/clamp/acm-runtime.sh:/opt/app/policy/clamp/bin/acm-runtime.sh:rw
- ./wait_for_port.sh:/opt/app/policy/bin/wait_for_port.sh:ro
@@ -311,8 +312,9 @@ services:
OTEL_EXPORTER_OTLP_PROTOCOL: http/protobuf
OTEL_EXPORTER_OTLP_TRACES_PROTOCOL: http/protobuf
OTEL_EXPORTER_OTLP_ENDPOINT: http://jaeger:4318
+ SPRING_PROFILES_ACTIVE: ${PPNT_PROFILE:-default}
volumes:
- - ./${PPNT_CONFIG_PATH:-config/clamp}/HttpParticipantParameters.yaml:/opt/app/policy/clamp/etc/HttpParticipantParameters.yaml
+ - ./config/clamp/HttpParticipantParameters.yaml:/opt/app/policy/clamp/etc/HttpParticipantParameters.yaml
- ./config/clamp/http-participant.sh:/opt/app/policy/clamp/bin/http-participant.sh:rw
- ./config/clamp/logback.xml:/opt/app/policy/clamp/etc/logback.xml:ro
- ./wait_for_port.sh:/opt/app/policy/bin/wait_for_port.sh:ro
@@ -333,10 +335,11 @@ services:
OTEL_EXPORTER_OTLP_PROTOCOL: http/protobuf
OTEL_EXPORTER_OTLP_TRACES_PROTOCOL: http/protobuf
OTEL_EXPORTER_OTLP_ENDPOINT: http://jaeger:4318
+ SPRING_PROFILES_ACTIVE: ${PPNT_PROFILE:-default}
ports:
- "30295:6969"
volumes:
- - ./${PPNT_CONFIG_PATH:-config/clamp}/KubernetesParticipantParameters.yaml:/opt/app/policy/clamp/etc/KubernetesParticipantParameters.yaml
+ - ./config/clamp/KubernetesParticipantParameters.yaml:/opt/app/policy/clamp/etc/KubernetesParticipantParameters.yaml
- ./config/clamp/kubernetes-participant.sh:/opt/app/policy/clamp/bin/kubernetes-participant.sh:rw
- ./config/clamp/logback.xml:/opt/app/policy/clamp/etc/logback.xml:ro
- ./wait_for_port.sh:/opt/app/policy/bin/wait_for_port.sh:ro
@@ -360,8 +363,9 @@ services:
OTEL_EXPORTER_OTLP_PROTOCOL: http/protobuf
OTEL_EXPORTER_OTLP_TRACES_PROTOCOL: http/protobuf
OTEL_EXPORTER_OTLP_ENDPOINT: http://jaeger:4318
+ SPRING_PROFILES_ACTIVE: ${PPNT_PROFILE:-default}
volumes:
- - ./${PPNT_CONFIG_PATH:-config/clamp}/PolicyParticipantParameters.yaml:/opt/app/policy/clamp/etc/PolicyParticipantParameters.yaml:ro
+ - ./config/clamp/PolicyParticipantParameters.yaml:/opt/app/policy/clamp/etc/PolicyParticipantParameters.yaml:ro
- ./config/clamp/policy-participant.sh:/opt/app/policy/clamp/bin/policy-participant.sh:rw
- ./config/clamp/logback.xml:/opt/app/policy/clamp/etc/logback.xml:ro
- ./wait_for_port.sh:/opt/app/policy/bin/wait_for_port.sh:ro
@@ -431,10 +435,11 @@ services:
OTEL_EXPORTER_OTLP_PROTOCOL: http/protobuf
OTEL_EXPORTER_OTLP_TRACES_PROTOCOL: http/protobuf
OTEL_EXPORTER_OTLP_ENDPOINT: http://jaeger:4318
+ SPRING_PROFILES_ACTIVE: ${PPNT_PROFILE:-default}
ports:
- ${SIM_PARTICIPANT_PORT}:6969
volumes:
- - ./${PPNT_CONFIG_PATH:-config/clamp}/SimulatorParticipantParameters.yaml:/opt/app/policy/clamp/etc/SimulatorParticipantParameters.yaml:ro
+ - ./config/clamp/SimulatorParticipantParameters.yaml:/opt/app/policy/clamp/etc/SimulatorParticipantParameters.yaml:ro
- ./config/clamp/sim-participant.sh:/opt/app/policy/clamp/bin/sim-participant.sh:rw
- ./config/clamp/logback.xml:/opt/app/policy/clamp/etc/logback.xml:ro
- ./wait_for_port.sh:/opt/app/policy/bin/wait_for_port.sh:ro
diff --git a/csit/run-acm-regression.sh b/csit/run-acm-regression.sh
index 677c2630..2c91bcb4 100755
--- a/csit/run-acm-regression.sh
+++ b/csit/run-acm-regression.sh
@@ -24,20 +24,20 @@ function usage() {
}
# Legacy config files for releases up to 'newdelhi'
-function release_config_path() {
+function find_release_profile() {
if [ $1 == 'master' ] || [[ "$(echo "$1" | cut -c1 )" > 'n' ]]; then
- echo "config/clamp"
+ echo "default"
else
- echo "config/clamp/legacy"
+ echo "default,legacy"
fi
}
# Legacy config files for versions before 8.0.0
-function version_config_path() {
+function find_version_profile() {
if [[ "$(printf '%s\n' "$1" "8.0.0" | sort -V | head -n 1)" == "8.0.0" ]]; then
- echo "config/clamp"
+ echo "default"
else
- echo "config/clamp/legacy"
+ echo "default,legacy"
fi
}
@@ -86,9 +86,9 @@ then
echo "Fetching image versions for all components..."
source ${COMPOSE_FOLDER}/get-versions-regression.sh $DEFAULT_BRANCH $DEFAULT_BRANCH > /dev/null 2>&1
echo "Starting Regression with ACM-R and PPNT from the default release branch $DEFAULT_BRANCH ***"
- export CLAMP_CONFIG_PATH=$(release_config_path "$DEFAULT_BRANCH")
- export PPNT_CONFIG_PATH="$CLAMP_CONFIG_PATH"
- echo "Using configuration file located at $CLAMP_CONFIG_PATH for ACM-R and $PPNT_CONFIG_PATH for PPNTS."
+ export CLAMP_PROFILE=$(find_release_profile "$DEFAULT_BRANCH")
+ export PPNT_PROFILE="$CLAMP_PROFILE"
+ echo "Using $CLAMP_PROFILE profile for ACM-R and $PPNT_PROFILE profile for PPNTS."
# Run with specific release/version
elif [ "$#" -gt 0 ]
@@ -100,9 +100,9 @@ then
echo "Fetching image versions for all components..."
source ${COMPOSE_FOLDER}/get-versions-regression.sh $2 $3 > /dev/null 2>&1
echo "*** Starting Regression with ACM-R from branch $2 and PPNT from branch $3 ***"
- export CLAMP_CONFIG_PATH=$(release_config_path $2)
- export PPNT_CONFIG_PATH=$(release_config_path $3)
- echo "Using configuration file located at $CLAMP_CONFIG_PATH for ACM-R and $PPNT_CONFIG_PATH for PPNTS."
+ export CLAMP_PROFILE=$(find_release_profile $2)
+ export PPNT_PROFILE=$(find_release_profile $3)
+ echo "Using $CLAMP_PROFILE profile for ACM-R and $PPNT_PROFILE profile for PPNTS."
;;
--version)
validate_version $2
@@ -112,9 +112,9 @@ then
export POLICY_CLAMP_VERSION=$2
export POLICY_CLAMP_PPNT_VERSION=$3
echo "*** Starting Regression with ACM-R version $2 and PPNT version $3 ***"
- export CLAMP_CONFIG_PATH=$(version_config_path "$2")
- export PPNT_CONFIG_PATH=$(version_config_path "$3")
- echo "Using configuration file located at $CLAMP_CONFIG_PATH for ACM-R and $PPNT_CONFIG_PATH for PPNTS."
+ export CLAMP_PROFILE=$(find_version_profile "$2")
+ export PPNT_PROFILE=$(find_version_profile "$3")
+ echo "Using $CLAMP_PROFILE profile for ACM-R and $PPNT_PROFILE profile for PPNTS."
;;
*)
echo "Unknown parameter: $1"