Skip to content

Commit

Permalink
Print log
Browse files Browse the repository at this point in the history
Signed-off-by: Lubron Zhan <[email protected]>
  • Loading branch information
lubronzhan committed Mar 13, 2024
1 parent 5697b6a commit b5ea637
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
6 changes: 0 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -88,13 +88,7 @@ docker-push:
# TODO:(xudongl) This is used to silence the ginkgo complain, can be removed once upgrade ginkgo to v2
export ACK_GINKGO_DEPRECATIONS=1.16.4
integration-test: $(GINKGO) $(ETCD)
$(GINKGO) -v controllers/akodeploymentconfig/phases -- -enable-integration-tests -enable-unit-tests=false -root-dir="../../.."
$(GINKGO) -v controllers/akodeploymentconfig/user -- -enable-integration-tests -enable-unit-tests=false -root-dir="../../.."
$(GINKGO) -v controllers/akodeploymentconfig -- -enable-integration-tests -enable-unit-tests=false
$(GINKGO) -v controllers/machine -- -enable-integration-tests -enable-unit-tests=false
$(GINKGO) -v controllers/cluster -- -enable-integration-tests -enable-unit-tests=false
$(GINKGO) -v controllers/tests/cluster_for_akodeploymentconfig/default_adc -- -enable-integration-tests -enable-unit-tests=false -root-dir="../../../.."
$(GINKGO) -v controllers/tests/cluster_for_akodeploymentconfig/default_adc_non_empty_selectors -- -enable-integration-tests -enable-unit-tests=false -root-dir="../../../.."

.PHONY: kind-e2e-test
kind-e2e-test: $(KUSTOMIZE) $(KIND) $(KUBECTL) $(JQ) $(YTT)
Expand Down
5 changes: 5 additions & 0 deletions controllers/machine/machine_controller_intg_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
package machine_test

import (
"fmt"
"os"

. "github.com/onsi/ginkgo"
Expand Down Expand Up @@ -96,11 +97,15 @@ func intgTestMachineController() {
Eventually(func() int {
err := ctx.Client.Get(ctx.Context, client.ObjectKey{Name: cluster.Namespace + "-" + cluster.Name + "-control-plane", Namespace: cluster.Namespace}, ep)
if err != nil {
fmt.Println("error#############")
return 0
}
fmt.Println(ep)
if len(ep.Subsets) == 0 {
return 0
}
fmt.Println("here????????")
fmt.Println(ep.Subsets[0])
return len(ep.Subsets[0].Addresses)
}).Should(Equal(1))
Expect(ep.Subsets[0].Addresses[0].IP).Should(Equal("1.1.1.1"))
Expand Down

0 comments on commit b5ea637

Please sign in to comment.