This repository has been archived by the owner on Feb 27, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
A few more abstractions and a test case definitions... tests still to…
… done
- Loading branch information
Showing
6 changed files
with
135 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package enginetest | ||
|
||
// The ArtifactTestCase contains information sufficient to test artifact | ||
// extration from an engine. | ||
type ArtifactTestCase struct { | ||
Engine string | ||
// Path of a file containing the string "Hello World" | ||
HelloWorldFilePath string | ||
// Path to a file that doesn't exist, and will return ErrResourceNotFound | ||
FileNotFoundPath string | ||
// Path to a folder that doesn't exist, and will return ErrResourceNotFound | ||
FolderNotFoundPath string | ||
// Path to a folder that contains: A.txt, B.txt and C/C.txt, each containing | ||
// the string "Hello World" | ||
NestedFolderPath string | ||
// Payload that will generate a ResultSet containing paths described above. | ||
Payload 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package enginetest | ||
|
||
// The EnvVarTestCase contains information sufficient to setting an environment | ||
// variable. | ||
type EnvVarTestCase struct { | ||
Engine string | ||
// Valid name for an environment variable. | ||
VariableName string | ||
// Invalid environment variable name. | ||
InvalidVariableName string | ||
// Payload that will print the value of VariableName to the log. | ||
Payload 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
package enginetest | ||
|
||
import "github.com/taskcluster/taskcluster-worker/engines" | ||
|
||
// The ShellTestCase contains information sufficient to test the interactive | ||
// shell provided by a Sandbox | ||
type ShellTestCase struct { | ||
Engine string | ||
// Command to pipe to the Shell over stdin | ||
Command string | ||
// Result to expect from the Shell on stdout | ||
Stdout string | ||
// Result to expect from the Shell on stderr | ||
Stderr string | ||
// Payload for the engine that will contain an interactive environment as | ||
// described above. | ||
Payload string | ||
} | ||
|
||
// The DisplayTestCase contains information sufficient to test the interactive | ||
// display provided by a Sandbox | ||
type DisplayTestCase struct { | ||
Engine string | ||
// List of display that should be returned from Sandbox.ListDisplays(), | ||
// They will all be opened to ensure that they are in fact VNC connections. | ||
Displays []engines.Display | ||
// Name of a display that does not exist, it will be attempted opened to | ||
// check that this failure is handled gracefully. | ||
InvalidDisplayName string | ||
// Payload for the engine that will contain an interactive environment as | ||
// described above. | ||
Payload 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