You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -768,12 +768,17 @@ function run_create_domain_job {
768
768
sed -i -e "s/^configuredManagedServerCount:.*/configuredManagedServerCount: 3/"$inputs
769
769
fi
770
770
771
+
# we will test pv reclaim policy in domain6. We choose to do this way to void adding too many parameters in dom_define
772
+
if [ "$DOMAIN_UID"=="domain6" ] ;then
773
+
sed -i -e "s/^weblogicDomainStorageReclaimPolicy:.*/weblogicDomainStorageReclaimPolicy: Recycle/"$inputs
774
+
fi
775
+
771
776
local outfile="${tmp_dir}/mkdir_physical_nfs.out"
772
777
trace "Use a job to create the k8s host directory \"$PV_ROOT/acceptance_test_pv/$DOMAIN_STORAGE_DIR\" that we will use for the domain's persistent volume, see \"$outfile\" for job tracing."
773
778
774
779
# Note that the job.sh job mounts PV_ROOT to /scratch and runs as UID 1000,
775
780
# so PV_ROOT must already exist and have 777 or UID=1000 permissions.
# create namespaces for domains (the operator job creates a namespace if needed)
2529
2561
# TODO have the op_define commands themselves create target namespace if it doesn't already exist, or test if the namespace creation is needed in the first place, and if so, ask MikeG to create them as part of domain create job
@@ -2588,9 +2620,12 @@ function test_suite {
2588
2620
# cycle domain1 down and back up, plus verify no impact on domain4
2589
2621
test_domain_lifecycle domain1 domain4
2590
2622
2591
-
# create another domain in the default namespace with startupControl="ADMIN", and verify that only admin server is created
2623
+
# create domain5 in the default namespace with startupControl="ADMIN", and verify that only admin server is created
2592
2624
test_create_domain_startup_control_admin domain5
2593
2625
2626
+
# create domain6 in the default namespace with pvReclaimPolicy="Recycle", and verify that the PV is deleted once the domain and PVC are deleted
0 commit comments