Skip to content

Commit b1a3f39

Browse files
committed
Added skip on classname + updated skip YAML set
1 parent c93339f commit b1a3f39

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

util/YamlTests.php

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -74,14 +74,12 @@ class YamlTests
7474
'RuntimeFields\_50_IpTest::GetMapping' => 'String mismatch',
7575
'RuntimeFields\_60_BooleanTest::GetMapping' => 'String mismatch',
7676
'SearchableSnapshots\_10_UsageTest::TestsSearchableSnapshotsUsageStatsWithFull_copyAndShared_cacheIndices' => 'Mismatch values',
77+
'ServiceAccounts\_10_BasicTest::TestServiceAccountTokens' => 'Count mismatch',
7778
'Snapshot\_10_BasicTest::CreateASourceOnlySnapshotAndThenRestoreIt' => 'Snapshot name already exists',
7879
'Snapshot\_20_Operator_Privileges_DisabledTest::OperatorOnlySettingsCanBeSetAndRestoredByNonoperatorUserWhenOperatorPrivilegesIsDisabled' => 'Count mismatch',
7980
'Ssl\_10_BasicTest::TestGetSSLCertificates' => 'Mismatch values',
8081
'Transform\_Transforms_CrudTest::TestDeleteTransformWhenItDoesNotExist' => 'Invalid version format: TRANSFORM HTTP/1.1',
81-
'UnsignedLong\_10_BasicTest::*' => 'Skipped all tests',
82-
'UnsignedLong\_20_Null_ValueTest::*' => 'Skipped all tests',
83-
'UnsignedLong\_30_Multi_FieldsTest::*' => 'Skipped all tests',
84-
'UnsignedLong\_50_Script_ValuesTest::*' => 'Skipped all tests',
82+
'UnsignedLong\*' => 'Skipped all tests',
8583
'Vectors\_30_Sparse_Vector_BasicTest::DeprecatedFunctionSignature' => 'Failed asserting contains string',
8684
];
8785

@@ -189,10 +187,11 @@ public function build(): array
189187

190188
$skippedTest = sprintf("%s\\%s::%s", $namespace, $testName, $functionName);
191189
$skippedAllTest = sprintf("%s\\%s::*", $namespace, $testName);
190+
$skippedAllFiles = sprintf("%s\\*", $namespace);
192191
$skip = strtolower(self::$testSuite) === 'free'
193192
? self::SKIPPED_TEST_OSS
194193
: self::SKIPPED_TEST_XPACK;
195-
if (isset($skip[$skippedAllTest])) {
194+
if (isset($skip[$skippedAllFiles]) || isset($skip[$skippedAllTest])) {
196195
$allSkipped = true;
197196
$functions .= self::render(
198197
self::TEMPLATE_FUNCTION_SKIPPED,

0 commit comments

Comments
 (0)