Skip to content

Commit 5812ed5

Browse files
committed
Fixed profiling tests + skipped tests
1 parent c8f32a2 commit 5812ed5

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

src/Endpoints/Profiling.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ public function flamegraph(array $params = [])
5757
$url = $this->addQueryString($url, $params, ['pretty','human','error_trace','source','filter_path']);
5858
$headers = [
5959
'Accept' => 'application/json',
60+
'Content-Type' => 'application/json'
6061
];
6162
return $this->client->sendRequest($this->createRequest($method, $url, $headers, $params['body'] ?? null));
6263
}
@@ -91,6 +92,7 @@ public function stacktraces(array $params = [])
9192
$url = $this->addQueryString($url, $params, ['pretty','human','error_trace','source','filter_path']);
9293
$headers = [
9394
'Accept' => 'application/json',
95+
'Content-Type' => 'application/json'
9496
];
9597
return $this->client->sendRequest($this->createRequest($method, $url, $headers, $params['body'] ?? null));
9698
}

util/YamlTests.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ class YamlTests
3939
'free/cluster.desired_nodes/20_dry_run.yml',
4040
'free/health/',
4141
'free/cluster.desired_balance/10_basic.yml',
42-
'free/cluster.prevalidate_node_removal/10_basic.yml'
42+
'free/cluster.prevalidate_node_removal/10_basic.yml',
43+
'free/cluster.desired_nodes/11_old_format.yml'
4344
];
4445

4546
const SKIPPED_TEST_OSS = [
@@ -55,6 +56,7 @@ class YamlTests
5556
'Indices\GetIndexTemplate\_10_BasicTest::*' => 'Bool mismatch',
5657
'Indices\PutTemplate\_10_BasicTest::PutTemplateCreate' => 'index_template [test] already exists',
5758
'Indices\Refresh\_10_BasicTest::IndicesRefreshTestEmptyArray' => 'empty array?',
59+
'Indices\ResolveCluster\_10_Basic_Resolve_ClusterTest::TestResolveClusterOptionalParamsAreAccepted' => 'Bool mismatch',
5860
'Indices\SimulateIndexTemplate\_10_BasicTest::SimulateIndexTemplateWithIndexNotMatchingAnyTemplate' => 'Bool mismatch',
5961
'Search\Vectors\_90_Sparse_VectorTest::SparseVectorIn800X8110' => 'Undefined array key error',
6062
'Snapshot\Create\_10_BasicTest::CreateASnapshot' => 'Invalid snapshot name [test_snapshot]',
@@ -66,6 +68,7 @@ class YamlTests
6668
'ApiKey\_10_BasicTest::TestGetApiKey' => 'Mismatch values',
6769
'ApiKey\_20_QueryTest::TestQueryApiKey' => 'Mismatch values',
6870
'DataStream\_80_Resolve_Index_Data_StreamsTest::*' => 'Skipped all tests',
71+
'Dlm\_10_UsageTest::TestDataStreamLifecycleUsageStats' => 'Mismatch values',
6972
'Esql\_30_TypesTest::Unsigned_long' => 'Format number issue',
7073
'Health\_10_UsageTest::UsageStatsOnTheHealthAPI' => 'Undefined array key \"green\"',
7174
'License\_20_Put_LicenseTest::*' => 'License issue',
@@ -105,6 +108,7 @@ class YamlTests
105108
'Token\_10_BasicTest::TestInvalidateRealmsTokens' => 'Mismatch values',
106109
'Transform\_Transforms_CrudTest::TestDeleteTransformWhenItDoesNotExist' => 'Invalid version format: TRANSFORM HTTP/1.1',
107110
'UnsignedLong\*' => 'Skipped all tests',
111+
'Users\_40_QueryTest::TestQueryUser' => 'Mismatch values',
108112
'Vectors\_30_Sparse_Vector_BasicTest::DeprecatedFunctionSignature' => 'Failed asserting contains string',
109113
];
110114

0 commit comments

Comments
 (0)