summaryrefslogtreecommitdiffstats
path: root/common-app-api/src/test/resources/config
diff options
context:
space:
mode:
authorm.kowalski3 <m.kowalski3@partner.samsung.com>2019-05-29 16:07:52 +0200
committerOren Kleks <orenkle@amdocs.com>2019-05-30 10:14:52 +0000
commit937803bdd4b6e459093e42d784195a60556a7021 (patch)
tree293ff78115acccf18bdeab69b9b03b63a41a8b4e /common-app-api/src/test/resources/config
parentdc5e4d94869c09c3961e58dd149d6f9150b80256 (diff)
Add unit tests for ConfigurationManager
Issue-ID: SDC-2327 Signed-off-by: Marcin Kowalski <m.kowalski3@partner.samsung.com> Change-Id: I2acfba224c46ffa743a254b1c560767b947f8fdd
Diffstat (limited to 'common-app-api/src/test/resources/config')
-rw-r--r--common-app-api/src/test/resources/config/common/configuration.yaml62
-rw-r--r--common-app-api/src/test/resources/config/common/ecomp-error-configuration.yaml25
-rw-r--r--common-app-api/src/test/resources/config/common/error-configuration.yaml26
3 files changed, 113 insertions, 0 deletions
diff --git a/common-app-api/src/test/resources/config/common/configuration.yaml b/common-app-api/src/test/resources/config/common/configuration.yaml
new file mode 100644
index 0000000000..59d4121116
--- /dev/null
+++ b/common-app-api/src/test/resources/config/common/configuration.yaml
@@ -0,0 +1,62 @@
+identificationHeaderFields:
+ - HTTP_IV_USER
+
+# catalog backend hostname
+beFqdn: localhost
+# sdccatalog.com
+
+# catalog backend http port
+beHttpPort: 8080
+
+# catalog backend http context
+beContext: /sdc/rest/config/get
+
+# catalog backend protocol
+beProtocol: http
+
+# catalog backend ssl port
+beSslPort: 8443
+
+version: 1.1.0
+released: 2012-11-30
+toscaConformanceLevel: 8.0
+minToscaConformanceLevel: 3.0
+
+titanCfgFile: /home/vagrant/catalog-be/config/catalog-be/titan.properties
+titanInMemoryGraph: false
+titanLockTimeout: 1800
+
+# The interval to try and reconnect to titan DB when it is down during ASDC startup:
+titanReconnectIntervalInSeconds: 3
+
+# The read timeout towards Titan DB when health check is invoked:
+titanHealthCheckReadTimeout: 1
+
+# The interval to try and reconnect to Elasticsearch when it is down during ASDC startup:
+esReconnectIntervalInSeconds: 3
+uebHealthCheckReconnectIntervalInSeconds: 15
+uebHealthCheckReadTimeout: 4
+
+# Protocols
+protocols:
+ - http
+ - https
+
+# Default imports
+defaultImports:
+ - nodes:
+ file: nodes.yml
+ - datatypes:
+ file: data.yml
+ - capabilities:
+ file: capabilities.yml
+ - relationships:
+ file: relationships.yml
+ - groups:
+ file: groups.yml
+ - policies:
+ file: policies.yml
+
+# Users
+users:
+ tom: passwd
diff --git a/common-app-api/src/test/resources/config/common/ecomp-error-configuration.yaml b/common-app-api/src/test/resources/config/common/ecomp-error-configuration.yaml
new file mode 100644
index 0000000000..64bd77e0bb
--- /dev/null
+++ b/common-app-api/src/test/resources/config/common/ecomp-error-configuration.yaml
@@ -0,0 +1,25 @@
+errors:
+
+ BeRestApiGeneralError: {
+ type: SYSTEM_ERROR,
+ code: ASDC_4000,
+ severity: ERROR,
+ description: "Unexpected error during BE REST API execution",
+ alarmSeverity: CRITICAL
+ }
+
+ BeHealthCheckError: {
+ type: SYSTEM_ERROR,
+ code: ASDC_3010,
+ severity: ERROR,
+ description: "Error during BE Health Check",
+ alarmSeverity: CRITICAL
+ }
+
+ BeInitializationError: {
+ type: SYSTEM_ERROR,
+ code: ASDC_4019,
+ severity: ERROR,
+ description: "Catalog-BE was not initialized properly",
+ alarmSeverity: CRITICAL
+ } \ No newline at end of file
diff --git a/common-app-api/src/test/resources/config/common/error-configuration.yaml b/common-app-api/src/test/resources/config/common/error-configuration.yaml
new file mode 100644
index 0000000000..9db9bbdc58
--- /dev/null
+++ b/common-app-api/src/test/resources/config/common/error-configuration.yaml
@@ -0,0 +1,26 @@
+# Errors
+errors:
+ OK: {
+ code: 200,
+ message: "OK"
+ }
+ CREATED: {
+ code: 201,
+ message: "OK"
+ }
+ NO_CONTENT: {
+ code: 204,
+ message: "No Content"
+ }
+#--------POL4050-----------------------------
+ NOT_ALLOWED: {
+ code: 405,
+ message: "Error: Method not allowed.",
+ messageId: "POL4050"
+ }
+#--------POL5000-----------------------------
+ GENERAL_ERROR: {
+ code: 500,
+ message: "Error: Internal Server Error. Please try again later.",
+ messageId: "POL5000"
+ }