From 32ff3e346b875442a04119c7376697dc5eee8513 Mon Sep 17 00:00:00 2001 From: vempo Date: Wed, 24 Oct 2018 06:18:06 +0000 Subject: Moved config tests into config module Change-Id: I7b99fdeeeb66f5de9bcd9283d815976c3d7520b0 Issue-ID: SDC-1867 Signed-off-by: vempo --- .../resources/FallbackToGlobalNS/config-NS.properties | 13 +++++++++++++ .../src/test/resources/FallbackToGlobalNS/config.json | 12 ++++++++++++ .../resources/FallbackToGlobalNS/config.properties | 3 +++ .../src/test/resources/FallbackToGlobalNS/config.xml | 19 +++++++++++++++++++ .../src/test/resources/FallbackToGlobalNS/config.yaml | 8 ++++++++ 5 files changed, 55 insertions(+) create mode 100644 common/onap-common-configuration-management/onap-configuration-management-core/src/test/resources/FallbackToGlobalNS/config-NS.properties create mode 100644 common/onap-common-configuration-management/onap-configuration-management-core/src/test/resources/FallbackToGlobalNS/config.json create mode 100644 common/onap-common-configuration-management/onap-configuration-management-core/src/test/resources/FallbackToGlobalNS/config.properties create mode 100644 common/onap-common-configuration-management/onap-configuration-management-core/src/test/resources/FallbackToGlobalNS/config.xml create mode 100644 common/onap-common-configuration-management/onap-configuration-management-core/src/test/resources/FallbackToGlobalNS/config.yaml (limited to 'common/onap-common-configuration-management/onap-configuration-management-core/src/test/resources/FallbackToGlobalNS') diff --git a/common/onap-common-configuration-management/onap-configuration-management-core/src/test/resources/FallbackToGlobalNS/config-NS.properties b/common/onap-common-configuration-management/onap-configuration-management-core/src/test/resources/FallbackToGlobalNS/config-NS.properties new file mode 100644 index 0000000000..b7e985b90a --- /dev/null +++ b/common/onap-common-configuration-management/onap-configuration-management-core/src/test/resources/FallbackToGlobalNS/config-NS.properties @@ -0,0 +1,13 @@ +artifact.name.maxlength=14 +artifact.extension=pdf, zip, xml +artifact.supportedEncryption=Base64 +artifact.supportedEncryption=MD5 +artifact.name.allowedChar=a-zA-Z +artifact.name.allowedchar=a-zA-Z +artifact.status=deleted +artifact.status=Deleted +artifact.persistLocation=/opt/spool, ${sys:user.home}/asdc +artifact.jsonSchema=@GeneratorsList.json +artifact.xmlSchema=@${env:path}/myschema.json +artifact.consumerAPPC=${artifact.consumer} +_config.namespace=FallbackToGlobalNS \ No newline at end of file diff --git a/common/onap-common-configuration-management/onap-configuration-management-core/src/test/resources/FallbackToGlobalNS/config.json b/common/onap-common-configuration-management/onap-configuration-management-core/src/test/resources/FallbackToGlobalNS/config.json new file mode 100644 index 0000000000..165e318d38 --- /dev/null +++ b/common/onap-common-configuration-management/onap-configuration-management-core/src/test/resources/FallbackToGlobalNS/config.json @@ -0,0 +1,12 @@ +{ + "artifact": { + "name": { + "minlength": "6" + }, + "extension": "pdf,tgz,xls" + }, + "_config": { + "namespace": "FallbackToGlobalNS", + "mergeStrategy": "union" + } +} \ No newline at end of file diff --git a/common/onap-common-configuration-management/onap-configuration-management-core/src/test/resources/FallbackToGlobalNS/config.properties b/common/onap-common-configuration-management/onap-configuration-management-core/src/test/resources/FallbackToGlobalNS/config.properties new file mode 100644 index 0000000000..4daad19dcc --- /dev/null +++ b/common/onap-common-configuration-management/onap-configuration-management-core/src/test/resources/FallbackToGlobalNS/config.properties @@ -0,0 +1,3 @@ +maxCachedBufferSize=1024 +artifact.maxsize=1024 +artifact.name.maxlength=28 \ No newline at end of file diff --git a/common/onap-common-configuration-management/onap-configuration-management-core/src/test/resources/FallbackToGlobalNS/config.xml b/common/onap-common-configuration-management/onap-configuration-management-core/src/test/resources/FallbackToGlobalNS/config.xml new file mode 100644 index 0000000000..9e45acf8d4 --- /dev/null +++ b/common/onap-common-configuration-management/onap-configuration-management-core/src/test/resources/FallbackToGlobalNS/config.xml @@ -0,0 +1,19 @@ + + + + + 28 + + gz,tgz + Base64 + deleted + + true + + + <_config> + FallbackToGlobalNS + merge + + + \ No newline at end of file diff --git a/common/onap-common-configuration-management/onap-configuration-management-core/src/test/resources/FallbackToGlobalNS/config.yaml b/common/onap-common-configuration-management/onap-configuration-management-core/src/test/resources/FallbackToGlobalNS/config.yaml new file mode 100644 index 0000000000..46f50b6087 --- /dev/null +++ b/common/onap-common-configuration-management/onap-configuration-management-core/src/test/resources/FallbackToGlobalNS/config.yaml @@ -0,0 +1,8 @@ +artifact: + name: + allowedChar: "a-zA-Z_0-9" + encoded: true + consumer: "appc,catalog" + _config: + namespace: "FallbackToGlobalNS" + mergeStrategy: "override" -- cgit 1.2.3-korg