aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--controller-server/src/main/java/com/yahoo/vespa/hosted/controller/deployment/InternalStepRunner.java8
-rw-r--r--controller-server/src/test/resources/test_runner_services.xml-cd1
-rw-r--r--vespa-osgi-testrunner/src/main/resources/configdefinitions/vespa-cli-test-runner.def6
3 files changed, 14 insertions, 1 deletions
diff --git a/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/deployment/InternalStepRunner.java b/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/deployment/InternalStepRunner.java
index 9789bbd4da2..09eac53f218 100644
--- a/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/deployment/InternalStepRunner.java
+++ b/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/deployment/InternalStepRunner.java
@@ -70,6 +70,7 @@ import java.util.List;
import java.util.Map;
import java.util.Optional;
import java.util.Set;
+import java.util.UUID;
import java.util.function.Consumer;
import java.util.function.Supplier;
import java.util.logging.Level;
@@ -859,8 +860,12 @@ public class InternalStepRunner implements StepRunner {
spec.athenzDomain(),
spec.requireInstance(id.application().instance()).athenzService(zone.environment(), zone.region()));
- try (ZipBuilder zipBuilder = new ZipBuilder(testPackage.length + servicesXml.length + 1000)) {
+ try (ZipBuilder zipBuilder = new ZipBuilder(testPackage.length + servicesXml.length + deploymentXml.length + 1000)) {
+ // Copy contents of submitted application-test.zip, and ensure required directories exist within the zip.
zipBuilder.add(testPackage);
+ zipBuilder.add("artifacts/.ignore-" + UUID.randomUUID(), new byte[0]);
+ zipBuilder.add("tests/.ignore-" + UUID.randomUUID(), new byte[0]);
+
zipBuilder.add("services.xml", servicesXml);
zipBuilder.add("deployment.xml", deploymentXml);
if (useTesterCertificate)
@@ -948,6 +953,7 @@ public class InternalStepRunner implements StepRunner {
" <component id=\"com.yahoo.vespa.testrunner.VespaCliTestRunner\" bundle=\"vespa-osgi-testrunner\">\n" +
" <config name=\"com.yahoo.vespa.testrunner.vespa-cli-test-runner\">\n" +
" <artifactsPath>artifacts</artifactsPath>\n" +
+ " <testsPath>tests</testsPath>\n" +
" <useAthenzCredentials>" + systemUsesAthenz + "</useAthenzCredentials>\n" +
" </config>\n" +
" </component>\n" +
diff --git a/controller-server/src/test/resources/test_runner_services.xml-cd b/controller-server/src/test/resources/test_runner_services.xml-cd
index 634137e3fb6..4ab4b08351a 100644
--- a/controller-server/src/test/resources/test_runner_services.xml-cd
+++ b/controller-server/src/test/resources/test_runner_services.xml-cd
@@ -27,6 +27,7 @@
<component id="com.yahoo.vespa.testrunner.VespaCliTestRunner" bundle="vespa-osgi-testrunner">
<config name="com.yahoo.vespa.testrunner.vespa-cli-test-runner">
<artifactsPath>artifacts</artifactsPath>
+ <testsPath>tests</testsPath>
<useAthenzCredentials>true</useAthenzCredentials>
</config>
</component>
diff --git a/vespa-osgi-testrunner/src/main/resources/configdefinitions/vespa-cli-test-runner.def b/vespa-osgi-testrunner/src/main/resources/configdefinitions/vespa-cli-test-runner.def
index 7671096477e..b23d98e66ee 100644
--- a/vespa-osgi-testrunner/src/main/resources/configdefinitions/vespa-cli-test-runner.def
+++ b/vespa-osgi-testrunner/src/main/resources/configdefinitions/vespa-cli-test-runner.def
@@ -1,5 +1,11 @@
# Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package=com.yahoo.vespa.testrunner
+# Location of artifacts required for test runtime
artifactsPath path
+
+# Location of HTTP tests
+testsPath path
+
+# Whether credentials are from Athenz
useAthenzCredentials bool default=false \ No newline at end of file