Skip to content

Commit c65a310

Browse files
committed
Merge branch 'master' into oracle/issue106-as-java-options
2 parents bc5be1e + 40a0d23 commit c65a310

37 files changed

+1735
-905
lines changed

pom.xml

Lines changed: 7 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -82,35 +82,6 @@
8282
<exclude>**/*Test.java</exclude>
8383
</includes>
8484
</configuration>
85-
<executions>
86-
<execution>
87-
<id>default-test</id>
88-
<phase>test</phase>
89-
<goals>
90-
<goal>test</goal>
91-
</goals>
92-
<configuration>
93-
<skip>true</skip>
94-
</configuration>
95-
</execution>
96-
<!--
97-
<execution>
98-
<id>kubernetes-config</id>
99-
<phase>test</phase>
100-
<goals>
101-
<goal>test</goal>
102-
</goals>
103-
<configuration>
104-
<argLine>${surefireArgLine} -Xms512m -Xmx1500m</argLine>
105-
<environmentVariables>
106-
<KUBECONFIG>
107-
${project.basedir}/your.kube.config
108-
</KUBECONFIG>
109-
</environmentVariables>
110-
</configuration>
111-
</execution>
112-
-->
113-
</executions>
11485
</plugin>
11586

11687
<plugin>
@@ -525,6 +496,13 @@
525496
<artifactId>junit</artifactId>
526497
<version>${junit-version}</version>
527498
</dependency>
499+
<dependency>
500+
<groupId>org.apache.commons</groupId>
501+
<artifactId>commons-exec</artifactId>
502+
<version>1.3</version>
503+
<scope>test</scope>
504+
</dependency>
505+
528506
</dependencies>
529507

530508
<properties>

src-generated-swagger/main/java/oracle/kubernetes/operator/domain/model/oracle/kubernetes/weblogic/domain/v1/DomainSpec.java

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -267,20 +267,21 @@ public DomainSpec startupControl(String startupControl) {
267267
}
268268

269269
/**
270-
* Controls which managed servers will be started. Legal values are ADMIN, ALL,
271-
* SPECIFIED or AUTO. Defaults to AUTO. ADMIN indicates that only the
272-
* administration server is started. ALL indicates that all servers in the
273-
* domain will be started. SPECIFIED indicates that the administration server is
274-
* started and then additionally only those servers listed under serverStartup
275-
* or managed servers belonging to clusters listed under clusterStartup up to
276-
* the cluster's replicas field will be started. AUTO indicates that servers
277-
* will be started exactly as with SPECIFIED, but then managed servers belonging
278-
* to clusters not listed under clusterStartup will be started up to the
279-
* replicas field.
270+
* Controls which managed servers will be started. Legal values are NONE,
271+
* ADMIN, ALL, SPECIFIED or AUTO. Defaults to AUTO. NONE indicates that no
272+
* servers, including the administration server, will be started. ADMIN
273+
* indicates that only the administration server is started. ALL indicates
274+
* that all servers in the domain will be started. SPECIFIED indicates that
275+
* the administration server is started and then additionally only those
276+
* servers listed under serverStartup or managed servers belonging to
277+
* clusters listed under clusterStartup up to the cluster's replicas field
278+
* will be started. AUTO indicates that servers will be started exactly as
279+
* with SPECIFIED, but then managed servers belonging to clusters not listed
280+
* under clusterStartup will be started up to the replicas field.
280281
*
281282
* @return startupControl
282283
**/
283-
@ApiModelProperty(value = "Controls which managed servers will be started. Legal values are ADMIN, ALL, SPECIFIED or AUTO. Defaults to AUTO. ADMIN indicates that only the administration server is started. ALL indicates that all servers in the domain will be started. SPECIFIED indicates that the administration server is started and then additionally only those servers listed under serverStartup or managed servers belonging to clusters listed under clusterStartup up to the cluster's replicas field will be started. AUTO indicates that servers will be started exactly as with SPECIFIED, but then managed servers belonging to clusters not listed under clusterStartup will be started up to the replicas field.")
284+
@ApiModelProperty(value = "Controls which managed servers will be started. Legal values are NONE, ADMIN, ALL, SPECIFIED or AUTO. Defaults to AUTO. NONE indicates that no servers, including the administration server, will be started. ADMIN indicates that only the administration server is started. ALL indicates that all servers in the domain will be started. SPECIFIED indicates that the administration server is started and then additionally only those servers listed under serverStartup or managed servers belonging to clusters listed under clusterStartup up to the cluster's replicas field will be started. AUTO indicates that servers will be started exactly as with SPECIFIED, but then managed servers belonging to clusters not listed under clusterStartup will be started up to the replicas field.")
284285
public String getStartupControl() {
285286
return startupControl;
286287
}

src/integration-tests/bash/run.sh

