@Test public void testUserInstancesNotInDeploymentSpec() { var app = tester.newDeploymentContext(); tester.controller().applications().createInstance(app.application().id().instance("user")); app.submit().deploy(); }
private ApplicationController applications() { return controller.applications(); }
DeploymentTrigger { private ApplicationController applications() { return controller.applications(); } }
DeploymentTrigger { private ApplicationController applications() { return controller.applications(); } DeploymentTrigger(Controller controller, Clock clock); }
DeploymentTrigger { private ApplicationController applications() { return controller.applications(); } DeploymentTrigger(Controller controller, Clock clock); DeploymentSteps steps(DeploymentInstanceSpec spec); void notifyOfSubmission(TenantAndApplicationId id, ApplicationVersion version, long projectId); void triggerNewRevision(TenantAndApplicationId id); void notifyOfCompletion(ApplicationId id); long triggerReadyJobs(); void trigger(Job job); JobId reTrigger(ApplicationId applicationId, JobType jobType); List<JobId> forceTrigger(ApplicationId applicationId, JobType jobType, String user, boolean requireTests); void pauseJob(ApplicationId id, JobType jobType, Instant until); void resumeJob(ApplicationId id, JobType jobType); void triggerChange(ApplicationId instanceId, Change change); void forceChange(ApplicationId instanceId, Change change); void cancelChange(ApplicationId instanceId, ChangesToCancel cancellation); boolean triggerAt(Instant instant, JobType job, JobStatus jobStatus, Versions versions, Instance instance, DeploymentSpec deploymentSpec); boolean isComplete(Change change, Change fullChange, Instance instance, JobType jobType,
                              JobStatus status); }
DeploymentTrigger { private ApplicationController applications() { return controller.applications(); } DeploymentTrigger(Controller controller, Clock clock); DeploymentSteps steps(DeploymentInstanceSpec spec); void notifyOfSubmission(TenantAndApplicationId id, ApplicationVersion version, long projectId); void triggerNewRevision(TenantAndApplicationId id); void notifyOfCompletion(ApplicationId id); long triggerReadyJobs(); void trigger(Job job); JobId reTrigger(ApplicationId applicationId, JobType jobType); List<JobId> forceTrigger(ApplicationId applicationId, JobType jobType, String user, boolean requireTests); void pauseJob(ApplicationId id, JobType jobType, Instant until); void resumeJob(ApplicationId id, JobType jobType); void triggerChange(ApplicationId instanceId, Change change); void forceChange(ApplicationId instanceId, Change change); void cancelChange(ApplicationId instanceId, ChangesToCancel cancellation); boolean triggerAt(Instant instant, JobType job, JobStatus jobStatus, Versions versions, Instance instance, DeploymentSpec deploymentSpec); boolean isComplete(Change change, Change fullChange, Instance instance, JobType jobType,
                              JobStatus status); static final Duration maxPause; }