From bb972b5738831e70b98f9165dd2091d7cf5b3c11 Mon Sep 17 00:00:00 2001 From: Maros Marsalek Date: Thu, 8 Sep 2016 11:57:18 +0200 Subject: HONEYCOMB-197 Minimal distribution positive test Change-Id: I2191472f10b39a026ccde2494a7921655c57c314 Signed-off-by: Maros Marsalek --- .../src/test/resources/WEB-INF/web.xml | 89 +++++++++++++++++++++ .../src/test/resources/honeycomb-keystore | Bin 0 -> 2392 bytes .../src/test/resources/honeycomb.json | 40 +++++++++ .../src/test/resources/logback.xml | 31 +++++++ 4 files changed, 160 insertions(+) create mode 100644 infra/minimal-distribution/src/test/resources/WEB-INF/web.xml create mode 100644 infra/minimal-distribution/src/test/resources/honeycomb-keystore create mode 100644 infra/minimal-distribution/src/test/resources/honeycomb.json create mode 100644 infra/minimal-distribution/src/test/resources/logback.xml (limited to 'infra/minimal-distribution/src/test/resources') diff --git a/infra/minimal-distribution/src/test/resources/WEB-INF/web.xml b/infra/minimal-distribution/src/test/resources/WEB-INF/web.xml new file mode 100644 index 000000000..45fcce741 --- /dev/null +++ b/infra/minimal-distribution/src/test/resources/WEB-INF/web.xml @@ -0,0 +1,89 @@ + + + + + + + JAXRSRestconf + com.sun.jersey.spi.container.servlet.ServletContainer + + javax.ws.rs.Application + org.opendaylight.netconf.sal.rest.impl.RestconfApplication + + 1 + + + + JAXRSRestconf + /* + + + + GzipFilter + org.eclipse.jetty.servlets.GzipFilter + + mimeTypes + application/xml,application/yang.data+xml,xml,application/json,application/yang.data+json + + + + + GzipFilter + /* + + + + cross-origin-restconf + org.eclipse.jetty.servlets.CrossOriginFilter + + allowedOrigins + * + + + allowedMethods + GET,POST,OPTIONS,DELETE,PUT,HEAD + + + allowedHeaders + origin, content-type, accept, authorization + + + exposedHeaders + location + + + + cross-origin-restconf + /* + + + + + NB api + /* + POST + GET + PUT + PATCH + DELETE + HEAD + + + + diff --git a/infra/minimal-distribution/src/test/resources/honeycomb-keystore b/infra/minimal-distribution/src/test/resources/honeycomb-keystore new file mode 100644 index 000000000..44093dc09 Binary files /dev/null and b/infra/minimal-distribution/src/test/resources/honeycomb-keystore differ diff --git a/infra/minimal-distribution/src/test/resources/honeycomb.json b/infra/minimal-distribution/src/test/resources/honeycomb.json new file mode 100644 index 000000000..a0b2a633c --- /dev/null +++ b/infra/minimal-distribution/src/test/resources/honeycomb.json @@ -0,0 +1,40 @@ + { + "persisted-context-path": "/tmp/honeycomb/persist/context/data.json", + "persisted-context-restoration-type": "Merge", + "persisted-config-path": "/tmp/honeycomb/persist/config/data.json", + "persisted-config-restoration-type": "Merge", + + "notification-service-queue-depth": 1, + + "restconf-http-enabled": "true", + "restconf-root-path": "/restconf", + "restconf-binding-address": "127.0.0.1", + "restconf-port": 8182, + "restconf-https-enabled": "true", + "restconf-https-binding-address": "127.0.0.1", + "restconf-https-port": 8444, + "restconf-keystore": "/honeycomb-keystore", + "restconf-keystore-password": "testing", + "restconf-keystore-manager-password": "testing", + "restconf-truststore": "/honeycomb-keystore", + "restconf-truststore-password": "testing", + "restconf-websocket-port": 7780, + "restconf-pool-max-size": 10, + "restconf-pool-min-size": 1, + "restconf-acceptors-size": 1, + "restconf-selectors-size": 1, + "restconf-https-acceptors-size": 1, + "restconf-https-selectors-size": 1, + + "netconf-netty-threads": 2, + "netconf-tcp-enabled" : "true", + "netconf-tcp-binding-address": "127.0.0.1", + "netconf-tcp-binding-port": 7778, + "netconf-ssh-enabled" : "true", + "netconf-ssh-binding-address": "127.0.0.1", + "netconf-ssh-binding-port": 2832, + "netconf-notification-stream-name": "honeycomb", + + "username": "admin", + "password": "admin" +} \ No newline at end of file diff --git a/infra/minimal-distribution/src/test/resources/logback.xml b/infra/minimal-distribution/src/test/resources/logback.xml new file mode 100644 index 000000000..2ee89db4e --- /dev/null +++ b/infra/minimal-distribution/src/test/resources/logback.xml @@ -0,0 +1,31 @@ + + + + + + + %date{"yyyy-MM-dd HH:mm:ss.SSS z"} [%thread] %-5level %logger{36} - %msg%n + + + + + + + + + + -- cgit 1.2.3-korg