Search in sources :

Example 1 with FilesApplicationPackage

use of com.yahoo.config.model.application.provider.FilesApplicationPackage in project vespa by vespa-engine.

the class ApplicationRepositoryTest method prepareAndActivateApp.

private PrepareResult prepareAndActivateApp(File application) throws IOException {
    FilesApplicationPackage appDir = FilesApplicationPackage.fromFile(application);
    long sessionId = applicationRepository.createSession(tenant, timeoutBudget, appDir.getAppDir(), "testapp");
    return applicationRepository.prepareAndActivate(tenant, sessionId, prepareParams(), false, false, Instant.now());
}
Also used : FilesApplicationPackage(com.yahoo.config.model.application.provider.FilesApplicationPackage)

Aggregations

FilesApplicationPackage (com.yahoo.config.model.application.provider.FilesApplicationPackage)1