Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ESQL: Skip lookup csv tests on release builds #110166

Merged
merged 7 commits into from
Jul 2, 2024
Merged
Show file tree
Hide file tree
Changes from 4 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
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,8 @@ public enum Cap {
*/
DOUBLE_QUOTES_SOURCE_ENCLOSING;

private final boolean snapshotOnly;

Cap() {
snapshotOnly = false;
};
Expand All @@ -115,7 +117,9 @@ public String capabilityName() {
return name().toLowerCase(Locale.ROOT);
}

private final boolean snapshotOnly;
public boolean snapshotOnly() {
return snapshotOnly;
}
}

public static final Set<String> CAPABILITIES = capabilities();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,15 @@ public final void test() throws Throwable {
testCase.requiredCapabilities,
everyItem(in(EsqlCapabilities.CAPABILITIES))
);
} else {
for (EsqlCapabilities.Cap c : EsqlCapabilities.Cap.values()) {
if (c.snapshotOnly()) {
assumeFalse(
c.capabilityName() + " is not supported in non-snapshot releases",
testCase.requiredCapabilities.contains(c.capabilityName())
);
}
}
}

doTest();
Expand Down