diff options
Diffstat (limited to 'src')
20 files changed, 40 insertions, 388 deletions
diff --git a/src/main/config/ajsc-jetty.xml b/src/main/config/ajsc-jetty.xml index 9fe7b77..be3fff4 100644 --- a/src/main/config/ajsc-jetty.xml +++ b/src/main/config/ajsc-jetty.xml @@ -86,9 +86,9 @@ <!-- SSL Keystore configuration --> <New id="sslContextFactory" class="org.eclipse.jetty.util.ssl.SslContextFactory"> - <Set name="KeyStorePath"><SystemProperty name="AJSC_HOME" />/bundleconfig/etc/keystore.jks</Set> - <Set name="KeyStorePassword">Messaging for All</Set> - <Set name="KeyManagerPassword">Messaging for All</Set> + <Set name="KeyStorePath"><SystemProperty name="AJSC_HOME" />/bundleconfig/etc/org.onap.dmaap.mr.jks</Set> + <Set name="KeyStorePassword">jkspassword</Set> + <Set name="KeyManagerPassword">jkspassword</Set> </New> <Call id="sslConnector" name="addConnector"> <Arg> diff --git a/src/main/config/cadi.properties b/src/main/config/cadi.properties index a79bb8d..a64bab5 100644 --- a/src/main/config/cadi.properties +++ b/src/main/config/cadi.properties @@ -3,15 +3,15 @@ aaf_url=https://AAF_LOCATE_URL/AAF_NS.service:2.1 aaf_env=DEV aaf_lur=org.onap.aaf.cadi.aaf.v2_0.AAFLurPerm -cadi_truststore=/appl/dmaapMR1/etc/truststoreONAPall.jks -cadi_truststore_password=changeit +cadi_truststore=/appl/dmaapMR1/etc/org.onap.dmaap.mr.trust.jks +cadi_truststore_password=enc:gvXm0E9p-_SRNw5_feOUE7wqXBxgxV3S_bdAyB08Sq9F35cCUZHWgQyKIDtTAbEw -cadi_keyfile=/appl/dmaapMR1/etc/keyfilenew +cadi_keyfile=/appl/dmaapMR1/etc/org.onap.dmaap.mr.keyfile cadi_alias=dmaapmr@mr.dmaap.onap.org cadi_keystore=/appl/dmaapMR1/etc/org.onap.dmaap.mr.p12 -cadi_keystore_password=Messaging for All -cadi_x509_issuers=CN=intermediateCA_1, OU=OSAAF, O=ONAP, C=US +cadi_keystore_password=enc:pLMCzQzk-OP7IpYNi0TPtQSkNcraFAdarZG8HbdOKq4BycW6g_7mfhphLhOZo6ht +cadi_x509_issuers=CN=intermediateCA_1, OU=OSAAF, O=ONAP, C=US:CN=intermediateCA_7, OU=OSAAF, O=ONAP, C=US:CN=intermediateCA_9, OU=OSAAF, O=ONAP, C=US cadi_loglevel=INFO diff --git a/src/main/config/caet.properties b/src/main/config/caet.properties index 54305e4..0757a7f 100644 --- a/src/main/config/caet.properties +++ b/src/main/config/caet.properties @@ -19,7 +19,3 @@ # ECOMP is a trademark and service mark of AT&T Intellectual Property. # ############################################################################### -#caet_service=http://DME2RESOLVE/service=com.att.csid.CAET/version=3/envContext=TEST/routeOffer=TEST_CAET -#caet_service=http://DME2RESOLVE/service=com.att.csid.CAET/version=3/envContext=TEST/routeOffer=D3A_CAET -#caet_service=dme2://DME2RESOLVE/service=com.att.csid.CAET/version=4.0/envContext=TEST/routeOffer=TEST_CAET -caet_service=http://DME2RESOLVE/service=com.att.csid.CAET/version=4.0/envContext=TEST/routeOffer=TEST_CAET
\ No newline at end of file diff --git a/src/main/config/keyfilenew b/src/main/config/keyfilenew deleted file mode 100644 index 884375f..0000000 --- a/src/main/config/keyfilenew +++ /dev/null @@ -1,27 +0,0 @@ -Riwh4gx5yeqp3KFVdmuREXNlB2ie9JSWKRBR08cNhaubYzsoAlCgOYu8g1OuA735u59jaRwAtLxt -5m3aMD5MJZ1ItS4x6CeGCKQ0X3F3OzDRsIv-6iDBhlKdOX9pdR8UF7CBqgqbDmvhg3D-h2JcoYJ4 -uzCPI0ZMXeUELkB3l1ZyhsiDrI892AL_VOxQhhsZk1E3P4UFmhfy_579OCVRVhC38xvL0vrtWkHK -5-1wO3enzrt_p2Jrv-LTgNHTwLF7djyesb55FC9VlTqCrvIomBXvG6NaFuy9_tNJ507ees1_KfTh -4_BVWfZwoXx8ZXWG9_Pu-S8qKn-f8HtgbJnvAW9wze0H7jpRmOQ1nattTqq7sUTgBT-gzzMsFFH9 -61Mwf_OZc41PneLK9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yj2zHTLMeuSqqPuPeiyGPtblkWUC-gpEJxgK8hTb1LzoZVZeteqgdMKlde -Q0gmI_0CX5RtCjITSlHaKxzw6ly9qqv52GZVpAYlu2SWeFdlCg9txh2ke0x3rTMKsM8i0ccCdmLq -E60akH2bPa4vB7zRiu3im-IVli9V8zz8U2roQrfN08IJCAatSQRVfUiyAAJkOEcghuHmaErA-kD8 -fu0sWuAHsEgKBtfaeOu5OFeyeLmNRiPKpVotMyDHrEjjBW-TVTppWwgN5Utmx80RghSmzwUjglyG -3aaM3iJqp8xvgtlLtoJkq2A8rMbw0eAQ7I33hAn-jfBkmjsVkzsVgffe5xqGA1DDYm1lTkv4OjFX -_tTzYfN2V1BtYNUN_edhQRMsNh5-mpZwOeb5JpdJQFZUXaFtwDedx_sqe54NEJ4jV7w4up7H0MXp -WTazMQmwRzsLTs1U8zeJ0Ib0LAb4EsX6DML3Ue87nmYCj450KE9DM0tYGWn13jiGWoDEhW4noi2X -gkcjwIcM-87wwvsb-rMIOdo2DXQee8zKzB51N4YAn4VBUfjXVMhjjSwg40yHlzKQE0hAOuJN
\ No newline at end of file diff --git a/src/main/config/org.onap.dmaap.mr.keyfile b/src/main/config/org.onap.dmaap.mr.keyfile new file mode 100644 index 0000000..8d07c91 --- /dev/null +++ b/src/main/config/org.onap.dmaap.mr.keyfile @@ -0,0 +1,27 @@ +7Fyq0ekAS4OuD_1ceEI_yRJkXkUrwXxuAg8iwuA8VGsHHsSHQ4K3qOMpohP80HTeCvCi9nlLCHHq +FSiHDcGSaK3Dd0yY33PvYbaQ1117JonMrLxkkXt2452NodIpqcmzEBUdSP9QospaenQoECzD0Ddd +H-R8yn5l3g96nqoDFf6rC8p_baT9u2ysRg9XSAbRPd96v73bSUXOJ39YWBepQU112yPghJk4OUNw +wnugkhmgkllGuxyWLhz7xuiCPJi5Pa8ZKm8ClStV_rRVzJ-zfhwEwcAARni5BryQfFtk7v2kK8KO +ECGQTJTbfItp1jJx16gYHNxc-BJd_XJ_8Ygx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5iiqIFwfmyvE7SXM3epR3bmrhAAmEVCxdTYh8 +Xp-DJAx9R7EhQLZlz_ynnykTZDjbjgYoCzgEVzgcs8E6uWEZoT4ajgTfrAN9SQIi99xiNCHYo0BF +InuVAx_HSE8nrGgJOAsUxvs8BTuKvvi_6zPD4zJB0UodKXlkn1nnckeU-cwVo0oIME17Rrr3zjlD +1kJfqN0Xteixj8kYx6qUyPg1wB0nu5JoWZ_8oAAppevFcU-H8TyCoIzxh0I3SBZ-9G9nQZjfhsz0 +KKZfVjaYpuWYQ_eDmMRQ84HZYabcZ7mRbWCHuW1-iecIQbB8UmLf3_5W2BO2Cy0sY_jgTUx8YOgC +_rh-kjhwnt8_k-0mpxSlf1TxGSP7_6_rEjtYaxYoSo4Wdc3rdQwbZWOcUYytyivbxIkA45Q0qG2N +GyDEfV9hH6XxZn5M3aZsKVfGW95Gre7vvkMlWZi0NoifCJ-JTebJsvBglTUn-Vy0vXfQ5_88DyN5 +E-3BakAtTlYrcIrt1Cp6SjkPFA6Ia96dYoEk-Eto_3GulHb1cA-BiAwvsnXA6MVAWXPfvUc6M0Rl +GiBQBMNds-g8u4ldGHJ_Wbu1O5RZxvjsRz4VWyXVh-ii3fBcs_YFGH8Ggmr_l1_uUH3z1jJE
\ No newline at end of file diff --git a/src/main/config/org.onap.dmaap.mr.p12 b/src/main/config/org.onap.dmaap.mr.p12 Binary files differindex 79549ed..1cffc61 100644 --- a/src/main/config/org.onap.dmaap.mr.p12 +++ b/src/main/config/org.onap.dmaap.mr.p12 diff --git a/src/main/config/org.onap.dmaap.mr.trust.jks b/src/main/config/org.onap.dmaap.mr.trust.jks Binary files differnew file mode 100644 index 0000000..5fccb66 --- /dev/null +++ b/src/main/config/org.onap.dmaap.mr.trust.jks diff --git a/src/main/config/truststoreONAPall.jks b/src/main/config/truststoreONAPall.jks Binary files differdeleted file mode 100644 index 2da1dcc..0000000 --- a/src/main/config/truststoreONAPall.jks +++ /dev/null diff --git a/src/main/java/org/onap/dmaap/filemonitor/ServicePropertiesListener.java b/src/main/java/org/onap/dmaap/filemonitor/ServicePropertiesListener.java index 56cccca..6a4629c 100644 --- a/src/main/java/org/onap/dmaap/filemonitor/ServicePropertiesListener.java +++ b/src/main/java/org/onap/dmaap/filemonitor/ServicePropertiesListener.java @@ -23,7 +23,6 @@ import java.io.File; -//import com.att.ssf.filemonitor.FileChangedListener; /** * Class ServicePropertiesListener * @author rajashree.khare diff --git a/src/main/resources/docker-compose/docker-compose.yml b/src/main/resources/docker-compose/docker-compose.yml index 3631a95..c278e11 100644 --- a/src/main/resources/docker-compose/docker-compose.yml +++ b/src/main/resources/docker-compose/docker-compose.yml @@ -1,12 +1,12 @@ version: '2' services: zookeeper: - image: nexus3.onap.org:10001/onap/dmaap/zookeeper:5.0.0 + image: nexus3.onap.org:10001/onap/dmaap/zookeeper:6.0.0 ports: - "2181:2181" kafka: - image: nexus3.onap.org:10001/onap/dmaap/kafka111:1.0.0 + image: nexus3.onap.org:10001/onap/dmaap/kafka111:1.0.1 ports: - "9092:9092" environment: @@ -37,7 +37,7 @@ services: - zookeeper dmaap: - image: nexus3.onap.org:10001/onap/dmaap/dmaap-mr:1.1.13 + image: nexus3.onap.org:10001/onap/dmaap/dmaap-mr:1.1.14 ports: - "3904:3904" - "3905:3905" diff --git a/src/main/scripts/cambria.sh b/src/main/scripts/cambria.sh deleted file mode 100644 index f74aa7b..0000000 --- a/src/main/scripts/cambria.sh +++ /dev/null @@ -1,49 +0,0 @@ -#!/bin/sh -#******************************************************************************* -# ============LICENSE_START======================================================= -# org.onap.dmaap -# ================================================================================ -# Copyright © 2017 AT&T Intellectual Property. All rights reserved. -# ================================================================================ -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# ============LICENSE_END========================================================= -# -# ECOMP is a trademark and service mark of AT&T Intellectual Property. -# -#******************************************************************************* - -# switched this from CAMBRIA_API_HOME, which should be declared in the env. -# harmless to overwrite it here, but it's confusing to do so. -BASE_DIR=`dirname "$0"`/.. - -# use JAVA_HOME if provided -if [ -n "${CAMBRIA_JAVA_HOME}" ]; then - JAVA=${CAMBRIA_JAVA_HOME}/bin/java -elif [ -n "${JAVA_HOME}" ]; then - JAVA=${JAVA_HOME}/bin/java -else - JAVA=java -fi - -# use the logs dir set in environment, or the installation's logs dir if not set -if [ -z "$CAMBRIA_LOGS_HOME" ]; then - CAMBRIA_LOGS_HOME=$BASE_DIR/logs -fi - -mkdir -p ${CAMBRIA_LOGS_HOME} -# run java. The classpath is the etc dir for config files, and the lib dir -# for all the jars. -# -# don't pipe stdout/stderr to /dev/null here - some diagnostic info is available only there. -# also don't assume the run is in the background. the caller should take care of that. -# -$JAVA -cp ${BASE_DIR}/etc:${BASE_DIR}/lib/* com.att.nsa.cambria.CambriaApiServer $* >${CAMBRIA_LOGS_HOME}/console.log 2>&1 diff --git a/src/main/scripts/cambriaJsonPublisher.sh b/src/main/scripts/cambriaJsonPublisher.sh deleted file mode 100644 index 9dbc4c7..0000000 --- a/src/main/scripts/cambriaJsonPublisher.sh +++ /dev/null @@ -1,41 +0,0 @@ -#!/bin/bash -#******************************************************************************* -# ============LICENSE_START======================================================= -# org.onap.dmaap -# ================================================================================ -# Copyright © 2017 AT&T Intellectual Property. All rights reserved. -# ================================================================================ -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# ============LICENSE_END========================================================= -# -# ECOMP is a trademark and service mark of AT&T Intellectual Property. -# -#******************************************************************************* - -# -# act as a simple cambria publisher, requires wget -# -# usage: -# cambriaPublisher <broker> <topic> -# - -KEY=$3 -if [ "$3" == "" ] -then - KEY=`hostname -f` -fi - -while read LINE -do - wget -q --header "Content-Type: application/json" --post-data="{ \"cambria.partition\":\"$KEY\", \"msg\":\"$LINE\" }" -O - $1/events/$2 >/dev/null -done - diff --git a/src/main/scripts/cambriaMonitor.sh b/src/main/scripts/cambriaMonitor.sh deleted file mode 100644 index 0a8727c..0000000 --- a/src/main/scripts/cambriaMonitor.sh +++ /dev/null @@ -1,40 +0,0 @@ -#!/bin/bash -#******************************************************************************* -# ============LICENSE_START======================================================= -# org.onap.dmaap -# ================================================================================ -# Copyright © 2017 AT&T Intellectual Property. All rights reserved. -# ================================================================================ -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# ============LICENSE_END========================================================= -# -# ECOMP is a trademark and service mark of AT&T Intellectual Property. -# -#******************************************************************************* - -# -# act as a simple cambria consumer, requires wget -# -# usage: -# cambriaMonitor <broker> <topic> <group> <id> <timeout> -# - -while : -do - wget -q -O - $1/events/$2/$3/$4?timeout=$5\&pretty=1 - if [ $? -ne 0 ] - then - sleep 10 - fi - echo -done - diff --git a/src/main/scripts/cambriaMonitorWithAuth.sh b/src/main/scripts/cambriaMonitorWithAuth.sh deleted file mode 100644 index 4ee2908..0000000 --- a/src/main/scripts/cambriaMonitorWithAuth.sh +++ /dev/null @@ -1,43 +0,0 @@ -#!/bin/bash -#******************************************************************************* -# ============LICENSE_START======================================================= -# org.onap.dmaap -# ================================================================================ -# Copyright © 2017 AT&T Intellectual Property. All rights reserved. -# ================================================================================ -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# ============LICENSE_END========================================================= -# -# ECOMP is a trademark and service mark of AT&T Intellectual Property. -# -#******************************************************************************* - -# -# act as a simple cambria consumer, requires wget -# -# usage: -# cambriaMonitor <broker> <topic> <group> <id> <timeout> -# - -while : -do - DATE=`date` - SIGNATURE=`echo -n "$DATE" | openssl sha1 -hmac $CAMBRIA_APISECRET -binary | openssl base64` - - wget -q --header "X-CambriaAuth: $CAMBRIA_APIKEY:$SIGNATURE" --header "X-CambriaDate: $DATE" -O - $1/events/$2/$3/$4?timeout=$5\&pretty=1 - if [ $? -ne 0 ] - then - sleep 10 - fi - echo -done - diff --git a/src/main/scripts/cambriaSimpleTextPubWithAuth.sh b/src/main/scripts/cambriaSimpleTextPubWithAuth.sh deleted file mode 100644 index 1623726..0000000 --- a/src/main/scripts/cambriaSimpleTextPubWithAuth.sh +++ /dev/null @@ -1,38 +0,0 @@ -#!/bin/bash -#******************************************************************************* -# ============LICENSE_START======================================================= -# org.onap.dmaap -# ================================================================================ -# Copyright © 2017 AT&T Intellectual Property. All rights reserved. -# ================================================================================ -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# ============LICENSE_END========================================================= -# -# ECOMP is a trademark and service mark of AT&T Intellectual Property. -# -#******************************************************************************* - -# -# act as a simple cambria publisher, requires wget -# -# usage: -# cambriaPublisher <broker> <topic> -# - -DATE=`date` -SIGNATURE=`echo -n "$DATE" | openssl sha1 -hmac $CAMBRIA_APISECRET -binary | openssl base64` - -while read LINE -do - wget -q --header "Content-Type: text/plain" --header "X-CambriaAuth: $CAMBRIA_APIKEY:$SIGNATURE" --header "X-CambriaDate: $DATE" --post-data="$LINE" -O - $1/events/$2 >/dev/null -done - diff --git a/src/main/scripts/cambriaSimpleTextPublisher.sh b/src/main/scripts/cambriaSimpleTextPublisher.sh deleted file mode 100644 index 4aacd8a..0000000 --- a/src/main/scripts/cambriaSimpleTextPublisher.sh +++ /dev/null @@ -1,35 +0,0 @@ -#!/bin/bash -#******************************************************************************* -# ============LICENSE_START======================================================= -# org.onap.dmaap -# ================================================================================ -# Copyright © 2017 AT&T Intellectual Property. All rights reserved. -# ================================================================================ -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# ============LICENSE_END========================================================= -# -# ECOMP is a trademark and service mark of AT&T Intellectual Property. -# -#******************************************************************************* - -# -# act as a simple cambria publisher, requires wget -# -# usage: -# cambriaPublisher <broker> <topic> -# - -while read LINE -do - wget -q --header "Content-Type: text/plain" --post-data="$LINE" -O - $1/events/$2 >/dev/null -done - diff --git a/src/main/scripts/cambriaTool.sh b/src/main/scripts/cambriaTool.sh deleted file mode 100644 index a9d6e15..0000000 --- a/src/main/scripts/cambriaTool.sh +++ /dev/null @@ -1,55 +0,0 @@ -#!/bin/sh -#******************************************************************************* -# ============LICENSE_START======================================================= -# org.onap.dmaap -# ================================================================================ -# Copyright © 2017 AT&T Intellectual Property. All rights reserved. -# ================================================================================ -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# ============LICENSE_END========================================================= -# -# ECOMP is a trademark and service mark of AT&T Intellectual Property. -# -#******************************************************************************* - -# switched this from CAMBRIA_API_HOME, which should be declared in the env. -# harmless to overwrite it here, but it's confusing to do so. -BASE_DIR=`dirname "$0"`/.. - -# determin a path separator that works for this platform -PATHSEP=":" -case "$(uname -s)" in - - Darwin) - ;; - - Linux) - ;; - - CYGWIN*|MINGW32*|MSYS*) - PATHSEP=";" - ;; - - *) - ;; -esac - -# use JAVA_HOME if provided -if [ -n "${CAMBRIA_JAVA_HOME}" ]; then - JAVA=${CAMBRIA_JAVA_HOME}/bin/java -elif [ -n "${JAVA_HOME}" ]; then - JAVA=${JAVA_HOME}/bin/java -else - JAVA=java -fi - -$JAVA -cp ${BASE_DIR}/etc${PATHSEP}${BASE_DIR}/lib/* com.att.nsa.cambria.tools.ConfigTool $* diff --git a/src/main/scripts/swmpkgclean.sh b/src/main/scripts/swmpkgclean.sh deleted file mode 100644 index 7e6bc51..0000000 --- a/src/main/scripts/swmpkgclean.sh +++ /dev/null @@ -1,42 +0,0 @@ -#!/bin/bash -#******************************************************************************* -# ============LICENSE_START======================================================= -# org.onap.dmaap -# ================================================================================ -# Copyright © 2017 AT&T Intellectual Property. All rights reserved. -# ================================================================================ -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# ============LICENSE_END========================================================= -# -# ECOMP is a trademark and service mark of AT&T Intellectual Property. -# -#******************************************************************************* - -# SWM can only store a finite amount of packages in its repository, so this script deletes the oldest package. -# This script is run by Jenkins after the build is finished (post SWM upload). - -SWM_COMPONENT="com.att.nsa:msgrtr" - -SWM_PKGS=`/opt/app/swm/aftswmcli/bin/swmcli "component pkglist -c $SWM_COMPONENT -df -dh -dj -sui"` -SWM_PKGS_COUNT=`echo "$SWM_PKGS" | wc -l` -SWM_PKGS_OLDEST=`echo "$SWM_PKGS" | head -1` -SWM_PKGS_MAX_COUNT=2 - -if [ $SWM_PKGS_COUNT > $SWM_PKGS_MAX_COUNT ] -then - SWM_PKG_OLDEST_VERSION=`echo $SWM_PKGS_OLDEST | awk '{print $2}'` - - # Delete the oldest package for this component from the SWM repository - /opt/app/swm/aftswmcli/bin/swmcli "component pkgdelete -c $SWM_COMPONENT:$SWM_PKG_OLDEST_VERSION" -else - echo "No need to clean up SWM, package count ($SWM_PKGS_COUNT) is below threshold ($SWM_PKGS_MAX_COUNT)" -fi diff --git a/src/main/swm/descriptor.xml b/src/main/swm/descriptor.xml index d42cf1b..2ff49b4 100644 --- a/src/main/swm/descriptor.xml +++ b/src/main/swm/descriptor.xml @@ -266,7 +266,7 @@ required="false" /> <variableDescription key="SOA_CLOUD_NAMESPACE" description="the Namespace used for GRM service registrations" - defaultValue="com.att.ajsc" required="false" /> + defaultValue="org.onap.dmaap" required="false" /> <variableDescription key="AFT_SERVICE_ENV" description="the AFT Servie Env found within CSI used for GRM service registrations (routeOffer)" defaultValue="DEFAULT" required="false" /> diff --git a/src/main/swm/notes.txt b/src/main/swm/notes.txt index 7c617d6..640343a 100644 --- a/src/main/swm/notes.txt +++ b/src/main/swm/notes.txt @@ -1,6 +1,6 @@ # (c) 2012 AT&T Intellectual Property. All rights reserved. -NOTES FOR com.att.nsa:dmaap - Version 0.0.1-SNAPSHOT +NOTES FOR org.onap:dmaap - Version 0.0.1-SNAPSHOT ======================================================= This package was created at ${maven.build.timestamp}. |