Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions config/assembler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 5 additions & 0 deletions config/navigation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
9 changes: 6 additions & 3 deletions tests/Elastic.ApiExplorer.Tests/XReqAuthTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -158,17 +158,21 @@ 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)
continue;
foreach (var httpOp in p.Value.Operations)
{
if (opCount >= 5)
goto done;
{
earlyExit = true;
break;
}
var lines = OpenApiXReqAuthParser.TryGetPrerequisiteLines(
httpOp.Value,
null,
Expand All @@ -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");
}
}
Loading