diff --git a/config/assembler.yml b/config/assembler.yml index 93a543c345..df948d852c 100644 --- a/config/assembler.yml +++ b/config/assembler.yml @@ -199,6 +199,11 @@ references: detection-rules: checkout_strategy: full + # @elastic/obs-docs + autoops-insights: + private: true + sparse_paths: ["generated/docs"] + # @elastic/docs-engineering docs-builder: current: 9.0 diff --git a/config/navigation.yml b/config/navigation.yml index 14b502d12d..671cec6bc4 100644 --- a/config/navigation.yml +++ b/config/navigation.yml @@ -611,6 +611,11 @@ toc: - toc: docs-content://reference/machine-learning path_prefix: reference/machine-learning + # AutoOps insights + # https://github.com/elastic/autoops-insights/blob/main/generated/docs/elasticsearch/toc.yml + - toc: autoops-insights://elasticsearch + path_prefix: reference/autoops-insights + # Search UI # https://github.com/elastic/search-ui/blob/main/docs/reference/toc.yml - toc: search-ui://reference diff --git a/tests/Elastic.ApiExplorer.Tests/XReqAuthTests.cs b/tests/Elastic.ApiExplorer.Tests/XReqAuthTests.cs index 1e7090127f..25ea13d368 100644 --- a/tests/Elastic.ApiExplorer.Tests/XReqAuthTests.cs +++ b/tests/Elastic.ApiExplorer.Tests/XReqAuthTests.cs @@ -158,9 +158,10 @@ public async Task KibanaStyleSample_FirstPathsLackXReqAuth() var opCount = 0; var pathCount = 0; + var earlyExit = false; foreach (var p in doc.Paths) { - if (pathCount >= 3) + if (earlyExit || pathCount >= 3) break; pathCount++; if (p.Value.Operations is null) @@ -168,7 +169,10 @@ public async Task KibanaStyleSample_FirstPathsLackXReqAuth() foreach (var httpOp in p.Value.Operations) { if (opCount >= 5) - goto done; + { + earlyExit = true; + break; + } var lines = OpenApiXReqAuthParser.TryGetPrerequisiteLines( httpOp.Value, null, @@ -179,7 +183,6 @@ public async Task KibanaStyleSample_FirstPathsLackXReqAuth() opCount++; } } - done: opCount.Should().BeGreaterThan(0, "sample should have at least one operation in the first 3 paths"); } }