Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fabric8 it part 6 #1471

Merged
merged 35 commits into from
Oct 9, 2023
Merged
Show file tree
Hide file tree
Changes from 34 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,6 @@ void testInformFromOneNamespaceEventNotTriggered() {
testInform();
testInformFromOneNamespaceEventTriggeredSecretsDisabled();
testDataChangesInConfigMap();
testConfigMapPollingReload();
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

after looking a bit closer, we have two tests related to configmap fabric8 reload that badly overlap, so just drop one of them

testConfigMapMountPollingReload();
testPollingReloadConfigMapWithBootstrap();
testSecretReload();
Expand Down Expand Up @@ -303,11 +302,6 @@ void testDataChangesInConfigMap() {
DataChangesInConfigMapReloadDelegate.testDataChangesInConfigMap(client, K3S, IMAGE_NAME);
}

void testConfigMapPollingReload() {
TestUtil.patchFive(util, DOCKER_IMAGE, IMAGE_NAME, NAMESPACE);
ConfigMapPollingReloadDelegate.testConfigMapPollingReload(client);
}

void testConfigMapMountPollingReload() {
TestUtil.reCreateSources(util, client);
TestUtil.patchSix(util, DOCKER_IMAGE, IMAGE_NAME, NAMESPACE);
Expand All @@ -322,7 +316,7 @@ void testPollingReloadConfigMapWithBootstrap() {
}

void testSecretReload() {
TestUtil.patchEight(util, DOCKER_IMAGE, IMAGE_NAME, NAMESPACE);
TestUtil.patchSeven(util, DOCKER_IMAGE, IMAGE_NAME, NAMESPACE);
SecretsEventsReloadDelegate.testSecretReload(client, K3S, IMAGE_NAME);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -171,31 +171,6 @@ final class TestUtil {
""";

private static final String BODY_FIVE = """
{
"spec": {
"template": {
"spec": {
"containers": [{
"name": "spring-cloud-kubernetes-fabric8-client-configmap-event-reload",
"image": "image_name_here",
"env": [
{
"name": "SPRING_PROFILES_ACTIVE",
"value": "no-mount"
},
{
"name": "SPRING_CLOUD_BOOTSTRAP_ENABLED",
"value": "FALSE"
}
]
}]
}
}
}
}
""";

private static final String BODY_SIX = """
{
"spec": {
"template": {
Expand Down Expand Up @@ -247,7 +222,7 @@ final class TestUtil {
}
""";

private static final String BODY_SEVEN = """
private static final String BODY_SIX = """
{
"spec": {
"template": {
Expand Down Expand Up @@ -299,7 +274,7 @@ final class TestUtil {
}
""";

private static final String BODY_EIGHT = """
private static final String BODY_SEVEN = """
{
"spec": {
"template": {
Expand Down Expand Up @@ -370,10 +345,6 @@ static void patchSeven(Util util, String dockerImage, String deploymentName, Str
util.patchWithReplace(dockerImage, deploymentName, namespace, BODY_SEVEN, POD_LABELS);
}

static void patchEight(Util util, String dockerImage, String deploymentName, String namespace) {
util.patchWithReplace(dockerImage, deploymentName, namespace, BODY_EIGHT, POD_LABELS);
}

static WebClient.Builder builder() {
return WebClient.builder().clientConnector(new ReactorClientHttpConnector(HttpClient.create()));
}
Expand Down
Loading