Make the VersionResourceIT generic for any version, so that releases are not impacted by an updated app version.
package com.quorum.tessera.test.rest;
+import com.quorum.tessera.api.Version;
import com.quorum.tessera.test.PartyHelper;
import org.junit.Test;
@@ -30,7 +31,7 @@ public class VersionIT {
allUris.forEach(
u -> {
final String version = client.target(u).path("/version").request().get(String.class);
- assertThat(version).startsWith("0.11.1");
+ assertThat(version).isEqualTo(Version.getVersion());
});
}
@@ -45,7 +46,7 @@ public class VersionIT {
allUris.forEach(
u -> {
final String version = client.target(u).path("/version/distribution").request().get(String.class);
- assertThat(version).startsWith("0.11.1");
+ assertThat(version).isEqualTo(Version.getVersion());
});
}
