Skip to content

Commit dd4e649

Browse files
committed
Checkstyle and merge issues
2 parents 1098130 + 1c084d5 commit dd4e649

40 files changed

+1099
-301
lines changed

docs/charts/index.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,39 @@
11
apiVersion: v1
22
entries:
33
weblogic-operator:
4-
- created: 2019-06-21T17:07:47.254382-04:00
4+
- created: "2019-07-25T14:26:55.411022-04:00"
55
description: Helm chart for configuring the WebLogic operator.
6-
digest: 0af0ca39bf33b38d82a22a21c32e1cb3da3f78d841ba2c4cfaa4c0e743d3b9b3
6+
digest: 755825da5adcc30f57bca540509813aeb8d73ddd69d85e4f30b29d73696e2ee8
77
name: weblogic-operator
88
urls:
99
- https://oracle.github.io/weblogic-kubernetes-operator/charts/weblogic-operator-2.3.0.tgz
1010
version: 2.3.0
11-
- created: 2019-06-21T17:07:47.252194-04:00
11+
- created: "2019-07-25T14:26:55.408716-04:00"
1212
description: Helm chart for configuring the WebLogic operator.
1313
digest: 23d5a1c554fa8211cc1e86b7ade09460917cb2069e68fb4bfdddafc8db44fdcd
1414
name: weblogic-operator
1515
urls:
1616
- https://oracle.github.io/weblogic-kubernetes-operator/charts/weblogic-operator-2.2.1.tgz
1717
version: 2.2.1
18-
- created: 2019-06-21T17:07:47.250143-04:00
18+
- created: "2019-07-25T14:26:55.407036-04:00"
1919
description: Helm chart for configuring the WebLogic operator.
2020
digest: bba303686cb55d84fe8c0d693a2436e7e686b028085b56e012f6381699a3911f
2121
name: weblogic-operator
2222
urls:
2323
- https://oracle.github.io/weblogic-kubernetes-operator/charts/weblogic-operator-2.2.0.tgz
2424
version: 2.2.0
25-
- created: 2019-06-21T17:07:47.246971-04:00
25+
- created: "2019-07-25T14:26:55.405384-04:00"
2626
description: Helm chart for configuring the WebLogic operator.
2727
digest: 391e23c0969ada5f0cd2a088ddc6f11f237f57521801ed3925db2149a8437a0d
2828
name: weblogic-operator
2929
urls:
3030
- https://oracle.github.io/weblogic-kubernetes-operator/charts/weblogic-operator-2.1.tgz
3131
version: "2.1"
32-
- created: 2019-06-21T17:07:47.245138-04:00
32+
- created: "2019-07-25T14:26:55.403824-04:00"
3333
description: Helm chart for configuring the WebLogic operator.
3434
digest: 298acda78ab73db6b7ba6f2752311bfa40c65874e03fb196b70976192211c1a5
3535
name: weblogic-operator
3636
urls:
3737
- https://oracle.github.io/weblogic-kubernetes-operator/charts/weblogic-operator-2.0.1.tgz
3838
version: 2.0.1
39-
generated: 2019-06-21T17:07:47.24317-04:00
39+
generated: "2019-07-25T14:26:55.401818-04:00"
111 Bytes
Binary file not shown.

