Skip to content
Prev Previous commit
Next Next commit
Add proper condition for valid namespace creation.
Signed-off-by: Diana Arroyo <darroyo@us.ibm.com>
  • Loading branch information
dmatch01 committed Apr 27, 2020
commit 906dfea40a3a43d474ec6c5d5993310911bf1402
5 changes: 5 additions & 0 deletions hack/run-e2e-kind.sh
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,11 @@ function cleanup {
echo "---"
echo "'all' Namespaces list..."
kubectl get namespaces

echo "---"
echo "'aw-namespace-1' Namespace list..."
kubectl get namespace aw-namespace-1 -o yaml

echo "===================================================================================="
echo "==========================>>>>> MCAD Controller Logs <<<<<=========================="
echo "===================================================================================="
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/queue.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ var _ = Describe("Predicates E2E Test", func() {

It("Create AppWrapper - Namespace Only - 0 Pods", func() {
context := initTestContext()
//putmebackdefer cleanupTestContext(context)
// Put me backdefer cleanupTestContext(context)

aw := createNamespaceAW(context,"aw-namespace-0")

Expand Down
3 changes: 1 addition & 2 deletions test/e2e/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -364,8 +364,7 @@ func waitAWNonComputeResourceActive(ctx *context, aw *arbv1.AppWrapper) error {

func waitAWNamespaceActive(ctx *context, aw *arbv1.AppWrapper) error {
return wait.Poll(100*time.Millisecond, oneMinute, awNamespacePhase(ctx, aw,
[]v1.NamespacePhase{v1.NamespaceTerminating} ))
// []v1.NamespacePhase{v1.NamespaceActive} ))
[]v1.NamespacePhase{v1.NamespaceActive} ))
}

func awNamespacePhase(ctx *context, aw *arbv1.AppWrapper, phase []v1.NamespacePhase) wait.ConditionFunc {
Expand Down