|
1 | 1 | /* |
2 | | - * Copyright (c) 2020, Oracle and/or its affiliates. |
| 2 | + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. |
3 | 3 | * Licensed under the Universal Permissive License v 1.0 as shown at |
4 | 4 | * http://oss.oracle.com/licenses/upl. |
5 | 5 | */ |
@@ -440,67 +440,3 @@ func TestCreateStatefulSetWithJvmSpecWithHeapDumpOnOomFalse(t *testing.T) { |
440 | 440 | // assert that the StatefulSet is as expected |
441 | 441 | assertStatefulSetCreation(t, deployment, stsExpected) |
442 | 442 | } |
443 | | - |
444 | | -func TestCreateStatefulSetWithJvmSpecWithJmxmpEnabledTrue(t *testing.T) { |
445 | | - |
446 | | - spec := coh.CoherenceResourceSpec{ |
447 | | - JVM: &coh.JVMSpec{ |
448 | | - Jmxmp: &coh.JvmJmxmpSpec{ |
449 | | - Enabled: boolPtr(true), |
450 | | - }, |
451 | | - }, |
452 | | - } |
453 | | - |
454 | | - // Create the test deployment |
455 | | - deployment := createTestDeployment(spec) |
456 | | - // Create expected StatefulSet |
457 | | - stsExpected := createMinimalExpectedStatefulSet(deployment) |
458 | | - addEnvVars(stsExpected, coh.ContainerNameCoherence, corev1.EnvVar{Name: "JVM_JMXMP_ENABLED", Value: "true"}) |
459 | | - addEnvVars(stsExpected, coh.ContainerNameCoherence, corev1.EnvVar{Name: "JVM_JMXMP_PORT", Value: "9099"}) |
460 | | - |
461 | | - // assert that the StatefulSet is as expected |
462 | | - assertStatefulSetCreation(t, deployment, stsExpected) |
463 | | -} |
464 | | - |
465 | | -func TestCreateStatefulSetWithJvmSpecWithJmxmpEnabledFalse(t *testing.T) { |
466 | | - |
467 | | - spec := coh.CoherenceResourceSpec{ |
468 | | - JVM: &coh.JVMSpec{ |
469 | | - Jmxmp: &coh.JvmJmxmpSpec{ |
470 | | - Enabled: boolPtr(false), |
471 | | - }, |
472 | | - }, |
473 | | - } |
474 | | - |
475 | | - // Create the test deployment |
476 | | - deployment := createTestDeployment(spec) |
477 | | - // Create expected StatefulSet |
478 | | - stsExpected := createMinimalExpectedStatefulSet(deployment) |
479 | | - addEnvVars(stsExpected, coh.ContainerNameCoherence, corev1.EnvVar{Name: "JVM_JMXMP_ENABLED", Value: "false"}) |
480 | | - addEnvVars(stsExpected, coh.ContainerNameCoherence, corev1.EnvVar{Name: "JVM_JMXMP_PORT", Value: "9099"}) |
481 | | - |
482 | | - // assert that the StatefulSet is as expected |
483 | | - assertStatefulSetCreation(t, deployment, stsExpected) |
484 | | -} |
485 | | - |
486 | | -func TestCreateStatefulSetWithJvmSpecWithJmxmpEnabledWithPort(t *testing.T) { |
487 | | - |
488 | | - spec := coh.CoherenceResourceSpec{ |
489 | | - JVM: &coh.JVMSpec{ |
490 | | - Jmxmp: &coh.JvmJmxmpSpec{ |
491 | | - Enabled: boolPtr(true), |
492 | | - Port: int32Ptr(1234), |
493 | | - }, |
494 | | - }, |
495 | | - } |
496 | | - |
497 | | - // Create the test deployment |
498 | | - deployment := createTestDeployment(spec) |
499 | | - // Create expected StatefulSet |
500 | | - stsExpected := createMinimalExpectedStatefulSet(deployment) |
501 | | - addEnvVars(stsExpected, coh.ContainerNameCoherence, corev1.EnvVar{Name: "JVM_JMXMP_ENABLED", Value: "true"}) |
502 | | - addEnvVars(stsExpected, coh.ContainerNameCoherence, corev1.EnvVar{Name: "JVM_JMXMP_PORT", Value: "1234"}) |
503 | | - |
504 | | - // assert that the StatefulSet is as expected |
505 | | - assertStatefulSetCreation(t, deployment, stsExpected) |
506 | | -} |
0 commit comments