You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@oozie.apache.org by tu...@apache.org on 2012/07/24 23:41:21 UTC
svn commit: r1365309 - in /incubator/oozie/trunk/core/src/test/resources:
wf-schema-invalid-global-ext-no-global.xml
wf-schema-valid-global-ext-no-global.xml wf-schema-valid-global-ext.xml
Author: tucu
Date: Tue Jul 24 21:41:20 2012
New Revision: 1365309
URL: http://svn.apache.org/viewvc?rev=1365309&view=rev
Log:
OOZIE-922 Amendment, adding missing files
Added:
incubator/oozie/trunk/core/src/test/resources/wf-schema-invalid-global-ext-no-global.xml
incubator/oozie/trunk/core/src/test/resources/wf-schema-valid-global-ext-no-global.xml
incubator/oozie/trunk/core/src/test/resources/wf-schema-valid-global-ext.xml
Added: incubator/oozie/trunk/core/src/test/resources/wf-schema-invalid-global-ext-no-global.xml
URL: http://svn.apache.org/viewvc/incubator/oozie/trunk/core/src/test/resources/wf-schema-invalid-global-ext-no-global.xml?rev=1365309&view=auto
==============================================================================
--- incubator/oozie/trunk/core/src/test/resources/wf-schema-invalid-global-ext-no-global.xml (added)
+++ incubator/oozie/trunk/core/src/test/resources/wf-schema-invalid-global-ext-no-global.xml Tue Jul 24 21:41:20 2012
@@ -0,0 +1,46 @@
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+<workflow-app xmlns="uri:oozie:workflow:0.4" name="test-wf">
+ <start to="a"/>
+
+ <action name="a">
+ <hive xmlns="uri:oozie:hive-action:0.2">
+ <prepare>
+ <delete path="/tmp"/>
+ <mkdir path="/tmp"/>
+ </prepare>
+ <configuration>
+ <property>
+ <name>c</name>
+ <value>C</value>
+ </property>
+ </configuration>
+ <script>script.q</script>
+ <param>INPUT=/tmp/table</param>
+ <param>OUTPUT=/tmp/hive</param>
+ </hive>
+ <ok to="c"/>
+ <error to="b"/>
+ </action>
+
+ <kill name="b">
+ <message>fail</message>
+ </kill>
+
+ <end name="c"/>
+</workflow-app>
Added: incubator/oozie/trunk/core/src/test/resources/wf-schema-valid-global-ext-no-global.xml
URL: http://svn.apache.org/viewvc/incubator/oozie/trunk/core/src/test/resources/wf-schema-valid-global-ext-no-global.xml?rev=1365309&view=auto
==============================================================================
--- incubator/oozie/trunk/core/src/test/resources/wf-schema-valid-global-ext-no-global.xml (added)
+++ incubator/oozie/trunk/core/src/test/resources/wf-schema-valid-global-ext-no-global.xml Tue Jul 24 21:41:20 2012
@@ -0,0 +1,48 @@
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+<workflow-app xmlns="uri:oozie:workflow:0.4" name="test-wf">
+ <start to="a"/>
+
+ <action name="a">
+ <hive xmlns="uri:oozie:hive-action:0.2">
+ <job-tracker>bar</job-tracker>
+ <name-node>foo</name-node>
+ <prepare>
+ <delete path="/tmp"/>
+ <mkdir path="/tmp"/>
+ </prepare>
+ <configuration>
+ <property>
+ <name>c</name>
+ <value>C</value>
+ </property>
+ </configuration>
+ <script>script.q</script>
+ <param>INPUT=/tmp/table</param>
+ <param>OUTPUT=/tmp/hive</param>
+ </hive>
+ <ok to="c"/>
+ <error to="b"/>
+ </action>
+
+ <kill name="b">
+ <message>fail</message>
+ </kill>
+
+ <end name="c"/>
+</workflow-app>
Added: incubator/oozie/trunk/core/src/test/resources/wf-schema-valid-global-ext.xml
URL: http://svn.apache.org/viewvc/incubator/oozie/trunk/core/src/test/resources/wf-schema-valid-global-ext.xml?rev=1365309&view=auto
==============================================================================
--- incubator/oozie/trunk/core/src/test/resources/wf-schema-valid-global-ext.xml (added)
+++ incubator/oozie/trunk/core/src/test/resources/wf-schema-valid-global-ext.xml Tue Jul 24 21:41:20 2012
@@ -0,0 +1,86 @@
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+<workflow-app xmlns="uri:oozie:workflow:0.4" name="test-wf">
+ <global>
+ <job-tracker>foo</job-tracker>
+ <name-node>bar</name-node>
+ <configuration>
+ <property>
+ <name>a</name>
+ <value>A</value>
+ </property>
+ <property>
+ <name>b</name>
+ <value>B</value>
+ </property>
+ </configuration>
+ </global>
+
+ <start to="a"/>
+
+ <action name="a">
+ <hive xmlns="uri:oozie:hive-action:0.2">
+ <prepare>
+ <delete path="/tmp"/>
+ <mkdir path="/tmp"/>
+ </prepare>
+ <configuration>
+ <property>
+ <name>c</name>
+ <value>C</value>
+ </property>
+ </configuration>
+ <script>script.q</script>
+ <param>INPUT=/tmp/table</param>
+ <param>OUTPUT=/tmp/hive</param>
+ </hive>
+ <ok to="b"/>
+ <error to="c"/>
+ </action>
+
+ <action name="b">
+ <distcp xmlns="uri:oozie:distcp-action:0.1">
+ <job-tracker>blah</job-tracker>
+ <name-node>meh</name-node>
+ <prepare>
+ <delete path="/tmp2"/>
+ <mkdir path="/tmp2"/>
+ </prepare>
+ <configuration>
+ <property>
+ <name>a</name>
+ <value>A2</value>
+ </property>
+ <property>
+ <name>b</name>
+ <value>B</value>
+ </property>
+ </configuration>
+ <arg>/tmp/data.txt</arg>
+ <arg>/tmp2/data.txt</arg>
+ </distcp>
+ <ok to="d"/>
+ <error to="c"/>
+ </action>
+
+ <kill name="c">
+ <message>fail</message>
+ </kill>
+
+ <end name="d"/>
+</workflow-app>