Search in sources :

Example 11 with PgConfigReview

use of io.stackgres.operator.common.PgConfigReview in project stackgres by ongres.

the class PgConfigDefaultStateMutatorTest method getEmptyReview.

@Override
protected PgConfigReview getEmptyReview() {
    PgConfigReview review = JsonUtil.readFromJson("pgconfig_allow_request/valid_pgconfig.json", PgConfigReview.class);
    review.getRequest().getObject().getSpec().setPostgresqlConf(new HashMap<>());
    return review;
}
Also used : PgConfigReview(io.stackgres.operator.common.PgConfigReview)

Aggregations

PgConfigReview (io.stackgres.operator.common.PgConfigReview)11 Test (org.junit.jupiter.api.Test)7 StackGresPostgresConfig (io.stackgres.common.crd.sgpgconfig.StackGresPostgresConfig)2 ConstraintValidationTest (io.stackgres.operator.validation.ConstraintValidationTest)2 ValidationFailed (io.stackgres.operatorframework.admissionwebhook.validating.ValidationFailed)2