integration-tests/USECASES.MD

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,3 +148,14 @@ Configuration Overrides Usecases
148148
| Pod Templates | Use Case |
149149
| --- | --- |
150150
| Using pod templates/variables | Use DOMAIN_UID, DOMAIN_NAME, DOMAIN_HOME, SERVER_NAME, LOG_HOME variables at domain level and CLUSTER_NAME at cluster level. Bring up the domain and make sure domain started successfully when pod templates are used |
151+
152+
| Init Container | Use Case |
153+
| --- | --- |
154+
| Add initContainers to domain | Add a initContainers object to spec level and verify the init containers are created for weblogic server pods prior to starting it and runs to completion and then weblogic pod are started |
155+
| Add initContainers to adminServer | Add a initContainers object to adminServer level and verify the init container is created for administration server weblogic server pod prior to starting it and runs to completion and then weblogic pod is started |
156+
| Add initContainers to Clusters | Add a initContainers object to Clusters level and verify the init containers are created for weblogic server pods prior to starting the clusters and runs to completion and then weblogic pod are started |
157+
| Add initContainers to managedServers | Add a initContainers object to managed server level and verify the init container is created for managed server weblogic server pod prior to starting it and runs to completion and then weblogic pod is started |
158+
| Add bad initContainers to domain | Add a bad initContainers object to domain and verify the init container run fails and no weblogic pod is started |
159+
| Add multiple initContainers to domain | Add multiple initContainers object to domain level and verify all of the init container are run before weblogic server pod are started |
160+
| Add initContainers with different names at different level | Add a multiple initContainers object at domain level and server level and verify all of the init containers are run before weblogic server pods are started |
161+
| Add initContainers with same names at different level | Add a multiple initContainers object at domain level and server level and verify only the server level init containers are run before weblogic server pods are started |

integration-tests/src/test/java/oracle/kubernetes/operator/BaseTest.java

Lines changed: 16 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
import java.nio.file.Files;
88
import java.nio.file.Paths;
9+
import java.nio.file.StandardCopyOption;
910
import java.util.Map;
1011
import java.util.Properties;
1112
import java.util.logging.FileHandler;
@@ -687,14 +688,7 @@ public void testWldfScaling(Operator operator, Domain domain) throws Exception {
687688
String adminPodName = domainUid + "-" + adminServerName;
688689
String domainName = (String) domainMap.get("domainName");
689690

690-
String scriptsDir =
691-
"/scratch/acceptance_test_pv/persistentVolume-"
692-
+ domainUid
693-
+ "/domains/"
694-
+ domainUid
695-
+ "/bin/scripts";
696-
697-
copyScalingScriptToPod(scriptsDir, domainUid, adminPodName, domainNS);
691+
copyScalingScriptToPod(domainUid, adminPodName, domainNS);
698692
TestUtils.createRbacPoliciesForWldfScaling();
699693

700694
// deploy opensessionapp
@@ -752,18 +746,23 @@ protected void logTestBegin(String testName) throws Exception {
752746
TestUtils.renewK8sClusterLease(getProjectRoot(), getLeaseId());
753747
}
754748

755-
private void copyScalingScriptToPod(
756-
String dirPathToCreate, String domainUid, String podName, String domainNS) throws Exception {
749+
private void copyScalingScriptToPod(String domainUid, String podName, String domainNS)
750+
throws Exception {
751+
752+
String pvDir = BaseTest.getPvRoot() + "/acceptance_test_pv/persistentVolume-" + domainUid;
753+
String scriptsDir = pvDir + "/domains/" + domainUid + "/bin/scripts";
757754

758755
// create scripts dir under domain pv
759-
TestUtils.createDirUnderDomainPV(dirPathToCreate);
760-
756+
TestUtils.createDirUnderDomainPV(scriptsDir);
757+
// workaround for the issue with not allowing .. in the host-path in krun.sh
758+
Files.copy(Paths.get(getProjectRoot() + "/src/scripts/scaling/scalingAction.sh"),
759+
Paths.get(getResultDir() + "/scalingAction.sh"), StandardCopyOption.REPLACE_EXISTING);
761760
// copy script to pod
762-
TestUtils.copyFileViaCat(
763-
getProjectRoot() + "/src/scripts/scaling/scalingAction.sh",
764-
"/shared/domains/" + domainUid + "/bin/scripts/scalingAction.sh",
765-
podName,
766-
domainNS);
761+
String cpUsingKrunCmd = getProjectRoot() + "/src/integration-tests/bash/krun.sh -m "
762+
+ getResultDir() + ":/tmpdir -m " + pvDir
763+
+ ":/pvdir -c 'cp -f /tmpdir/scalingAction.sh /pvdir/domains/domainonpvwdt/bin/scripts' -n "
764+
+ domainNS;
765+
TestUtils.exec(cpUsingKrunCmd, true);
767766
}
768767

769768
private void callWebAppAndVerifyScaling(Domain domain, int replicas) throws Exception {

0 commit comments

Comments
 (0)