This repository has been archived by the owner on Dec 14, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from SimonJPegg/feature/testWorkflows
feature/testWorkflows: added basic workflow tester
- Loading branch information
Showing
20 changed files
with
1,244 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package org.antipathy.scoozie | ||
|
||
/** | ||
* Base trait for obtaining job properties | ||
*/ | ||
private[scoozie] trait JobProperties { | ||
|
||
/** | ||
* Get the job properties | ||
*/ | ||
def jobProperties: String | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
src/main/scala/org/antipathy/scoozie/exception/LoopingException.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package org.antipathy.scoozie.exception | ||
|
||
/** | ||
* Thrown when a loop is detected in a workfloe | ||
*/ | ||
class LoopingException(message: String, cause: Throwable = null) | ||
extends RuntimeException(message, cause) |
7 changes: 7 additions & 0 deletions
7
src/main/scala/org/antipathy/scoozie/exception/NoSchemaException.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package org.antipathy.scoozie.exception | ||
|
||
/** | ||
* Thrown when unable to find a schema for an oozie artifact | ||
*/ | ||
class NoSchemaException(message: String, cause: Throwable = null) | ||
extends RuntimeException(message, cause) |
7 changes: 7 additions & 0 deletions
7
src/main/scala/org/antipathy/scoozie/exception/TransitionException.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package org.antipathy.scoozie.exception | ||
|
||
/** | ||
* Thrown when transition between oozie nodes is impossible | ||
*/ | ||
class TransitionException(message: String, cause: Throwable = null) | ||
extends RuntimeException(message, cause) |
15 changes: 15 additions & 0 deletions
15
src/main/scala/org/antipathy/scoozie/testing/Visitor.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package org.antipathy.scoozie.testing | ||
|
||
import org.antipathy.scoozie.Node | ||
import scala.collection.immutable.Seq | ||
|
||
/** | ||
* Class for visiting oozie nodes | ||
* | ||
* @param visited list of oozie nodes | ||
* @param failed true if the last node failed | ||
* @param nextNodeOption the next node to visit | ||
*/ | ||
private[testing] case class Visitor(visited: Seq[Seq[String]], | ||
failed: Boolean = false, | ||
nextNodeOption: Option[Node] = None) |
Oops, something went wrong.