Lines changed: 31 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,22 @@
1111
# -----------------
1212
#
1313
# This script runs a series of acceptance tests and archives the results
14-
# into tar.gz files upon completion.
14+
# into tar.gz files upon completion. It currently runs in three modes,
15+
# "Wercker", "Jenkins", and "standalone" Oracle Linux, where the mode
16+
# is controlled by the WERCKER and JENKINS environment variables described
17+
# below. A standalone run filters out verbose lines from the console output
18+
# while redirecting full output to the file /tmp/test_suite.out
1519
#
1620
# To cleanup after a run, see "cleanup.sh".
1721
#
18-
# The test has three levels of logging output, output that begins with:
22+
# The test has three levels of logging output. Output that begins with:
1923
#
2024
# "##TEST_INFO" is very concise (one line per test (either PASS or FAIL).
2125
# "[timestamp]" is concise.
2226
# "+" is verbose.
2327
# Anything else is semi-verbose.
2428
#
29+
#
2530
# This script accepts optional env var overrides:
2631
#
2732
# RESULT_ROOT The root directory of the test temporary files.
@@ -33,6 +38,9 @@
3338
# See "Directory Configuration and Structure" below for
3439
# defaults and a detailed description of test directies.
3540
#
41+
# QUICKTEST When set to "true", limits testing to a subset of
42+
# of the tests.
43+
#
3644
# WERCKER Set to true if invoking from Wercker, set
3745
# to false or "" if running stand-alone or from Jenkins.
3846
# Default is "".
@@ -371,6 +379,8 @@ trap ctrl_c INT
371379

372380
function ctrl_c() {
373381
declare_new_test_from_trap 1 run_aborted_with_ctrl_c
382+
# disable the trap:
383+
trap - INT
374384
fail "Trapped CTRL-C"
375385
}
376386

@@ -1449,6 +1459,8 @@ EOF
14491459
# like local, it uses the t3 channel...
14501460
run_wlst_script $1 hybrid ${pyfile_con}
14511461
else
1462+
# TODO The following has a dependency on java and WebLogic being in the path/classpath.
1463+
# We should run on 'hybrid' mode instead if java and WebLogic aren't already setup.
14521464
run_wlst_script $1 local ${pyfile_con}
14531465
fi
14541466

@@ -1470,6 +1482,11 @@ function run_wlst_script {
14701482
fail "requires at least 3 parameters: domainKey local|remote|hybrid local_pyfile optionalarg1 optionalarg2 ..."
14711483
fi
14721484

1485+
# TODO It seems possible to obtain user/pass from the secret via WLST verbs. This
1486+
# would be better than passing it to the WLST command-line in plain-text. See
1487+
# read-domain-secret.py in domain-job-template for an example of how this is done
1488+
# for WLST that runs from within a pod...
1489+
14731490
local DOM_KEY="$1"
14741491
local NAMESPACE="`dom_get $1 NAMESPACE`"
14751492
local DOMAIN_UID="`dom_get $1 DOMAIN_UID`"
@@ -2352,8 +2369,9 @@ function test_suite_init {
23522369
}
23532370

23542371
#
2355-
# TODO: Make output less verbose -- suppress REST output, etc. Move output to file and/or
2356-
# only report output on a failure and/or prefix output with a "+".
2372+
# TODO: Make output less verbose -- suppress REST, archive, and job output, etc. In general, move
2373+
# move verbose output to file and/or only report output on a failure and/or prefix output
2374+
# with a "+". Also, suppress output in the pod readiness loops to only once every 30 seconds.
23572375
#
23582376

23592377
function test_suite {
@@ -2415,19 +2433,18 @@ function test_suite {
24152433
# create first domain in default namespace and verify it
24162434
test_domain_creation domain1
24172435

2418-
# if QUICKTEST is true skip the rest of the tests
2419-
if [ ! "${QUICKTEST:-false}" = "true" ]; then
2420-
2421-
# test shutting down and restarting a domain
2422-
test_domain_lifecycle domain1
2436+
# test shutting down and restarting a domain
2437+
test_domain_lifecycle domain1
24232438

2424-
# test shutting down and restarting the operator for the given domain
2425-
test_operator_lifecycle domain1
2439+
# test shutting down and restarting the operator for the given domain
2440+
test_operator_lifecycle domain1
24262441

2427-
# TODO move test_cluster_scale to QUICKTEST once we speedup mgd server boots
2428-
# test scaling domain1 cluster from 2 to 3 servers and back down to 2
2429-
test_cluster_scale domain1
2442+
# test scaling domain1 cluster from 2 to 3 servers and back down to 2
2443+
test_cluster_scale domain1
24302444

2445+
# if QUICKTEST is true skip the rest of the tests
2446+
if [ ! "${QUICKTEST:-false}" = "true" ]; then
2447+
24312448
# create another domain in the default namespace and verify it
24322449
test_domain_creation domain2
24332450

0 commit comments

Comments
 (0)