summaryrefslogtreecommitdiffstats
path: root/config/src/test
diff options
context:
space:
mode:
authorHarald Musum <musum@verizonmedia.com>2020-03-11 15:11:44 +0100
committerHarald Musum <musum@verizonmedia.com>2020-03-11 15:11:44 +0100
commit0622ab73067eb9d57e9b68fdfcafc3b79d7eb76f (patch)
tree848d2014798b3cd459b1860678afd07be12d07d9 /config/src/test
parenta8982df813fd7b63fa8b945ceeb8f9281a9b5e9d (diff)
Remove suuport for setting vespa version in config requests
Using VESPA_VERSION environment variable or Java system property is not documented or system tested, remove it.
Diffstat (limited to 'config/src/test')
-rw-r--r--config/src/test/java/com/yahoo/vespa/config/protocol/JRTConfigRequestFactoryTest.java18
1 files changed, 0 insertions, 18 deletions
diff --git a/config/src/test/java/com/yahoo/vespa/config/protocol/JRTConfigRequestFactoryTest.java b/config/src/test/java/com/yahoo/vespa/config/protocol/JRTConfigRequestFactoryTest.java
index 35332176774..b7c806ce371 100644
--- a/config/src/test/java/com/yahoo/vespa/config/protocol/JRTConfigRequestFactoryTest.java
+++ b/config/src/test/java/com/yahoo/vespa/config/protocol/JRTConfigRequestFactoryTest.java
@@ -106,15 +106,6 @@ public class JRTConfigRequestFactoryTest {
JRTClientConfigRequest request = JRTConfigRequestFactory.createFromSub(sub);
assertThat(request.getProtocolVersion(), is(3L));
assertThat(request.getVespaVersion().get(), is(defaultVespaVersion));
-
- // Create with vespa version set
- String version = "5.37.38";
- System.setProperty(JRTConfigRequestFactory.VESPA_VERSION, version);
- request = JRTConfigRequestFactory.createFromSub(sub);
- assertThat(request.getProtocolVersion(), is(3L));
- assertThat(request.getVespaVersion().get(), is(VespaVersion.fromString(version)));
-
- System.clearProperty(JRTConfigRequestFactory.VESPA_VERSION);
}
@Test
@@ -127,15 +118,6 @@ public class JRTConfigRequestFactoryTest {
JRTClientConfigRequest request = JRTConfigRequestFactory.createFromRaw(config, 1000);
assertThat(request.getProtocolVersion(), is(3L));
assertThat(request.getVespaVersion().get(), is(defaultVespaVersion));
-
- // Create with vespa version set
- String version = "5.37.38";
- System.setProperty(JRTConfigRequestFactory.VESPA_VERSION, version);
- request = JRTConfigRequestFactory.createFromRaw(config, 1000);
- assertThat(request.getProtocolVersion(), is(3L));
- assertThat(request.getVespaVersion().get(), is(VespaVersion.fromString(version)));
-
- System.clearProperty(JRTConfigRequestFactory.VESPA_VERSION);
}
}