Added open closed type tests
git-svn-id: https://asterixdb.googlecode.com/svn/branches/asterix_stabilization@163 eaa15691-b419-025a-1212-ee371bd00084
diff --git a/asterix-app/src/test/resources/runtimets/queries/open-closed/open-closed-01.aql b/asterix-app/src/test/resources/runtimets/queries/open-closed/open-closed-01.aql
new file mode 100644
index 0000000..0b6d0dd
--- /dev/null
+++ b/asterix-app/src/test/resources/runtimets/queries/open-closed/open-closed-01.aql
@@ -0,0 +1,24 @@
+/*
+ * Test case Name : open-closed-01.aql
+ * Description : This test is intended to test insertion of additional data into an open type
+ * Expected Result : Success
+ * Date : April 2 2012
+ */
+
+drop dataverse test if exists;
+
+create dataverse test;
+
+use dataverse test;
+
+create type testType as{
+id : int32,
+name : string
+}
+
+create dataset testds(testType) partitioned by key id;
+
+insert into dataset testds({"id": 123, "name": "John Doe", "hobbies": {{ "scuba", "music" }} }
+);
+
+for $l in dataset("testds") return $l