Skip to content

Commit

Permalink
[TEST] test files are now .yml instead of .yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
polyfractal committed Jul 20, 2017
1 parent 20b5bd1 commit ceac5bd
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions tests/Elasticsearch/Tests/YamlRunnerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,18 +54,18 @@ class YamlRunnerTest extends \PHPUnit_Framework_TestCase

/** @var array A list of skipped test with their reasons */
private static $skippedTest = [
'cat.nodeattrs/10_basic.yaml' => 'Using java regex fails in PHP',
'cat.repositories/10_basic.yaml' => 'Using java regex fails in PHP',
'indices.shrink/10_basic.yaml' => 'Shrink tests seem to require multiple nodes',
'indices.rollover/10_basic.yaml' => 'Rollover test seems buggy atm'
'cat.nodeattrs/10_basic.yml' => 'Using java regex fails in PHP',
'cat.repositories/10_basic.yml' => 'Using java regex fails in PHP',
'indices.shrink/10_basic.yml' => 'Shrink tests seem to require multiple nodes',
'indices.rollover/10_basic.yml' => 'Rollover test seems buggy atm'
];

/** @var array A list of files to skip completely, due to fatal parsing errors */
private static $skippedFiles = [
'indices.create/10_basic.yaml' => 'Temporary: Yaml parser doesnt support "inline" empty keys',
'indices.put_mapping/10_basic.yaml' => 'Temporary: Yaml parser doesnt support "inline" empty keys',
'search/110_field_collapsing.yaml' => 'Temporary: parse error, malformed inline yaml',
'cat.nodes/10_basic.yaml' => 'Temporary: parse error, something about $body: |'
'indices.create/10_basic.yml' => 'Temporary: Yaml parser doesnt support "inline" empty keys',
'indices.put_mapping/10_basic.yml' => 'Temporary: Yaml parser doesnt support "inline" empty keys',
'search/110_field_collapsing.yml' => 'Temporary: parse error, malformed inline yaml',
'cat.nodes/10_basic.yml' => 'Temporary: parse error, something about $body: |'
];

/**
Expand Down Expand Up @@ -708,7 +708,7 @@ public function yamlProvider()
$finder = new Finder();
$finder->in($path);
$finder->files();
$finder->name('*.yaml');
$finder->name('*.yml');

$filter = isset($_SERVER['TEST_CASE']) ? $_SERVER['TEST_CASE'] : null;

Expand Down

0 comments on commit ceac5bd

Please sign in to comment.