This is an automated email from the ASF dual-hosted git repository.
mhubail pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/asterixdb.git
The following commit(s) were added to refs/heads/master by this push:
new 8e9972c1d6 [ASTERIXDB-3390][STO]: Add GCS Substitution in Tests
8e9972c1d6 is described below
commit 8e9972c1d606ba4b562d5b94df128d500a55f17c
Author: Savyasach Reddy <[email protected]>
AuthorDate: Thu May 9 13:19:13 2024 +0530
[ASTERIXDB-3390][STO]: Add GCS Substitution in Tests
Change-Id: Ib2f2c71fae06767b62e944f55d7a37a5cad79ab4
Reviewed-on: https://asterix-gerrit.ics.uci.edu/c/asterixdb/+/18276
Integration-Tests: Jenkins <[email protected]>
Tested-by: Jenkins <[email protected]>
Reviewed-by: Murtadha Hubail <[email protected]>
---
.../java/org/apache/asterix/test/common/TestExecutor.java | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git
a/asterixdb/asterix-app/src/test/java/org/apache/asterix/test/common/TestExecutor.java
b/asterixdb/asterix-app/src/test/java/org/apache/asterix/test/common/TestExecutor.java
index f95111e733..20fef82fef 100644
---
a/asterixdb/asterix-app/src/test/java/org/apache/asterix/test/common/TestExecutor.java
+++
b/asterixdb/asterix-app/src/test/java/org/apache/asterix/test/common/TestExecutor.java
@@ -2376,6 +2376,8 @@ public class TestExecutor {
str = applyS3Substitution(str, placeholders);
} else if
(placeholder.getValue().equalsIgnoreCase("AzureBlob")) {
str = applyAzureSubstitution(str, placeholders);
+ } else if (placeholder.getValue().equalsIgnoreCase("GCS")) {
+ str = applyGCSSubstitution(str, placeholders);
}
} else {
// Any other place holders, just replace with the value
@@ -2481,6 +2483,11 @@ public class TestExecutor {
return str;
}
+ protected String applyGCSSubstitution(String str, List<Placeholder>
placeholders) {
+ str = setGCSTemplateDefault(str);
+ return str;
+ }
+
protected String setAzureTemplate(String str) {
return str.replace("%template%", TEMPLATE);
}
@@ -2489,6 +2496,10 @@ public class TestExecutor {
return str.replace("%template%", TEMPLATE_DEFAULT);
}
+ protected String setGCSTemplateDefault(String str) {
+ return str;
+ }
+
protected void fail(boolean runDiagnostics, TestCaseContext testCaseCtx,
CompilationUnit cUnit,
List<TestFileContext> testFileCtxs, ProcessBuilder pb, File
testFile, Exception e) throws Exception {
if (runDiagnostics) {