use of io.syndesis.qe.marketplace.quay.QuayService in project syndesis-qe by syndesisio.
the class CommonSteps method deployOperatorHub.
public static void deployOperatorHub() {
Syndesis syndesis = ResourceFactory.get(Syndesis.class);
QuayUser quayUser = TestConfiguration.getQuayUser();
QuayService quayService = new QuayService(quayUser, TestConfiguration.syndesisOperatorImage(), syndesis.generateImageEnvVars());
String quayProject;
try {
quayProject = quayService.createQuayProject();
} catch (Exception e) {
InfraFail.fail("Creating project on quay failed", e);
return;
}
OpenShiftService openShiftService = TestConfiguration.getOpenShiftService(quayProject);
try {
openShiftService.deployOperator();
} catch (IOException e) {
InfraFail.fail("Deploying operator with marketplace failed", e);
}
// at this point we don't really need operator source anymore
// and we doon't need project on quay either, because all the necessary stuff
// has already been deployed, we can delete those
log.info("Cleaning all unnecessary resorces");
openShiftService.deleteOpsrcToken();
try {
openShiftService.deleteOperatorSource();
quayService.deleteQuayProject();
} catch (IOException e) {
InfraFail.fail("Fail during cleanup of quay project", e);
}
syndesis.deployCrAndRoutes();
CommonSteps.waitForSyndesis();
}
Aggregations