Skip to content

Commit

Permalink
Merge pull request #11 from entando-k8s/ENG-932_support_db_password_r…
Browse files Browse the repository at this point in the history
…eset

ENG-932 supporting db password reset
  • Loading branch information
entando-jx authored Jul 29, 2020
2 parents 1e78a83 + a7c5ccc commit 1a4ebf4
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<parent>
<groupId>org.entando</groupId>
<artifactId>entando-quarkus-parent</artifactId>
<version>6.1.7</version>
<version>6.1.8</version>
</parent>
<version>6.1.0-SNAPSHOT</version>
<artifactId>entando-k8s-app-controller</artifactId>
Expand Down Expand Up @@ -63,7 +63,7 @@
<properties>
<github.organization>entando-k8s</github.organization>
<sonar.projectKey>${github.organization}_${project.artifactId}</sonar.projectKey>
<entando.k8s.operator.common.version>6.1.9</entando.k8s.operator.common.version>
<entando.k8s.operator.common.version>6.1.11</entando.k8s.operator.common.version>
<entando.k8s.custom.model.version>6.1.5</entando.k8s.custom.model.version>
<preDeploymentTestGroups>in-process</preDeploymentTestGroups>
<postDeploymentTestGroups>end-to-end</postDeploymentTestGroups>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,17 @@
package org.entando.kubernetes.controller.app.interprocesstests;

import io.fabric8.kubernetes.api.model.ObjectMeta;
import org.entando.kubernetes.controller.EntandoOperatorConfigProperty;
import org.entando.kubernetes.controller.integrationtest.support.EntandoAppIntegrationTestHelper;
import org.entando.kubernetes.controller.integrationtest.support.KeycloakIntegrationTestHelper;
import org.entando.kubernetes.controller.integrationtest.support.SampleWriter;
import org.entando.kubernetes.model.DbmsVendor;
import org.entando.kubernetes.model.JeeServer;
import org.entando.kubernetes.model.app.EntandoApp;
import org.entando.kubernetes.model.app.EntandoAppBuilder;
import org.entando.kubernetes.model.externaldatabase.EntandoDatabaseService;
import org.entando.kubernetes.model.keycloakserver.EntandoKeycloakServer;
import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.Tag;
import org.junit.jupiter.api.Tags;
import org.junit.jupiter.api.Test;
Expand All @@ -45,8 +50,23 @@ public void create() {
entandoApp.getMetadata().setNamespace(EntandoAppIntegrationTestHelper.TEST_NAMESPACE);
SampleWriter.writeSample(entandoApp, "app-with-external-postgresql-db");
entandoApp.getMetadata().setName(EntandoAppIntegrationTestHelper.TEST_APP_NAME);
//When I create the entando app
createAndWaitForApp(entandoApp, 0, false);
//I see all the expected deployments
verifyAllExpectedResources();
//And recreating the app still succeeds even though all the DB secrets were deleted
System.setProperty(EntandoOperatorConfigProperty.ENTANDO_K8S_OPERATOR_FORCE_DB_PASSWORD_RESET.getJvmSystemProperty(), "true");
helper.setTextFixture(deleteAll(EntandoApp.class).fromNamespace(EntandoAppIntegrationTestHelper.TEST_NAMESPACE));
createAndWaitForApp(entandoApp, 0, false);
verifyAllExpectedResources();

}

@Override
@AfterEach
public void afterwards() {
System.getProperties().remove(EntandoOperatorConfigProperty.ENTANDO_K8S_OPERATOR_FORCE_DB_PASSWORD_RESET.getJvmSystemProperty());
super.afterwards();
}

@Override
Expand Down

0 comments on commit 1a4ebf4

Please sign in to comment.