diff --git a/extensions/base/suite.go b/extensions/base/suite.go index 32fee78f1b..645f3d4b1e 100644 --- a/extensions/base/suite.go +++ b/extensions/base/suite.go @@ -52,7 +52,7 @@ func (s *Suite) TearDownSuite() { } const ( - sha = "36df22c7c50f5d6871d771e4541fced1d494734c" + sha = "4eb25b7aff1e20f6621a1156981165937282a780" ) // SetupSuite runs all extensions diff --git a/suites/basic/suite.gen.go b/suites/basic/suite.gen.go index 2b6de905f4..cfe47024fc 100755 --- a/suites/basic/suite.gen.go +++ b/suites/basic/suite.gen.go @@ -28,7 +28,7 @@ func (s *Suite) SetupSuite() { r.Run(`WH=$(kubectl get pods -l app=admission-webhook-k8s -n nsm-system --template '{{range .items}}{{.metadata.name}}{{"\n"}}{{end}}')` + "\n" + `kubectl delete mutatingwebhookconfiguration ${WH}` + "\n" + `kubectl delete ns nsm-system`) }) r.Run(`kubectl create ns nsm-system`) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/basic?ref=821714565782ed3c8d1481b91184eddc5efc826e`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/basic?ref=cbc5639a12a35af201780d1b09499e6c1d2f5081`) r.Run(`WH=$(kubectl get pods -l app=admission-webhook-k8s -n nsm-system --template '{{range .items}}{{.metadata.name}}{{"\n"}}{{end}}')` + "\n" + `kubectl wait --for=condition=ready --timeout=1m pod ${WH} -n nsm-system`) } func (s *Suite) TestKernel2Kernel() { @@ -36,9 +36,9 @@ func (s *Suite) TestKernel2Kernel() { s.T().Cleanup(func() { r.Run(`kubectl delete ns ${NAMESPACE}`) }) - r.Run(`NAMESPACE=($(kubectl create -f https://raw.githubusercontent.com/networkservicemesh/deployments-k8s/821714565782ed3c8d1481b91184eddc5efc826e/examples/use-cases/namespace.yaml)[0])` + "\n" + `NAMESPACE=${NAMESPACE:10}`) + r.Run(`NAMESPACE=($(kubectl create -f https://raw.githubusercontent.com/networkservicemesh/deployments-k8s/cbc5639a12a35af201780d1b09499e6c1d2f5081/examples/use-cases/namespace.yaml)[0])` + "\n" + `NAMESPACE=${NAMESPACE:10}`) r.Run(`NODE=($(kubectl get nodes -o go-template='{{range .items}}{{ if not .spec.taints }}{{index .metadata.labels "kubernetes.io/hostname"}} {{end}}{{end}}')[0])`) - r.Run(`cat > kustomization.yaml < kustomization.yaml < client.yaml < patch-nse.yaml < kustomization.yaml < kustomization.yaml < client.yaml < patch-nse.yaml < kustomization.yaml < kustomization.yaml < client.yaml < patch-nse.yaml < kustomization.yaml < kustomization.yaml < client.yaml < patch-nse.yaml < kustomization.yaml < kustomization.yaml < client.yaml < patch-nse.yaml < kustomization.yaml < kustomization.yaml < client.yaml < patch-nse.yaml < kustomization.yaml < kustomization.yaml < patch-nsc.yaml < patch-nse.yaml < kustomization.yaml < kustomization.yaml < patch-nsc.yaml < patch-nse.yaml < kustomization.yaml < kustomization.yaml < patch-nsc.yaml < patch-nse.yaml < kustomization.yaml < kustomization.yaml < patch-nsc.yaml < patch-nse.yaml < kustomization.yaml < kustomization.yaml < patch-nsc.yaml < patch-nse.yaml < kustomization.yaml < kustomization.yaml < patch-nsc.yaml < patch-nse.yaml < dnsutils.yaml < patch-nse.yaml < kustomization.yaml < kustomization.yaml < kustomization.yaml < kustomization.yaml < client.yaml < patch-nse.yaml < kustomization.yaml < kustomization.yaml < client.yaml < patch-nse.yaml < kustomization.yaml < kustomization.yaml < patch-nsc.yaml < patch-nse.yaml < kustomization.yaml < kustomization.yaml < kustomization.yaml < kustomization.yaml < client.yaml < patch-nse.yaml < kustomization.yaml < kustomization.yaml < client.yaml < patch-nse.yaml < kustomization.yaml < kustomization.yaml < client.yaml < patch-nse.yaml < kustomization.yaml < kustomization.yaml < patch-nsc.yaml < patch-nse.yaml < kustomization.yaml < kustomization.yaml < patch-nsc.yaml < patch-nse.yaml < kustomization.yaml < kustomization.yaml < patch-nsc.yaml < patch-nse.yaml < kustomization.yaml < kustomization.yaml < patch-nsc.yaml < kustomization.yaml < kustomization.yaml < client.yaml < patch-nse.yaml < kustomization.yaml < kustomization.yaml < patch-nsc.yaml < patch-nse.yaml < kustomization.yaml < kustomization.yaml < client.yaml < patch-nse.yaml < patch-nsc.yaml < patch-supplier.yaml < kustomization.yaml < kustomization.yaml < client.yaml < patch-nse.yaml < kustomization.yaml < kustomization.yaml < kustomization.yaml < kustomization.yaml < patch-nsc.yaml < patch-nse.yaml < kustomization.yaml < kustomization.yaml < patch-nsc.yaml < patch-nse.yaml < kustomization.yaml < kustomization.yaml < patch-nsc.yaml < patch-nse.yaml < kustomization.yaml < kustomization.yaml < patch-nsc.yaml < patch-nse.yaml < kustomization.yaml < kustomization.yaml < patch-nsc.yaml < patch-nse.yaml < kustomization.yaml < kustomization.yaml < patch-nsc.yaml < patch-nse.yaml < kustomization.yaml < kustomization.yaml < patch-nsc.yaml < patch-nse.yaml < kustomization.yaml < kustomization.yaml < patch-nsc.yaml < patch-nse.yaml < kustomization.yaml < kustomization.yaml < patch-nsc.yaml < patch-nse.yaml < kustomization.yaml < kustomization.yaml < patch-nsc.yaml < patch-nse.yaml < kustomization.yaml < kustomization.yaml < patch-nsc.yaml < patch-nse.yaml < kustomization.yaml < kustomization.yaml < patch-nsc.yaml < patch-nse.yaml < kustomization.yaml < kustomization.yaml < patch-nsc.yaml < patch-nse.yaml < kustomization.yaml < kustomization.yaml < patch-nsc.yaml < kustomization.yaml < kustomization.yaml < patch-nsc.yaml < patch-nse.yaml < kustomization.yaml < kustomization.yaml < patch-nsc.yaml < patch-nse.yaml < kustomization.yaml < kustomization.yaml < patch-nsc.yaml < patch-nse.yaml < kustomization.yaml < kustomization.yaml < patch-nsc.yaml < patch-nse.yaml < kustomization.yaml < kustomization.yaml < patch-nsc.yaml < patch-nse.yaml < kustomization.yaml < kustomization.yaml < patch-nsc.yaml < patch-nse.yaml < kustomization.yaml < kustomization.yaml < patch-nsmgr.yaml < kustomization.yaml < kustomization.yaml < patch-nse.yaml < kustomization.yaml < kustomization.yaml < patch-nsc.yaml < patch-nse.yaml < kustomization.yaml < kustomization.yaml < patch-nsc.yaml < patch-nse.yaml < kustomization.yaml < kustomization.yaml < patch-nsc.yaml < patch-nse.yaml < kustomization.yaml < kustomization.yaml < patch-nse.yaml < kustomization.yaml < kustomization.yaml < patch-nsc.yaml < kustomization.yaml < kustomization.yaml < kustomization.yaml < patch-nsc.yaml < kustomization.yaml < kustomization.yaml < patch-nse.yaml < kustomization.yaml < kustomization.yaml < patch-nsc.yaml < kustomization.yaml < kustomization.yaml < patch-nse.yaml < kustomization.yaml < kustomization.yaml < patch-nsc.yaml < docker-compose.override.yaml < kustomization.yaml < kustomization.yaml < patch-nsc.yaml < kustomization.yaml < kustomization.yaml < client.yaml < patch-nse.yaml < kustomization.yaml < kustomization.yaml < client.yaml < patch-nse.yaml < kustomization.yaml < kustomization.yaml < patch-nsc.yaml < patch-nse.yaml < kustomization.yaml < kustomization.yaml < client.yaml < patch-nse.yaml </dev/null 2>&1 & \` + "\n" + `'`) r.Run(`kubectl delete ns ${NAMESPACE}`) }) - r.Run(`NAMESPACE=($(kubectl create -f https://raw.githubusercontent.com/networkservicemesh/deployments-k8s/821714565782ed3c8d1481b91184eddc5efc826e/examples/use-cases/namespace.yaml)[0])` + "\n" + `NAMESPACE=${NAMESPACE:10}`) + r.Run(`NAMESPACE=($(kubectl create -f https://raw.githubusercontent.com/networkservicemesh/deployments-k8s/cbc5639a12a35af201780d1b09499e6c1d2f5081/examples/use-cases/namespace.yaml)[0])` + "\n" + `NAMESPACE=${NAMESPACE:10}`) r.Run(`NODE=($(kubectl get nodes -o go-template='{{range .items}}{{ if not .spec.taints }}{{index .metadata.labels "kubernetes.io/hostname"}} {{end}}{{end}}')[0])`) r.Run(`function mac_create(){` + "\n" + ` echo -n 00` + "\n" + ` dd bs=1 count=5 if=/dev/random 2>/dev/null | hexdump -v -e '/1 ":%02x"'` + "\n" + `}`) r.Run(`CLIENT_MAC=$(mac_create)` + "\n" + `echo Client MAC: ${CLIENT_MAC}`) r.Run(`SERVER_MAC=$(mac_create)` + "\n" + `echo Server MAC: ${SERVER_MAC}`) - r.Run(`cat > kustomization.yaml < kustomization.yaml < patch-nsc.yaml < patch-nse.yaml < patch-nse-vfio.yaml < kustomization.yaml < kustomization.yaml < client.yaml < patch-nse.yaml </dev/null 2>&1 & \` + "\n" + `'`) r.Run(`kubectl delete ns ${NAMESPACE}`) }) - r.Run(`NAMESPACE=($(kubectl create -f https://raw.githubusercontent.com/networkservicemesh/deployments-k8s/821714565782ed3c8d1481b91184eddc5efc826e/examples/use-cases/namespace.yaml)[0])` + "\n" + `NAMESPACE=${NAMESPACE:10}`) + r.Run(`NAMESPACE=($(kubectl create -f https://raw.githubusercontent.com/networkservicemesh/deployments-k8s/cbc5639a12a35af201780d1b09499e6c1d2f5081/examples/use-cases/namespace.yaml)[0])` + "\n" + `NAMESPACE=${NAMESPACE:10}`) r.Run(`NODES=($(kubectl get nodes -o go-template='{{range .items}}{{ if not .spec.taints }}{{index .metadata.labels "kubernetes.io/hostname"}} {{end}}{{end}}'))`) r.Run(`function mac_create(){` + "\n" + ` echo -n 00` + "\n" + ` dd bs=1 count=5 if=/dev/random 2>/dev/null | hexdump -v -e '/1 ":%02x"'` + "\n" + `}`) r.Run(`CLIENT_MAC=$(mac_create)` + "\n" + `echo Client MAC: ${CLIENT_MAC}`) r.Run(`SERVER_MAC=$(mac_create)` + "\n" + `echo Server MAC: ${SERVER_MAC}`) - r.Run(`cat > kustomization.yaml < kustomization.yaml < patch-nsc.yaml < patch-nse.yaml < patch-nse-vfio.yaml < kustomization.yaml < kustomization.yaml < patch-nsc.yaml < patch-nse.yaml < kustomization.yaml < kustomization.yaml < patch-nsc.yaml < patch-nse.yaml </dev/null 2>&1 & \` + "\n" + `'`) r.Run(`kubectl delete ns ${NAMESPACE}`) }) - r.Run(`NAMESPACE=($(kubectl create -f https://raw.githubusercontent.com/networkservicemesh/deployments-k8s/821714565782ed3c8d1481b91184eddc5efc826e/examples/use-cases/namespace.yaml)[0])` + "\n" + `NAMESPACE=${NAMESPACE:10}`) + r.Run(`NAMESPACE=($(kubectl create -f https://raw.githubusercontent.com/networkservicemesh/deployments-k8s/cbc5639a12a35af201780d1b09499e6c1d2f5081/examples/use-cases/namespace.yaml)[0])` + "\n" + `NAMESPACE=${NAMESPACE:10}`) r.Run(`function mac_create(){` + "\n" + ` echo -n 00` + "\n" + ` dd bs=1 count=5 if=/dev/random 2>/dev/null | hexdump -v -e '/1 ":%02x"'` + "\n" + `}`) r.Run(`CLIENT_MAC=$(mac_create)` + "\n" + `echo Client MAC: ${CLIENT_MAC}`) r.Run(`SERVER_MAC=$(mac_create)` + "\n" + `echo Server MAC: ${SERVER_MAC}`) r.Run(`cat > patch-nse-vfio.yaml < kustomization.yaml < kustomization.yaml < example/kustomization.yaml < example/kustomization.yaml < example/client.yaml < example/patch-nse.yaml < postgres-cl.yaml < patch-nse.yaml < kustomization.yaml < kustomization.yaml < kustomization.yaml < kustomization.yaml < client.yaml < patch-nse.yaml < kustomization.yaml < kustomization.yaml < patch-nsc.yaml < patch-nse.yaml < kustomization.yaml < kustomization.yaml < patch-nsc.yaml < patch-nse.yaml < first-iperf-s.yaml < first-iperf-s.yaml < kustomization.yaml < ns-1/first-client.yaml < ns-1/patch-nse.yaml < ns-2/second-client.yaml < ns-2/third-client.yaml < ns-2/patch-nse.yaml < ns-2/kustomization.yaml < ns-2/kustomization.yaml < client.yaml < first-iperf-s.yaml < first-iperf-s.yaml < kustomization.yaml < ns-1/first-client.yaml < ns-1/patch-nse.yaml < ns-2/second-client.yaml < ns-2/third-client.yaml < ns-2/patch-nse.yaml < ns-2/kustomization.yaml < ns-2/kustomization.yaml < client.yaml < kustomization.yaml < kustomization.yaml < patch-nsc.yaml < patch-nse.yaml </dev/null 2>&1 & \` + "\n" + `'`) r.Run(`kubectl delete ns ${NAMESPACE}`) }) - r.Run(`NAMESPACE=($(kubectl create -f https://raw.githubusercontent.com/networkservicemesh/deployments-k8s/821714565782ed3c8d1481b91184eddc5efc826e/examples/use-cases/namespace.yaml)[0])` + "\n" + `NAMESPACE=${NAMESPACE:10}`) + r.Run(`NAMESPACE=($(kubectl create -f https://raw.githubusercontent.com/networkservicemesh/deployments-k8s/cbc5639a12a35af201780d1b09499e6c1d2f5081/examples/use-cases/namespace.yaml)[0])` + "\n" + `NAMESPACE=${NAMESPACE:10}`) r.Run(`function mac_create(){` + "\n" + ` echo -n 00` + "\n" + ` dd bs=1 count=5 if=/dev/random 2>/dev/null | hexdump -v -e '/1 ":%02x"'` + "\n" + `}`) r.Run(`CLIENT_MAC=$(mac_create)` + "\n" + `echo Client MAC: ${CLIENT_MAC}`) r.Run(`SERVER_MAC=$(mac_create)` + "\n" + `echo Server MAC: ${SERVER_MAC}`) r.Run(`cat > patch-nse-vfio.yaml < kustomization.yaml < kustomization.yaml <