Remove stale test
@@ -7,17 +7,16 @@ import com.yahoo.config.application.api.ValidationOverrides;
import com.yahoo.config.provision.ApplicationId;
import com.yahoo.config.provision.ClusterSpec;
import com.yahoo.config.provision.HostName;
-import com.yahoo.config.provision.RegionName;
+import com.yahoo.config.provision.zone.ZoneId;
import com.yahoo.vespa.config.SlimeUtils;
import com.yahoo.vespa.hosted.controller.Application;
-import com.yahoo.vespa.hosted.controller.api.integration.metrics.MetricsService;
import com.yahoo.vespa.hosted.controller.api.integration.certificates.ApplicationCertificate;
import com.yahoo.vespa.hosted.controller.api.integration.deployment.ApplicationVersion;
import com.yahoo.vespa.hosted.controller.api.integration.deployment.JobType;
import com.yahoo.vespa.hosted.controller.api.integration.deployment.SourceRevision;
+import com.yahoo.vespa.hosted.controller.api.integration.metrics.MetricsService;
import com.yahoo.vespa.hosted.controller.api.integration.organization.IssueId;
import com.yahoo.vespa.hosted.controller.api.integration.organization.User;
-import com.yahoo.config.provision.zone.ZoneId;
import com.yahoo.vespa.hosted.controller.application.AssignedRotation;
import com.yahoo.vespa.hosted.controller.application.Change;
import com.yahoo.vespa.hosted.controller.application.ClusterInfo;
@@ -27,13 +26,10 @@ import com.yahoo.vespa.hosted.controller.application.DeploymentActivity;
import com.yahoo.vespa.hosted.controller.application.DeploymentJobs;
import com.yahoo.vespa.hosted.controller.application.DeploymentJobs.JobError;
import com.yahoo.vespa.hosted.controller.application.DeploymentMetrics;
-import com.yahoo.vespa.hosted.controller.application.EndpointId;
import com.yahoo.vespa.hosted.controller.application.JobStatus;
import com.yahoo.vespa.hosted.controller.rotation.RotationState;
-import com.yahoo.vespa.hosted.controller.rotation.RotationId;
import org.junit.Test;
-import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
@@ -253,33 +249,4 @@ public class ApplicationSerializerTest {
// ok if no error
}
- @Test
- public void testParsingAssignedRotations() throws IOException {
- // Use the 'complete-application.json' as a baseline
- final var applicationJson = Files.readAllBytes(testData.resolve("complete-application.json"));
- final var slime = SlimeUtils.jsonToSlime(applicationJson);
-
- final var regions = Set.of(
- RegionName.from("us-east-3"),
- RegionName.from("us-west-1")
- );
-
- // Add the necessary fields to the Slime representation of the application
- final var cursor = slime.get();
- final var assignedRotations = cursor.setArray("assignedRotations");
- final var assignedRotation = assignedRotations.addObject();
- assignedRotation.setString("clusterId", "foobar");
- assignedRotation.setString("endpointId", "nice-endpoint");
- assignedRotation.setString("rotationId", "assigned-rotation");
-
- // Parse and test the output from parsing contains both legacy rotation and multiple rotations
- final var application = applicationSerializer.fromSlime(slime);
- assertEquals(
- List.of(
- new AssignedRotation(new ClusterSpec.Id("foobar"), EndpointId.of("nice-endpoint"), new RotationId("assigned-rotation"), Set.of())
- ),
- application.rotations()
- );
- }
-
}
