from .fixtures import elasticsearch


def test_base_os(host):
    assert host.system_info.distribution == 'centos'
    assert host.system_info.release == '7'


def test_java_home_env_var(host):
    java_path_cmdline = '$JAVA_HOME/bin/java -version'

    assert host.run(java_path_cmdline).exit_status == 0

from .fixtures import elasticsearch


def test_base_os(host):
    assert host.system_info.distribution == 'centos'
    assert host.system_info.release == '7'


def test_java_home_env_var(host):
    java_path_cmdline = '$JAVA_HOME/bin/java -version'

    assert host.run(java_path_cmdline).exit_status == 0


def test_no_core_files_exist_in_root(host):
    core_file_check_cmdline = 'ls -l /core*'

    assert host.run(core_file_check_cmdline).exit_status != 0

Add acceptance test to ensure image doesn't contain core files in /
Add acceptance test to ensure image doesn't contain core files in /

In some occasions, depending on the build platform (noticed with aufs with old docker-ce versions) may create a /corefile.<pid>.

Fail a build if the produced image containers any /core* files.

Relates #97