diff options
author | jonmv <venstad@gmail.com> | 2022-06-11 08:48:02 +0200 |
---|---|---|
committer | jonmv <venstad@gmail.com> | 2022-06-11 08:48:02 +0200 |
commit | a2ae7d4cd039aac590003ec06dff5d407c659ad6 (patch) | |
tree | 97d22a21673268c637bcdae28295477159cdd050 | |
parent | 4d15da6df856a20b1bb9df2242e6b7a0255fe64b (diff) |
Rename to previsouly used names
4 files changed, 8 insertions, 8 deletions
diff --git a/tenant-cd-api/src/main/java/ai/vespa/hosted/cd/Deployment.java b/tenant-cd-api/src/main/java/ai/vespa/hosted/cd/Deployment.java index a04f07d5dae..6111b59178f 100644 --- a/tenant-cd-api/src/main/java/ai/vespa/hosted/cd/Deployment.java +++ b/tenant-cd-api/src/main/java/ai/vespa/hosted/cd/Deployment.java @@ -14,10 +14,10 @@ public interface Deployment { Endpoint endpoint(String id); /** The Vespa runtime version of the deployment, e.g., 8.16.32. */ - String platformVersion(); + String platform(); /** The build number assigned to the application revision of the deployment, e.g., 496. */ - long applicationVersion(); + long revision(); /** The time at which the deployment was last updated with a new platform or application version. */ Instant deployedAt(); diff --git a/tenant-cd-commons/src/main/java/ai/vespa/hosted/cd/commons/HttpDeployment.java b/tenant-cd-commons/src/main/java/ai/vespa/hosted/cd/commons/HttpDeployment.java index 15f6b1f009a..6a42d874686 100644 --- a/tenant-cd-commons/src/main/java/ai/vespa/hosted/cd/commons/HttpDeployment.java +++ b/tenant-cd-commons/src/main/java/ai/vespa/hosted/cd/commons/HttpDeployment.java @@ -43,12 +43,12 @@ public class HttpDeployment implements Deployment { } @Override - public String platformVersion() { + public String platform() { return platform; } @Override - public long applicationVersion() { + public long revision() { return revision; } diff --git a/vespa-osgi-testrunner/src/test/java/com/yahoo/vespa/test/samples/UsingTestRuntimeTest.java b/vespa-osgi-testrunner/src/test/java/com/yahoo/vespa/test/samples/UsingTestRuntimeTest.java index be60ef554af..62547bd34bf 100644 --- a/vespa-osgi-testrunner/src/test/java/com/yahoo/vespa/test/samples/UsingTestRuntimeTest.java +++ b/vespa-osgi-testrunner/src/test/java/com/yahoo/vespa/test/samples/UsingTestRuntimeTest.java @@ -17,8 +17,8 @@ public class UsingTestRuntimeTest { assertEquals(Environment.test, runtime.zone().environment()); assertEquals("name", runtime.zone().region()); assertNull(runtime.deploymentToTest().endpoint("dummy")); - assertEquals("1.2.3", runtime.deploymentToTest().platformVersion()); - assertEquals(321, runtime.deploymentToTest().applicationVersion()); + assertEquals("1.2.3", runtime.deploymentToTest().platform()); + assertEquals(321, runtime.deploymentToTest().revision()); assertEquals(1000, runtime.deploymentToTest().deployedAt().toEpochMilli()); } diff --git a/vespa-osgi-testrunner/src/test/java/com/yahoo/vespa/testrunner/JunitRunnerTest.java b/vespa-osgi-testrunner/src/test/java/com/yahoo/vespa/testrunner/JunitRunnerTest.java index 51acd4b1fdf..09aaeba081f 100644 --- a/vespa-osgi-testrunner/src/test/java/com/yahoo/vespa/testrunner/JunitRunnerTest.java +++ b/vespa-osgi-testrunner/src/test/java/com/yahoo/vespa/testrunner/JunitRunnerTest.java @@ -173,8 +173,8 @@ class JunitRunnerTest { public Deployment deploymentToTest() { return new Deployment() { @Override public Endpoint endpoint(String id) { return null; } - @Override public String platformVersion() { return "1.2.3"; } - @Override public long applicationVersion() { return 321; } + @Override public String platform() { return "1.2.3"; } + @Override public long revision() { return 321; } @Override public Instant deployedAt() { return Instant.ofEpochMilli(1000); } }; } |