@@ -37,10 +37,15 @@ class YamlTests
37
37
// use of _internal APIs
38
38
'free/cluster.desired_nodes/10_basic.yml ' ,
39
39
'free/cluster.desired_nodes/20_dry_run.yml ' ,
40
- 'free/health/ '
40
+ 'free/health/ ' ,
41
+ 'free/cluster.desired_balance/10_basic.yml ' ,
42
+ 'free/cluster.prevalidate_node_removal/10_basic.yml '
41
43
];
42
44
43
45
const SKIPPED_TEST_OSS = [
46
+ 'Aggregations\_HistogramTest::HistogramProfiler ' => "[histogram] field doesn't support values of type: VALUE_BOOLEAN " ,
47
+ 'Aggregations\_Percentiles_BucketTest::* ' => 'Array index with float ' ,
48
+ 'Aggregations\_Time_SeriesTest::BasicTest ' => 'Unknown aggregation type [time_series] ' ,
44
49
'Cat\Nodeattrs\_10_BasicTest::TestCatNodesAttrsOutput ' => 'Regexp error, it seems not compatible with PHP ' ,
45
50
'Cat\Shards\_10_BasicTest::TestCatShardsOutput ' => 'Regexp error, it seems not compatible with PHP ' ,
46
51
'Cat\Templates\_10_BasicTest::FilteredTemplates ' => 'regex mismatch ' ,
@@ -51,7 +56,6 @@ class YamlTests
51
56
'Indices\PutTemplate\_10_BasicTest::PutTemplateCreate ' => 'index_template [test] already exists ' ,
52
57
'Indices\Refresh\_10_BasicTest::IndicesRefreshTestEmptyArray ' => 'empty array? ' ,
53
58
'Indices\SimulateIndexTemplate\_10_BasicTest::SimulateIndexTemplateWithIndexNotMatchingAnyTemplate ' => 'Bool mismatch ' ,
54
- 'Search\Aggregation\_10_HistogramTest::HistogramProfiler ' => "Error reading 'n' field from YAML " ,
55
59
'Snapshot\Create\_10_BasicTest::CreateASnapshot ' => 'Invalid snapshot name [test_snapshot] ' ,
56
60
'Snapshot\Create\_10_BasicTest::CreateASnapshotAndCleanUpRepository ' => 'Invalid snapshot name [test_snapshot] ' ,
57
61
];
@@ -60,12 +64,8 @@ class YamlTests
60
64
'ApiKey\_10_BasicTest::TestGetApiKey ' => 'Mismatch values ' ,
61
65
'ApiKey\_20_QueryTest::TestQueryApiKey ' => 'Mismatch values ' ,
62
66
'DataStream\_80_Resolve_Index_Data_StreamsTest::* ' => 'Skipped all tests ' ,
63
- 'License\_20_Put_LicenseTest::CurrentLicenseIsTrialMeansNotEligleToStartTrial ' => 'License issue ' ,
64
- 'License\_20_Put_LicenseTest::MustAcknowledgeToStartBasic ' => 'License issue ' ,
65
- 'License\_20_Put_LicenseTest::InstallingAndGettingLicenseWorks ' => 'Invalid license ' ,
66
- 'License\_20_Put_LicenseTest::ShouldInstallAFeatureTypeLicense ' => 'Invalid license ' ,
67
- 'License\_20_Put_LicenseTest::CanStartBasicLicenseIfDoNotAlreadyHaveBasic ' => 'Invalid license ' ,
68
- 'License\_30_Enterprise_LicenseTest::InstallingEnterpriseLicense ' => 'Invalid license ' ,
67
+ 'License\_20_Put_LicenseTest::* ' => 'License issue ' ,
68
+ 'License\_30_Enterprise_LicenseTest::* ' => 'Invalid license ' ,
69
69
'Ml\_Jobs_CrudTest::TestPutJobWithModel_memory_limitAsStringAndLazyOpen ' => 'Memory limit ' ,
70
70
'Ml\_Data_Frame_Analytics_CrudTest::TestPutClassificationGivenNum_top_classesIsLessThanZero ' => 'No error catched ' ,
71
71
'Ml\_Set_Upgrade_ModeTest::* ' => 'Skipped all tests ' ,
@@ -89,7 +89,8 @@ class YamlTests
89
89
'RuntimeFields\_40_DateTest::GetMapping ' => 'String mismatch ' ,
90
90
'RuntimeFields\_50_IpTest::GetMapping ' => 'String mismatch ' ,
91
91
'RuntimeFields\_60_BooleanTest::GetMapping ' => 'String mismatch ' ,
92
- 'SearchableSnapshots\_10_UsageTest::TestsSearchableSnapshotsUsageStatsWithFull_copyAndShared_cacheIndices ' => 'Mismatch values ' ,
92
+ 'SearchableSnapshots\_10_UsageTest::* ' => 'Mismatch values ' ,
93
+ 'SearchableSnapshots\_20_Synthetic_SourceTest::* ' => 'no_shard_available_action_exception ' ,
93
94
'ServiceAccounts\_10_BasicTest::TestServiceAccountTokens ' => 'Count mismatch ' ,
94
95
'Snapshot\_10_BasicTest::CreateASourceOnlySnapshotAndThenRestoreIt ' => 'Snapshot name already exists ' ,
95
96
'Snapshot\_20_Operator_Privileges_DisabledTest::OperatorOnlySettingsCanBeSetAndRestoredByNonoperatorUserWhenOperatorPrivilegesIsDisabled ' => 'Count mismatch ' ,
@@ -163,7 +164,8 @@ private function getAllTests(string $dir): array
163
164
continue ;
164
165
}
165
166
$ content = file_get_contents ($ file ->getPathname ());
166
- $ content = str_replace (' y: ' , " 'y': " , $ content ); // replace "y:" with "'y':" due the y/true conversion in YAML 1.1
167
+ $ content = str_replace (' y: ' , " 'y': " , $ content ); // replace y: with 'y': due the y/true conversion in YAML 1.1
168
+ $ content = str_replace (' n: ' , " 'n': " , $ content ); // replace n: with 'n': due the n/false conversion in YAML 1.1
167
169
try {
168
170
$ test = yaml_parse ($ content , -1 , $ ndocs , [
169
171
YAML_MAP_TAG => function ($ value , $ tag , $ flags ) {
0 commit comments