<groupId>org.onap.music</groupId>
<artifactId>MUSIC-core</artifactId>
<packaging>jar</packaging>
- <version>3.2.38-SNAPSHOT</version>
+ <version>3.2.40-SNAPSHOT</version>
<description>
This is the MUSIC core interface, packaged as a jar file.
</description>
<parent>
<groupId>org.onap.music</groupId>
<artifactId>MUSIC</artifactId>
- <version>3.2.38-SNAPSHOT</version>
+ <version>3.2.40-SNAPSHOT</version>
</parent>
<properties>
Cluster cluster;
if(MusicUtil.getCassName() != null && MusicUtil.getCassPwd() != null) {
- String cassPwd = CipherUtil.decryptPKC(MusicUtil.getCassPwd());
+ String cassPwd;
+ if (MusicUtil.getCipherEncKey() != null && !("").equals(MusicUtil.getCipherEncKey())) {
+ cassPwd = CipherUtil.decryptPKC(MusicUtil.getCassPwd());
+ } else {
+ cassPwd = MusicUtil.getCassPwd();
+ }
logger.info(EELFLoggerDelegate.applicationLogger,
"Building with credentials "+MusicUtil.getCassName()+" & "+ MusicUtil.getCassPwd());
cluster = Cluster.builder().withPort(MusicUtil.getCassandraPort())
dataStore = new MusicDataStore(cluster, session);
}
- @Test
- public void testMusicDataStore() {
- //MusicDataStore mds = new MusicDataStore();
- }
@Test
public void testMusicDataStoreClusterSession() {
import org.junit.Test;
public class JsonSelectTest {
+ JsonSelect js = new JsonSelect();
@Test
public void testGetConsistencyInfo() {
- JsonSelect js = new JsonSelect();
Map<String, String> mapSs = new HashMap<>();
mapSs.put("k1", "one");
js.setConsistencyInfo(mapSs);
@Test
public void testSerialize() throws IOException {
- JsonSelect js = new JsonSelect();
Map<String, String> mapSs = new HashMap<>();
mapSs.put("Key", "Value");
js.setConsistencyInfo(mapSs);
js.serialize();
}
+ @Test
+ public void testGetKeyspaceName() {
+ js.setKeyspaceName("testkeyspace");
+ assertEquals("testkeyspace",js.getKeyspaceName());
+
+ }
+
+ @Test
+ public void testGetTableName() {
+ js.setTableName("testkeyspace");
+ assertEquals("testkeyspace",js.getTableName());
+
+ }
+
}
<groupId>org.onap.music</groupId>
<artifactId>MUSIC-rest</artifactId>
<packaging>jar</packaging>
- <version>3.2.38-SNAPSHOT</version>
+ <version>3.2.40-SNAPSHOT</version>
<description>
This is the MUSIC Spring-based REST service.
</description>
<parent>
<groupId>org.onap.music</groupId>
<artifactId>MUSIC</artifactId>
- <version>3.2.38-SNAPSHOT</version>
+ <version>3.2.40-SNAPSHOT</version>
</parent>
<properties>
<dependency>
<groupId>org.onap.music</groupId>
<artifactId>MUSIC-core</artifactId>
- <version>3.2.38-SNAPSHOT</version>
+ <version>3.2.40-SNAPSHOT</version>
</dependency>
<!-- Jersey -->
<dependency>
import org.springframework.context.support.PropertySourcesPlaceholderConfigurer;
import org.springframework.stereotype.Component;
-@PropertySource(value = {"file:/opt/app/music/etc/music.properties", "classpath:/project.properties","file:/opt/app/music/etc/key.properties"})
+@PropertySource(value = {"file:/opt/app/music/etc/music.properties", "classpath:/project.properties"})
+//"file:/opt/app/music/etc/key.properties"
@Component
public class PropertiesLoader implements InitializingBean {
@Value("${music.aaf.ns}")
private String musicAafNs;
- @Value("${cipher.enc.key}")
+ @Value("${cipher.enc.key:}")
private String cipherEncKey;
@SuppressWarnings("unused")
<groupId>org.onap.music</groupId>
<artifactId>MUSIC</artifactId>
<packaging>pom</packaging>
- <version>3.2.38-SNAPSHOT</version>
+ <version>3.2.40-SNAPSHOT</version>
<description>
This is the MUSIC project.
</description>
--- /dev/null
+distribution_type: 'container'
+container_release_tag: '3.2.38'
+project: 'music'
+log_dir: 'music-maven-docker-stage-master/336'
+ref: fd5224f4aaf68e6ae186ef8a163edd7f5b2966f7
+containers:
+ - name: 'music/music_sb'
+ version: '3.2.38-latest'
--- /dev/null
+---
+distribution_type: 'maven'
+version: '3.2.38'
+project: 'music'
+log_dir: 'music-maven-stage-master/353/'
--- /dev/null
+distribution_type: 'container'
+container_release_tag: '3.2.39'
+project: 'music'
+log_dir: 'music-maven-docker-stage-master/338'
+ref: 99f396136789182931fbded1127856247593d91b
+containers:
+ - name: 'music/music_sb'
+ version: '3.2.39-latest'
--- /dev/null
+---
+distribution_type: 'maven'
+version: '3.2.39'
+project: 'music'
+log_dir: 'music-maven-stage-master/354/'
--- /dev/null
+distribution_type: 'container'
+container_release_tag: '3.2.40'
+project: 'music'
+log_dir: 'music-maven-docker-stage-master/340'
+ref: 0c173cdf44af313e376f1e8ae4fd6e6973c6c20b
+containers:
+ - name: 'music/music_sb'
+ version: '3.2.40-latest'
--- /dev/null
+---
+distribution_type: 'maven'
+version: '3.2.40'
+project: 'music'
+log_dir: 'music-maven-stage-master/357/'
major=3
minor=2
-patch=38
+patch=40
base_version=${major}.${minor}.${patch}