Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlyn Normington2010-05-11 08:15:08 -0400
committerGlyn Normington2010-05-11 08:15:08 -0400
commit5dfdbe75bdf1ba2476fe2e60e62e3454a3565de7 (patch)
tree5522099ce269769cdd39fe31fbe2d20afd416a1c /org.eclipse.virgo.kernel.core/src/test/resources
parentb99bf75af622c030c6c9b479c1639925bd1ea872 (diff)
downloadorg.eclipse.virgo.kernel-5dfdbe75bdf1ba2476fe2e60e62e3454a3565de7.tar.gz
org.eclipse.virgo.kernel-5dfdbe75bdf1ba2476fe2e60e62e3454a3565de7.tar.xz
org.eclipse.virgo.kernel-5dfdbe75bdf1ba2476fe2e60e62e3454a3565de7.zip
initial checkin from dm Server kernel commit dffbc217a919cefba04886160ba820f2c6cf5f57 omitting build-kernel/bin/service
Diffstat (limited to 'org.eclipse.virgo.kernel.core/src/test/resources')
-rw-r--r--org.eclipse.virgo.kernel.core/src/test/resources/ConfigBundleTests/config_tests_badprops/noprops.properties2
-rw-r--r--org.eclipse.virgo.kernel.core/src/test/resources/ConfigBundleTests/config_tests_noprops/noise.config11
-rw-r--r--org.eclipse.virgo.kernel.core/src/test/resources/ConfigBundleTests/config_tests_noprops/noise2.config11
-rw-r--r--org.eclipse.virgo.kernel.core/src/test/resources/ConfigBundleTests/config_tests_props1/dup.properties3
-rw-r--r--org.eclipse.virgo.kernel.core/src/test/resources/ConfigBundleTests/config_tests_props2/dup.properties6
-rw-r--r--org.eclipse.virgo.kernel.core/src/test/resources/UserConfigurationPropertiesSourceTests/one.properties1
-rw-r--r--org.eclipse.virgo.kernel.core/src/test/resources/UserConfigurationPropertiesSourceTests/two.properties1
-rw-r--r--org.eclipse.virgo.kernel.core/src/test/resources/ovf/environment.xml26
-rw-r--r--org.eclipse.virgo.kernel.core/src/test/resources/ovf/invalid.xml25
-rw-r--r--org.eclipse.virgo.kernel.core/src/test/resources/ovf/valid.xml28
10 files changed, 114 insertions, 0 deletions
diff --git a/org.eclipse.virgo.kernel.core/src/test/resources/ConfigBundleTests/config_tests_badprops/noprops.properties b/org.eclipse.virgo.kernel.core/src/test/resources/ConfigBundleTests/config_tests_badprops/noprops.properties
new file mode 100644
index 00000000..b419c60e
--- /dev/null
+++ b/org.eclipse.virgo.kernel.core/src/test/resources/ConfigBundleTests/config_tests_badprops/noprops.properties
@@ -0,0 +1,2 @@
+
+!@£$%^&*()_
diff --git a/org.eclipse.virgo.kernel.core/src/test/resources/ConfigBundleTests/config_tests_noprops/noise.config b/org.eclipse.virgo.kernel.core/src/test/resources/ConfigBundleTests/config_tests_noprops/noise.config
new file mode 100644
index 00000000..f13418ca
--- /dev/null
+++ b/org.eclipse.virgo.kernel.core/src/test/resources/ConfigBundleTests/config_tests_noprops/noise.config
@@ -0,0 +1,11 @@
+{
+ "types": {
+ "int" : 123,
+ "string": "foo",
+ "boolean": true,
+ "path1": "foo/bar",
+ "path2": "/foo/bar",
+ "path3": "../../foo/bar",
+ "path4": "/foo/../bar"
+ }
+}
diff --git a/org.eclipse.virgo.kernel.core/src/test/resources/ConfigBundleTests/config_tests_noprops/noise2.config b/org.eclipse.virgo.kernel.core/src/test/resources/ConfigBundleTests/config_tests_noprops/noise2.config
new file mode 100644
index 00000000..f13418ca
--- /dev/null
+++ b/org.eclipse.virgo.kernel.core/src/test/resources/ConfigBundleTests/config_tests_noprops/noise2.config
@@ -0,0 +1,11 @@
+{
+ "types": {
+ "int" : 123,
+ "string": "foo",
+ "boolean": true,
+ "path1": "foo/bar",
+ "path2": "/foo/bar",
+ "path3": "../../foo/bar",
+ "path4": "/foo/../bar"
+ }
+}
diff --git a/org.eclipse.virgo.kernel.core/src/test/resources/ConfigBundleTests/config_tests_props1/dup.properties b/org.eclipse.virgo.kernel.core/src/test/resources/ConfigBundleTests/config_tests_props1/dup.properties
new file mode 100644
index 00000000..30aee8b2
--- /dev/null
+++ b/org.eclipse.virgo.kernel.core/src/test/resources/ConfigBundleTests/config_tests_props1/dup.properties
@@ -0,0 +1,3 @@
+# Properties file for Config Admin service configuration properties.
+test=This is a test string
+dup_prop=Duplicate property one
diff --git a/org.eclipse.virgo.kernel.core/src/test/resources/ConfigBundleTests/config_tests_props2/dup.properties b/org.eclipse.virgo.kernel.core/src/test/resources/ConfigBundleTests/config_tests_props2/dup.properties
new file mode 100644
index 00000000..f700caf3
--- /dev/null
+++ b/org.eclipse.virgo.kernel.core/src/test/resources/ConfigBundleTests/config_tests_props2/dup.properties
@@ -0,0 +1,6 @@
+# Properties file for Config Admin service configuration properties.
+test=This is a test string as well
+dup_prop=Duplicate property two
+hidden=Hidden property
+boolean=false
+integer=1024
diff --git a/org.eclipse.virgo.kernel.core/src/test/resources/UserConfigurationPropertiesSourceTests/one.properties b/org.eclipse.virgo.kernel.core/src/test/resources/UserConfigurationPropertiesSourceTests/one.properties
new file mode 100644
index 00000000..74d0a43f
--- /dev/null
+++ b/org.eclipse.virgo.kernel.core/src/test/resources/UserConfigurationPropertiesSourceTests/one.properties
@@ -0,0 +1 @@
+foo=bar
diff --git a/org.eclipse.virgo.kernel.core/src/test/resources/UserConfigurationPropertiesSourceTests/two.properties b/org.eclipse.virgo.kernel.core/src/test/resources/UserConfigurationPropertiesSourceTests/two.properties
new file mode 100644
index 00000000..eacf225c
--- /dev/null
+++ b/org.eclipse.virgo.kernel.core/src/test/resources/UserConfigurationPropertiesSourceTests/two.properties
@@ -0,0 +1 @@
+bar=baz
diff --git a/org.eclipse.virgo.kernel.core/src/test/resources/ovf/environment.xml b/org.eclipse.virgo.kernel.core/src/test/resources/ovf/environment.xml
new file mode 100644
index 00000000..9c16f830
--- /dev/null
+++ b/org.eclipse.virgo.kernel.core/src/test/resources/ovf/environment.xml
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<Environment xmlns="http://schemas.dmtf.org/ovf/environment/1"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xmlns:ovfenv="http://schemas.dmtf.org/ovf/environment/1"
+ xsi:schemaLocation="http://schemas.dmtf.org/ovf/environment/1 http://schemas.dmtf.org/ovf/environment/1/dsp8027.xsd"
+ ovfenv:id="DB1">
+
+ <!-- This example reference a local schema file, to validate against online schema use:
+ xsi:schemaLocation="http://schemas.dmtf.org/ovf/envelope/1 http://schemas.dmtf.org/ovf/envelope/1/dsp8027_1.0.0.xsd"
+ -->
+
+ <!-- Information about hypervisor platform -->
+ <PlatformSection>
+ <Kind>ESX Server</Kind>
+ <Version>3.0.1</Version>
+ <Vendor>VMware, Inc.</Vendor>
+ <Locale>en_US</Locale>
+ </PlatformSection>
+
+ <!--- Properties defined for this virtual machine -->
+ <PropertySection>
+ <Property ovfenv:key="com.myapp.foo" ovfenv:value="bar"/>
+ <Property ovfenv:key="com.myapp.bar" ovfenv:value="baz"/>
+ </PropertySection>
+
+</Environment>
diff --git a/org.eclipse.virgo.kernel.core/src/test/resources/ovf/invalid.xml b/org.eclipse.virgo.kernel.core/src/test/resources/ovf/invalid.xml
new file mode 100644
index 00000000..ee406ee4
--- /dev/null
+++ b/org.eclipse.virgo.kernel.core/src/test/resources/ovf/invalid.xml
@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<Environment xmlns="http://schemas.dmtf.org/ovf/environment/1"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xmlns:ovfenv="http://schemas.dmtf.org/ovf/environment/1"
+ xsi:schemaLocation="http://schemas.dmtf.org/ovf/environment/1 http://schemas.dmtf.org/ovf/environment/1/dsp8027.xsd"
+ ovfenv:id="DB1">
+
+ <!-- This example reference a local schema file, to validate against online schema use:
+ xsi:schemaLocation="http://schemas.dmtf.org/ovf/envelope/1 http://schemas.dmtf.org/ovf/envelope/1/dsp8027_1.0.0.xsd"
+ -->
+
+ <!-- Information about hypervisor platform -->
+ <PlatformSection>
+ <Kind>ESX Server</Kind>
+ <Version>3.0.1</Version>
+ <Vendor>VMware, Inc.</Vendor>
+ <Locale>en_US</Locale>
+ </PlatformSection>
+
+ <!--- Properties defined for this virtual machine -->
+ <PropertySection>
+ <Property ovfenv:key="cm:invalid" ovfenv:value="bar"/>
+ </PropertySection>
+
+</Environment>
diff --git a/org.eclipse.virgo.kernel.core/src/test/resources/ovf/valid.xml b/org.eclipse.virgo.kernel.core/src/test/resources/ovf/valid.xml
new file mode 100644
index 00000000..aff0fc60
--- /dev/null
+++ b/org.eclipse.virgo.kernel.core/src/test/resources/ovf/valid.xml
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<Environment xmlns="http://schemas.dmtf.org/ovf/environment/1"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xmlns:ovfenv="http://schemas.dmtf.org/ovf/environment/1"
+ xsi:schemaLocation="http://schemas.dmtf.org/ovf/environment/1 http://schemas.dmtf.org/ovf/environment/1/dsp8027.xsd"
+ ovfenv:id="DB1">
+
+ <!-- This example reference a local schema file, to validate against online schema use:
+ xsi:schemaLocation="http://schemas.dmtf.org/ovf/envelope/1 http://schemas.dmtf.org/ovf/envelope/1/dsp8027_1.0.0.xsd"
+ -->
+
+ <!-- Information about hypervisor platform -->
+ <PlatformSection>
+ <Kind>ESX Server</Kind>
+ <Version>3.0.1</Version>
+ <Vendor>VMware, Inc.</Vendor>
+ <Locale>en_US</Locale>
+ </PlatformSection>
+
+ <!--- Properties defined for this virtual machine -->
+ <PropertySection>
+ <Property ovfenv:key="cm:one:foo" ovfenv:value="bar"/>
+ <Property ovfenv:key="cm:one:bar" ovfenv:value="baz"/>
+ <Property ovfenv:key="cm:two:baz" ovfenv:value="quux"/>
+ <Property ovfenv:key="some.random.property" ovfenv:value="value"/>
+ </PropertySection>
+
+</Environment>

Back to the top