setup:
- command: [docker, run, --privileged=true, --name, some-elasticsearch, -d, '$IMAGE']
- command: [sleep, 5s]

teardown:
- command: [docker, stop, some-elasticsearch]
- command: [docker, rm, some-elasticsearch]

target: some-elasticsearch
tests:
- name: Check status
  command: [wget, -q, '-O -', 'http://localhost:9200/_cat/health?h=status']
  expect:
    stdout:
      exactly: green

setup:
- command: [docker, run, --privileged=true, --name, some-elasticsearch, -d, '$IMAGE']
- command: [sleep, 30s]

teardown:
- command: [docker, stop, some-elasticsearch]
- command: [docker, rm, some-elasticsearch]

target: some-elasticsearch
tests:
- name: Check status
  command: [wget, -q, -O, -, 'http://localhost:9200/_cat/health?h=status']
  expect:
    stdout:
      equals: green

Fix for "Add a functional test"
Fix for "Add a functional test"

Change-Id: I6db2e0c2d57513a8a2b88b11e5e0c13966cd82b0
