Skip to content

Seed Integration Testing

Jonathan Meyer edited this page Oct 18, 2017 · 4 revisions
  • Input testing
  • Output testing

Create a Seed job-type to perform basic input / output. I'm going to do this by updating the read-bytes job. Sample read-bytes job-type definition:

{
    "docker_image": "geoint/read-bytes",
    "interface": {
  "seedVersion": "1.0.0",
  "job": {
    "name": "read-bytes",
    "jobVersion": "1.0.0",
    "packageVersion": "1.0.0",
    "title": "Read Bytes",
    "description": "Reads x bytes of an input file and writes to output dir",
    "maintainer": {
      "name": "Jonathan Meyer",
      "organization": "Applied Information Sciences",
      "email": "[email protected]"
    },
    "timeout": 3600,
    "interface": {
      "command": "1024 ${INPUT_FILE} ${OUTPUT_DIR}",
      "inputs": {
        "files": [
          {
            "name": "INPUT_FILE"
          }
        ]
      },
      "outputs": {
        "files": [
          {
            "name": "OUTPUT_FILE",
            "pattern": "output_file/*"
          }
        ]
      }
    }
  }
}
}
Clone this wiki locally