Search in sources :

Example 1 with ApplicationRotation

use of com.yahoo.vespa.hosted.controller.application.ApplicationRotation in project vespa by vespa-engine.

the class RotationTest method no_rotation_assigned_for_application_without_service_id.

@Test
public void no_rotation_assigned_for_application_without_service_id() {
    ApplicationPackage applicationPackage = new ApplicationPackageBuilder().region("us-east-3").region("us-west-1").build();
    tester.deployCompletely(application, applicationPackage);
    Application app = tester.applications().require(application.id());
    Optional<ApplicationRotation> rotation = app.rotation();
    assertFalse(rotation.isPresent());
}
Also used : ApplicationRotation(com.yahoo.vespa.hosted.controller.application.ApplicationRotation) ApplicationPackageBuilder(com.yahoo.vespa.hosted.controller.deployment.ApplicationPackageBuilder) ApplicationPackage(com.yahoo.vespa.hosted.controller.application.ApplicationPackage) Application(com.yahoo.vespa.hosted.controller.Application) Test(org.junit.Test)

Aggregations

Application (com.yahoo.vespa.hosted.controller.Application)1 ApplicationPackage (com.yahoo.vespa.hosted.controller.application.ApplicationPackage)1 ApplicationRotation (com.yahoo.vespa.hosted.controller.application.ApplicationRotation)1 ApplicationPackageBuilder (com.yahoo.vespa.hosted.controller.deployment.ApplicationPackageBuilder)1 Test (org.junit.Test)1