From 5055dee7d7197456197af8766f6b007a531af0cf Mon Sep 17 00:00:00 2001 From: Geora Barsky Date: Mon, 25 Sep 2017 13:15:22 -0400 Subject: Sniro Emulator - Adjust project to use oparent Use oparent as a parent artifact Change-Id: I0f08837fefeff296a37f8ddc5dcb6f85daf13afc JIRA-ID: INT-215 Signed-off-by: Geora Barsky --- test/mocks/sniroemulator/pom.xml | 65 +++++++++++++++++++++- .../test/mocks/sniroemulator/MockApplication.java | 20 +++++++ .../sniroemulator/extension/WebhookDefinition.java | 19 +++++++ .../mocks/sniroemulator/extension/Webhooks.java | 19 +++++++ .../mocks/sniroemulator/MockApplicationTests.java | 23 +++++++- 5 files changed, 141 insertions(+), 5 deletions(-) diff --git a/test/mocks/sniroemulator/pom.xml b/test/mocks/sniroemulator/pom.xml index aa437500d..f7c91bf47 100644 --- a/test/mocks/sniroemulator/pom.xml +++ b/test/mocks/sniroemulator/pom.xml @@ -10,12 +10,17 @@ onap sniro emulator project based on Spring Boot + org.onap.oparent + oparent + 0.1.1 + + + - +--> ${basedir}/target UTF-8 @@ -23,8 +28,51 @@ 1.8 2.8.9 9.2.22.v20170606 + org.onap.integration.test.mocks.sniroemulator.MockApplication + + + + org.eclipse.jetty + jetty-http + ${jetty.version} + + + org.eclipse.jetty + jetty-security + ${jetty.version} + + + org.eclipse.jetty + jetty-util + ${jetty.version} + + + org.eclipse.jetty + jetty-xml + ${jetty.version} + + + org.eclipse.jetty + jetty-io + ${jetty.version} + + + org.eclipse.jetty + jetty-continuation + ${jetty.version} + + + org.springframework.boot + spring-boot-dependencies + 1.5.7.RELEASE + pom + import + + + + org.springframework.boot @@ -134,6 +182,16 @@ org.springframework.boot spring-boot-maven-plugin + + + + repackage + + + + + ${start-class} + maven-dependency-plugin @@ -170,8 +228,9 @@ docker-maven-plugin 0.4.11 - ${docker.push.registry}/onap/${project.artifactId} + openecomp/${project.artifactId} ${dockerLocation} + docker-hub latest diff --git a/test/mocks/sniroemulator/src/main/java/org/onap/integration/test/mocks/sniroemulator/MockApplication.java b/test/mocks/sniroemulator/src/main/java/org/onap/integration/test/mocks/sniroemulator/MockApplication.java index 5e47c7ca0..714d3a340 100644 --- a/test/mocks/sniroemulator/src/main/java/org/onap/integration/test/mocks/sniroemulator/MockApplication.java +++ b/test/mocks/sniroemulator/src/main/java/org/onap/integration/test/mocks/sniroemulator/MockApplication.java @@ -1,3 +1,23 @@ +/*- + * ============LICENSE_START======================================================= + * org.onap.integration + * ================================================================================ + * Copyright (C) 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========================================================= + */ + package org.onap.integration.test.mocks.sniroemulator; import static com.github.tomakehurst.wiremock.client.ResponseDefinitionBuilder.responseDefinition; diff --git a/test/mocks/sniroemulator/src/main/java/org/onap/integration/test/mocks/sniroemulator/extension/WebhookDefinition.java b/test/mocks/sniroemulator/src/main/java/org/onap/integration/test/mocks/sniroemulator/extension/WebhookDefinition.java index cccf06018..60592b3f0 100644 --- a/test/mocks/sniroemulator/src/main/java/org/onap/integration/test/mocks/sniroemulator/extension/WebhookDefinition.java +++ b/test/mocks/sniroemulator/src/main/java/org/onap/integration/test/mocks/sniroemulator/extension/WebhookDefinition.java @@ -1,3 +1,22 @@ +/*- + * ============LICENSE_START======================================================= + * org.onap.integration + * ================================================================================ + * Copyright (C) 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========================================================= + */ package org.onap.integration.test.mocks.sniroemulator.extension; import com.fasterxml.jackson.annotation.JsonCreator; diff --git a/test/mocks/sniroemulator/src/main/java/org/onap/integration/test/mocks/sniroemulator/extension/Webhooks.java b/test/mocks/sniroemulator/src/main/java/org/onap/integration/test/mocks/sniroemulator/extension/Webhooks.java index 12d52f4d4..e3fc286cb 100644 --- a/test/mocks/sniroemulator/src/main/java/org/onap/integration/test/mocks/sniroemulator/extension/Webhooks.java +++ b/test/mocks/sniroemulator/src/main/java/org/onap/integration/test/mocks/sniroemulator/extension/Webhooks.java @@ -1,3 +1,22 @@ +/*- + * ============LICENSE_START======================================================= + * org.onap.integration + * ================================================================================ + * Copyright (C) 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========================================================= + */ package org.onap.integration.test.mocks.sniroemulator.extension; import com.github.tomakehurst.wiremock.common.Notifier; diff --git a/test/mocks/sniroemulator/src/test/java/org/onap/integration/test/mocks/sniroemulator/MockApplicationTests.java b/test/mocks/sniroemulator/src/test/java/org/onap/integration/test/mocks/sniroemulator/MockApplicationTests.java index a5911cbdb..dfaf68e4c 100644 --- a/test/mocks/sniroemulator/src/test/java/org/onap/integration/test/mocks/sniroemulator/MockApplicationTests.java +++ b/test/mocks/sniroemulator/src/test/java/org/onap/integration/test/mocks/sniroemulator/MockApplicationTests.java @@ -1,3 +1,23 @@ +/*- + * ============LICENSE_START======================================================= + * org.onap.integration + * ================================================================================ + * Copyright (C) 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========================================================= + */ + package org.onap.integration.test.mocks.sniroemulator; import org.junit.Test; @@ -10,7 +30,6 @@ import org.springframework.test.context.junit4.SpringRunner; public class MockApplicationTests { @Test - public void contextLoads() { + public void contextLoads() { } - } -- cgit 1.2.3-korg