From 0e393efac042c54c69d38f7ed810fcbe1ee51dbc Mon Sep 17 00:00:00 2001 From: NSMBot Date: Tue, 24 Sep 2024 10:32:15 +0000 Subject: [PATCH] Update go.mod and go.sum to latest version from networkservicemesh/deployments-k8s@main PR link: https://github.com/networkservicemesh/deployments-k8s/pull/12301 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Commit: b48cf06 Author: Network Service Mesh Bot Date: 2024-09-24 05:31:06 -0500 Message: - Update go.mod and go.sum to latest version from networkservicemesh/deployments-k8s@main (#3884) PR link: https://github.com/networkservicemesh/deployments-k8s/pull/12300 Commit: 474cd76 Author: Network Service Mesh Bot Date: 2024-09-24 05:28:36 -0500 Message: - Update go.mod and go.sum to latest version from networkservicemesh/deployments-k8s@main (#3883) PR link: https://github.com/networkservicemesh/deployments-k8s/pull/ Commit: 0f5a7c9 Author: Network Service Mesh Bot Date: 2024-09-23 05:05:16 -0500 Message: - Update go.mod and go.sum to latest version from networkservicemesh/deployments-k8s@main (#3882) PR link: https://github.com/networkservicemesh/deployments-k8s/pull/12297 Commit: 7c4eae7 Author: Network Service Mesh Bot Date: 2024-09-20 09:49:46 -0500 Message: - Update go.mod and go.sum to latest version from networkservicemesh/deployments-k8s@main (#3881) PR link: https://github.com/networkservicemesh/deployments-k8s/pull/12259 Commit: 2280cb5 Author: Network Service Mesh Bot Date: 2024-09-13 18:31:54 -0500 Message: - Update go.mod and go.sum to latest version from networkservicemesh/deployments-k8s@main (#3880) PR link: https://github.com/networkservicemesh/deployments-k8s/pull/ Commit: 4cb42ed Author: Network Service Mesh Bot Date: 2024-08-28 07:56:58 -0500 Message: - Update go.mod and go.sum to latest version from networkservicemesh/deployments-k8s@main (#3879) PR link: https://github.com/networkservicemesh/deployments-k8s/pull/12276 Commit: ee5b340 Author: Network Service Mesh Bot Date: 2024-08-28 07:54:49 -0500 Message: - Update go.mod and go.sum to latest version from networkservicemesh/deployments-k8s@main (#3878) PR link: https://github.com/networkservicemesh/deployments-k8s/pull/ Commit: 01f41b0 Author: Network Service Mesh Bot Date: 2024-08-27 07:17:43 -0500 Message: - Update go.mod and go.sum to latest version from networkservicemesh/deployments-k8s@main (#3877) PR link: https://github.com/networkservicemesh/deployments-k8s/pull/12270 Commit: edc6e20 Author: Network Service Mesh Bot Date: 2024-08-27 05:09:08 -0500 Message: - Update go.mod and go.sum to latest version from networkservicemesh/deployments-k8s@main (#3876) PR link: https://github.com/networkservicemesh/deployments-k8s/pull/12242 Commit: cdba343 Author: Network Service Mesh Bot Date: 2024-08-26 21:09:47 -0500 Message: - Update go.mod and go.sum to latest version from networkservicemesh/deployments-k8s@main (#3875) PR link: https://github.com/networkservicemesh/deployments-k8s/pull/12269 Commit: 577978a Author: Network Service Mesh Bot Date: 2024-08-26 21:08:14 -0500 Message: - Update go.mod and go.sum to latest version from networkservicemesh/deployments-k8s@main (#3874) PR link: https://github.com/networkservicemesh/deployments-k8s/pull/ Commit: 8fc4e97 Author: Network Service Mesh Bot Date: 2024-08-22 04:36:38 -0500 Message: - Update go.mod and go.sum to latest version from networkservicemesh/deployments-k8s@main (#3873) PR link: https://github.com/networkservicemesh/deployments-k8s/pull/12264 Commit: 56cd4ba Author: Network Service Mesh Bot Date: 2024-08-22 04:34:28 -0500 Message: - Update go.mod and go.sum to latest version from networkservicemesh/deployments-k8s@main (#3872) PR link: https://github.com/networkservicemesh/deployments-k8s/pull/12263 Commit: 0910a56 Author: Network Service Mesh Bot Date: 2024-08-20 05:11:01 -0500 Message: - Update go.mod and go.sum to latest version from networkservicemesh/deployments-k8s@main (#3871) PR link: https://github.com/networkservicemesh/deployments-k8s/pull/12245 Commit: 574765f Author: Network Service Mesh Bot Date: 2024-08-20 04:25:23 -0500 Message: - Update go.mod and go.sum to latest version from networkservicemesh/deployments-k8s@main (#3870) PR link: https://github.com/networkservicemesh/deployments-k8s/pull/12258 Commit: da38d16 Author: Network Service Mesh Bot Date: 2024-08-20 04:21:46 -0500 Message: - Update go.mod and go.sum to latest version from networkservicemesh/deployments-k8s@main (#3869) PR link: https://github.com/networkservicemesh/deployments-k8s/pull/12257 Commit: 54ee539 Author: Network Service Mesh Bot Date: 2024-08-20 04:20:02 -0500 Message: - Update go.mod and go.sum to latest version from networkservicemesh/deployments-k8s@main (#3868) PR link: https://github.com/networkservicemesh/deployments-k8s/pull/12254 Commit: d6a174c Author: Network Service Mesh Bot Date: 2024-08-20 04:17:42 -0500 Message: - Update go.mod and go.sum to latest version from networkservicemesh/deployments-k8s@main (#3867) PR link: https://github.com/networkservicemesh/deployments-k8s/pull/12251 Commit: 85f00f5 Author: Network Service Mesh Bot Date: 2024-08-20 04:14:38 -0500 Message: - Update go.mod and go.sum to latest version from networkservicemesh/deployments-k8s@main (#3866) PR link: https://github.com/networkservicemesh/deployments-k8s/pull/12255 Commit: 11f36ae Author: Network Service Mesh Bot Date: 2024-08-20 04:14:02 -0500 Message: - Update go.mod and go.sum to latest version from networkservicemesh/deployments-k8s@main (#3865) PR link: https://github.com/networkservicemesh/deployments-k8s/pull/12253 Commit: 2d28901 Author: Network Service Mesh Bot Date: 2024-08-20 04:08:15 -0500 Message: - Update go.mod and go.sum to latest version from networkservicemesh/deployments-k8s@main (#3863) PR link: https://github.com/networkservicemesh/deployments-k8s/pull/12248 Commit: 05eab87 Author: Network Service Mesh Bot Date: 2024-08-19 04:54:28 -0500 Message: - Update go.mod and go.sum to latest version from networkservicemesh/deployments-k8s@main (#3862) PR link: https://github.com/networkservicemesh/deployments-k8s/pull/12244 Commit: 1479649 Author: Network Service Mesh Bot Date: 2024-08-19 04:47:47 -0500 Message: - Update go.mod and go.sum to latest version from networkservicemesh/deployments-k8s@main (#3861) PR link: https://github.com/networkservicemesh/deployments-k8s/pull/12243 Commit: f6b11ac Author: Network Service Mesh Bot Date: 2024-08-19 04:46:23 -0500 Message: - Update go.mod and go.sum to latest version from networkservicemesh/deployments-k8s@main (#3860) PR link: https://github.com/networkservicemesh/deployments-k8s/pull/12239 Commit: a424f81 Author: Network Service Mesh Bot Date: 2024-08-19 04:44:19 -0500 Message: - Update go.mod and go.sum to latest version from networkservicemesh/deployments-k8s@main (#3859) PR link: https://github.com/networkservicemesh/deployments-k8s/pull/ Commit: d717f8c Author: Network Service Mesh Bot Date: 2024-08-19 04:43:23 -0500 Message: - Update go.mod and go.sum to latest version from networkservicemesh/deployments-k8s@main (#3858) PR link: https://github.com/networkservicemesh/deployments-k8s/pull/12148 Commit: 31a4443 Author: Network Service Mesh Bot Date: 2024-08-19 04:41:23 -0500 Message: - Update go.mod and go.sum to latest version from networkservicemesh/deployments-k8s@main (#3857) PR link: https://github.com/networkservicemesh/deployments-k8s/pull/12236 Commit: 0e97626 Author: Network Service Mesh Bot Date: 2024-08-19 04:37:19 -0500 Message: - Update go.mod and go.sum to latest version from networkservicemesh/deployments-k8s@main (#3856) PR link: https://github.com/networkservicemesh/deployments-k8s/pull/12235 Commit: e7b3bd6 Author: Network Service Mesh Bot Date: 2024-08-16 04:26:47 -0500 Message: - Update go.mod and go.sum to latest version from networkservicemesh/deployments-k8s@main (#3855) PR link: https://github.com/networkservicemesh/deployments-k8s/pull/12229 Commit: d0a09e0 Author: Network Service Mesh Bot Date: 2024-08-15 16:13:01 -0500 Message: - Update go.mod and go.sum to latest version from networkservicemesh/deployments-k8s@main (#3854) PR link: https://github.com/networkservicemesh/deployments-k8s/pull/12228 Commit: 0a06928 Author: Network Service Mesh Bot Date: 2024-08-15 16:07:43 -0500 Message: - Update go.mod and go.sum to latest version from networkservicemesh/deployments-k8s@main (#3853) PR link: https://github.com/networkservicemesh/deployments-k8s/pull/12225 Commit: cb1ef24 Author: Network Service Mesh Bot Date: 2024-08-15 16:05:17 -0500 Message: - Update go.mod and go.sum to latest version from networkservicemesh/deployments-k8s@main (#3852) PR link: https://github.com/networkservicemesh/deployments-k8s/pull/12221 Commit: 2d55af9 Author: Network Service Mesh Bot Date: 2024-08-15 16:01:21 -0500 Message: - Update go.mod and go.sum to latest version from networkservicemesh/deployments-k8s@main (#3851) PR link: https://github.com/networkservicemesh/deployments-k8s/pull/ Commit: 8dc39ab Author: Network Service Mesh Bot Date: 2024-08-15 15:58:33 -0500 Message: - Update go.mod and go.sum to latest version from networkservicemesh/deployments-k8s@main (#3850) PR link: https://github.com/networkservicemesh/deployments-k8s/pull/12213 Commit: df6dba3 Author: Network Service Mesh Bot Date: 2024-08-15 15:55:40 -0500 Message: - Update go.mod and go.sum to latest version from networkservicemesh/deployments-k8s@main (#3849) PR link: https://github.com/networkservicemesh/deployments-k8s/pull/12217 Commit: 983d0d0 Author: Network Service Mesh Bot Date: 2024-08-15 03:38:13 -0500 Message: - Update go.mod and go.sum to latest version from networkservicemesh/deployments-k8s@main (#3848) PR link: https://github.com/networkservicemesh/deployments-k8s/pull/ Commit: 6b0e70b Author: Network Service Mesh Bot Date: 2024-08-15 03:35:56 -0500 Message: - Update go.mod and go.sum to latest version from networkservicemesh/deployments-k8s@main (#3847) PR link: https://github.com/networkservicemesh/deployments-k8s/pull/ Commit: c38c8ba Author: Network Service Mesh Bot Date: 2024-08-14 09:04:46 -0500 Message: - Update go.mod and go.sum to latest version from networkservicemesh/deployments-k8s@main (#3846) PR link: https://github.com/networkservicemesh/deployments-k8s/pull/12206 Commit: 7e5e343 Author: Network Service Mesh Bot Date: 2024-08-14 08:59:47 -0500 Message: - Update go.mod and go.sum to latest version from networkservicemesh/deployments-k8s@main (#3845) PR link: https://github.com/networkservicemesh/deployments-k8s/pull/12205 Commit: 08655ba Author: Network Service Mesh Bot Date: 2024-08-14 08:57:31 -0500 Message: - Update go.mod and go.sum to latest version from networkservicemesh/deployments-k8s@main (#3844) PR link: https://github.com/networkservicemesh/deployments-k8s/pull/ Commit: cc4cc99 Author: Network Service Mesh Bot Date: 2024-08-14 08:55:49 -0500 Message: - Update go.mod and go.sum to latest version from networkservicemesh/deployments-k8s@main (#3843) PR link: https://github.com/networkservicemesh/deployments-k8s/pull/12203 Commit: 317b59f Author: Network Service Mesh Bot Date: 2024-08-14 08:53:53 -0500 Message: - Update go.mod and go.sum to latest version from networkservicemesh/deployments-k8s@main (#3842) PR link: https://github.com/networkservicemesh/deployments-k8s/pull/12202 Commit: 7fdcc81 Author: Network Service Mesh Bot Date: 2024-08-14 08:51:46 -0500 Message: - Update go.mod and go.sum to latest version from networkservicemesh/deployments-k8s@main (#3841) PR link: https://github.com/networkservicemesh/deployments-k8s/pull/12196 Commit: ddc4198 Author: Network Service Mesh Bot Date: 2024-08-14 08:48:12 -0500 Message: - Update go.mod and go.sum to latest version from networkservicemesh/deployments-k8s@main (#3840) PR link: https://github.com/networkservicemesh/deployments-k8s/pull/ Commit: abd482b Author: Network Service Mesh Bot Date: 2024-08-14 04:07:48 -0500 Message: - Update go.mod and go.sum to latest version from networkservicemesh/deployments-k8s@main (#3839) PR link: https://github.com/networkservicemesh/deployments-k8s/pull/12175 Commit: 1f82ab9 Author: Network Service Mesh Bot Date: 2024-08-14 03:42:35 -0500 Message: - Update go.mod and go.sum to latest version from networkservicemesh/deployments-k8s@main (#3838) PR link: https://github.com/networkservicemesh/deployments-k8s/pull/12188 Commit: b6d7ee0 Author: Network Service Mesh Bot Date: 2024-08-12 05:58:09 -0500 Message: - Update go.mod and go.sum to latest version from networkservicemesh/deployments-k8s@main (#3837) PR link: https://github.com/networkservicemesh/deployments-k8s/pull/12187 Commit: ac222f7 Author: Network Service Mesh Bot Date: 2024-08-12 05:56:13 -0500 Message: - Update go.mod and go.sum to latest version from networkservicemesh/deployments-k8s@main (#3836) PR link: https://github.com/networkservicemesh/deployments-k8s/pull/12186 Commit: 4365f37 Author: Network Service Mesh Bot Date: 2024-08-12 05:52:21 -0500 Message: - Update go.mod and go.sum to latest version from networkservicemesh/deployments-k8s@main (#3835) PR link: https://github.com/networkservicemesh/deployments-k8s/pull/ Commit: a6e7502 Author: Network Service Mesh Bot Date: 2024-08-12 05:49:09 -0500 Message: - Update go.mod and go.sum to latest version from networkservicemesh/deployments-k8s@main (#3834) PR link: https://github.com/networkservicemesh/deployments-k8s/pull/12179 Commit: d8ad2bf Author: Network Service Mesh Bot Date: 2024-08-12 05:46:29 -0500 Message: - Update go.mod and go.sum to latest version from networkservicemesh/deployments-k8s@main (#3833) PR link: https://github.com/networkservicemesh/deployments-k8s/pull/12177 Commit: 076e887 Author: Network Service Mesh Bot Date: 2024-08-09 05:05:31 -0500 Message: - Update go.mod and go.sum to latest version from networkservicemesh/deployments-k8s@main (#3832) PR link: https://github.com/networkservicemesh/deployments-k8s/pull/12170 Commit: e14b6bb Author: Network Service Mesh Bot Date: 2024-08-09 04:39:56 -0500 Message: - Update go.mod and go.sum to latest version from networkservicemesh/deployments-k8s@main (#3831) PR link: https://github.com/networkservicemesh/deployments-k8s/pull/12171 Commit: 2c8e608 Author: Network Service Mesh Bot Date: 2024-08-08 10:20:54 -0500 Message: - Update go.mod and go.sum to latest version from networkservicemesh/deployments-k8s@main (#3830) PR link: https://github.com/networkservicemesh/deployments-k8s/pull/12122 Commit: bd0108d Author: Network Service Mesh Bot Date: 2024-08-08 09:54:49 -0500 Message: - Update go.mod and go.sum to latest version from networkservicemesh/deployments-k8s@main (#3829) PR link: https://github.com/networkservicemesh/deployments-k8s/pull/12169 Commit: 4c9b0e3 Author: Network Service Mesh Bot Date: 2024-08-08 09:53:00 -0500 Message: - Update go.mod and go.sum to latest version from networkservicemesh/deployments-k8s@main (#3828) PR link: https://github.com/networkservicemesh/deployments-k8s/pull/12168 Commit: 24534b7 Author: Network Service Mesh Bot Date: 2024-08-08 09:47:21 -0500 Message: - Update go.mod and go.sum to latest version from networkservicemesh/deployments-k8s@main (#3827) PR link: https://github.com/networkservicemesh/deployments-k8s/pull/12166 Commit: 81ec37d Author: Network Service Mesh Bot Date: 2024-08-08 06:52:40 -0500 Message: - Update go.mod and go.sum to latest version from networkservicemesh/deployments-k8s@main (#3826) PR link: https://github.com/networkservicemesh/deployments-k8s/pull/12165 Commit: e4f43f6 Author: Network Service Mesh Bot Date: 2024-08-08 06:49:31 -0500 Message: - Update go.mod and go.sum to latest version from networkservicemesh/deployments-k8s@main (#3825) PR link: https://github.com/networkservicemesh/deployments-k8s/pull/12164 Commit: e745bbb Author: Network Service Mesh Bot Date: 2024-08-08 06:47:44 -0500 Message: - Update go.mod and go.sum to latest version from networkservicemesh/deployments-k8s@main (#3824) PR link: https://github.com/networkservicemesh/deployments-k8s/pull/ Commit: 7d02bfb Author: Network Service Mesh Bot Date: 2024-08-08 06:43:50 -0500 Message: - Update go.mod and go.sum to latest version from networkservicemesh/deployments-k8s@main (#3823) PR link: https://github.com/networkservicemesh/deployments-k8s/pull/12157 Commit: 946fd6d Author: Network Service Mesh Bot Date: 2024-08-08 06:40:44 -0500 Message: - Update go.mod and go.sum to latest version from networkservicemesh/deployments-k8s@main (#3822) PR link: https://github.com/networkservicemesh/deployments-k8s/pull/12156 Commit: 0cbc095 Author: Network Service Mesh Bot Date: 2024-08-08 05:22:57 -0500 Message: - Update go.mod and go.sum to latest version from networkservicemesh/deployments-k8s@main (#3821) PR link: https://github.com/networkservicemesh/deployments-k8s/pull/12152 Commit: 0cab51b Author: Network Service Mesh Bot Date: 2024-08-08 05:21:15 -0500 Message: - Update go.mod and go.sum to latest version from networkservicemesh/deployments-k8s@main (#3820) PR link: https://github.com/networkservicemesh/deployments-k8s/pull/12102 Commit: f153f5c Author: Network Service Mesh Bot Date: 2024-08-08 05:17:42 -0500 Message: - Update go.mod and go.sum to latest version from networkservicemesh/deployments-k8s@main (#3819) PR link: https://github.com/networkservicemesh/deployments-k8s/pull/12151 Commit: 6fa1f4e Author: Network Service Mesh Bot Date: 2024-08-08 05:17:08 -0500 Message: - Update go.mod and go.sum to latest version from networkservicemesh/deployments-k8s@main (#3818) PR link: https://github.com/networkservicemesh/deployments-k8s/pull/12149 Commit: 7bf6af2 Author: Network Service Mesh Bot Date: 2024-08-08 05:13:25 -0500 Message: - Update go.mod and go.sum to latest version from networkservicemesh/deployments-k8s@main (#3817) PR link: https://github.com/networkservicemesh/deployments-k8s/pull/12146 Commit: d78a477 Author: Network Service Mesh Bot Date: 2024-08-08 05:10:29 -0500 Message: - Update go.mod and go.sum to latest version from networkservicemesh/deployments-k8s@main (#3816) PR link: https://github.com/networkservicemesh/deployments-k8s/pull/12144 Commit: 584ceb3 Author: Network Service Mesh Bot Date: 2024-08-06 03:55:40 -0500 Message: - Update go.mod and go.sum to latest version from networkservicemesh/deployments-k8s@main (#3815) PR link: https://github.com/networkservicemesh/deployments-k8s/pull/12140 Commit: 0f411fe Author: Network Service Mesh Bot Date: 2024-08-06 00:55:00 -0500 Message: - Update go.mod and go.sum to latest version from networkservicemesh/deployments-k8s@main (#3814) PR link: https://github.com/networkservicemesh/deployments-k8s/pull/ Commit: 8537ba7 Author: Network Service Mesh Bot Date: 2024-08-06 00:51:35 -0500 Message: - Update go.mod and go.sum to latest version from networkservicemesh/deployments-k8s@main (#3813) PR link: https://github.com/networkservicemesh/deployments-k8s/pull/12138 Commit: 6d34f30 Author: Network Service Mesh Bot Date: 2024-08-05 21:31:45 -0500 Message: - Update go.mod and go.sum to latest version from networkservicemesh/deployments-k8s@main (#3812) PR link: https://github.com/networkservicemesh/deployments-k8s/pull/12136 Commit: 17d20d6 Author: Network Service Mesh Bot Date: 2024-08-05 21:31:12 -0500 Message: - Update go.mod and go.sum to latest version from networkservicemesh/deployments-k8s@main (#3811) PR link: https://github.com/networkservicemesh/deployments-k8s/pull/12134 Commit: 32d7e75 Author: Network Service Mesh Bot Date: 2024-08-01 04:41:40 -0500 Message: - Update go.mod and go.sum to latest version from networkservicemesh/deployments-k8s@main (#3810) PR link: https://github.com/networkservicemesh/deployments-k8s/pull/12130 Commit: 4d939ab Author: Network Service Mesh Bot Date: 2024-08-01 04:38:38 -0500 Message: - Update go.mod and go.sum to latest version from networkservicemesh/deployments-k8s@main (#3809) PR link: https://github.com/networkservicemesh/deployments-k8s/pull/12133 Commit: 730864c Author: Network Service Mesh Bot Date: 2024-08-01 04:36:31 -0500 Message: … Signed-off-by: NSMBot --- extensions/base/suite.gen.go | 2 +- suites/afxdp/suite.gen.go | 22 ++-- suites/basic/suite.gen.go | 28 ++--- suites/features/suite.gen.go | 68 +++++------ suites/features_ovs/suite.gen.go | 46 ++++---- suites/heal/suite.gen.go | 86 +++++++------- suites/heal_extended/suite.gen.go | 2 +- suites/heal_ovs/suite.gen.go | 16 +-- suites/interdomain/suites/basic/suite.gen.go | 108 +++++++++--------- suites/interdomain/suites/heal/suite.gen.go | 36 +++--- suites/interdomain/suites/ipsec/suite.gen.go | 28 ++--- .../suites/multiservicemesh/suite.gen.go | 44 +++---- .../basic/suite.gen.go | 6 +- .../ipsec/suite.gen.go | 6 +- .../basic/suite.gen.go | 4 +- .../spiffe_federation/suite.gen.go | 4 +- .../usecases/nsm_istio_booking/suite.gen.go | 8 +- suites/ipsec_mechanism/suite.gen.go | 12 +- .../external_nsc/docker/suite.gen.go | 2 +- .../spiffe_federation/suite.gen.go | 4 +- suites/k8s_monolith/external_nsc/suite.gen.go | 4 +- .../external_nse/docker/suite.gen.go | 2 +- .../spiffe_federation/suite.gen.go | 4 +- suites/k8s_monolith/external_nse/suite.gen.go | 4 +- suites/memory/suite.gen.go | 8 +- suites/multiforwarder/suite.gen.go | 18 +-- suites/multiforwarder_vlantag/suite.gen.go | 18 +-- suites/observability/dashboard/suite.gen.go | 2 +- .../jaeger_and_prometheus/suite.gen.go | 4 +- suites/observability/nsm_system/suite.gen.go | 2 +- suites/ovs/suite.gen.go | 10 +- suites/pss/suite.gen.go | 4 +- suites/remotevlan_ovs/suite.gen.go | 12 +- suites/remotevlan_vpp/suite.gen.go | 12 +- suites/spire/cluster1/suite.gen.go | 6 +- suites/spire/cluster2/suite.gen.go | 6 +- suites/spire/cluster3/suite.gen.go | 6 +- suites/spire/single_cluster/suite.gen.go | 6 +- suites/spire/single_cluster_csi/suite.gen.go | 6 +- suites/sriov/suite.gen.go | 8 +- suites/sriov_vlantag/suite.gen.go | 8 +- 41 files changed, 341 insertions(+), 341 deletions(-) diff --git a/extensions/base/suite.gen.go b/extensions/base/suite.gen.go index 5edeac3ee0..03e13ffa52 100644 --- a/extensions/base/suite.gen.go +++ b/extensions/base/suite.gen.go @@ -2,5 +2,5 @@ package base const ( - sha = "e2b43a2e5296ff6fc147505a5369ae2db1e6968b" + sha = "bf02574f64e83d626ef80a139eba25c2cd7ee157" ) \ No newline at end of file diff --git a/suites/afxdp/suite.gen.go b/suites/afxdp/suite.gen.go index 20fea9f817..70f190e40e 100755 --- a/suites/afxdp/suite.gen.go +++ b/suites/afxdp/suite.gen.go @@ -27,7 +27,7 @@ func (s *Suite) SetupSuite() { s.T().Cleanup(func() { r.Run(`kubectl delete mutatingwebhookconfiguration nsm-mutating-webhook` + "\n" + `kubectl delete ns nsm-system`) }) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/afxdp?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/afxdp?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) 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) TestKernel2IP2Kernel_ipv6() { @@ -35,7 +35,7 @@ func (s *Suite) TestKernel2IP2Kernel_ipv6() { s.T().Cleanup(func() { r.Run(`kubectl delete ns ns-kernel2ip2kernel-ipv6`) }) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/features/ipv6/Kernel2IP2Kernel_ipv6?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/features/ipv6/Kernel2IP2Kernel_ipv6?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=alpine -n ns-kernel2ip2kernel-ipv6`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nse-kernel -n ns-kernel2ip2kernel-ipv6`) r.Run(`kubectl exec pods/alpine -n ns-kernel2ip2kernel-ipv6 -- ping -c 4 2001:db8::`) @@ -46,7 +46,7 @@ func (s *Suite) TestMemif2IP2Memif_ipv6() { s.T().Cleanup(func() { r.Run(`kubectl delete ns ns-memif2ip2memif-ipv6`) }) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/features/ipv6/Memif2IP2Memif_ipv6?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/features/ipv6/Memif2IP2Memif_ipv6?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nsc-memif -n ns-memif2ip2memif-ipv6`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nse-memif -n ns-memif2ip2memif-ipv6`) r.Run(`result=$(kubectl exec deployments/nsc-memif -n "ns-memif2ip2memif-ipv6" -- vppctl ping 2001:db8:: repeat 4)` + "\n" + `echo ${result}` + "\n" + `! echo ${result} | grep -E -q "(100% packet loss)|(0 sent)|(no egress interface)"`) @@ -57,7 +57,7 @@ func (s *Suite) TestKernel2Ethernet2Kernel() { s.T().Cleanup(func() { r.Run(`kubectl delete ns ns-kernel2ethernet2kernel`) }) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/use-cases/Kernel2Ethernet2Kernel?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/use-cases/Kernel2Ethernet2Kernel?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=alpine -n ns-kernel2ethernet2kernel`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nse-kernel -n ns-kernel2ethernet2kernel`) r.Run(`kubectl exec pods/alpine -n ns-kernel2ethernet2kernel -- ping -c 4 172.16.1.100`) @@ -68,7 +68,7 @@ func (s *Suite) TestKernel2Ethernet2Memif() { s.T().Cleanup(func() { r.Run(`kubectl delete ns ns-kernel2ethernet2memif`) }) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/use-cases/Kernel2Ethernet2Memif?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/use-cases/Kernel2Ethernet2Memif?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=alpine -n ns-kernel2ethernet2memif`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nse-memif -n ns-kernel2ethernet2memif`) r.Run(`kubectl exec pods/alpine -n ns-kernel2ethernet2memif -- ping -c 4 172.16.1.100`) @@ -79,7 +79,7 @@ func (s *Suite) TestKernel2IP2Kernel() { s.T().Cleanup(func() { r.Run(`kubectl delete ns ns-kernel2ip2kernel`) }) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/use-cases/Kernel2IP2Kernel?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/use-cases/Kernel2IP2Kernel?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=alpine -n ns-kernel2ip2kernel`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nse-kernel -n ns-kernel2ip2kernel`) r.Run(`kubectl exec pods/alpine -n ns-kernel2ip2kernel -- ping -c 4 172.16.1.100`) @@ -90,7 +90,7 @@ func (s *Suite) TestKernel2IP2Memif() { s.T().Cleanup(func() { r.Run(`kubectl delete ns ns-kernel2ip2memif`) }) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/use-cases/Kernel2IP2Memif?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/use-cases/Kernel2IP2Memif?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=alpine -n ns-kernel2ip2memif`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nse-memif -n ns-kernel2ip2memif`) r.Run(`kubectl exec pods/alpine -n ns-kernel2ip2memif -- ping -c 4 172.16.1.100`) @@ -101,7 +101,7 @@ func (s *Suite) TestMemif2Ethernet2Kernel() { s.T().Cleanup(func() { r.Run(`kubectl delete ns ns-memif2ethernet2kernel`) }) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/use-cases/Memif2Ethernet2Kernel?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/use-cases/Memif2Ethernet2Kernel?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nsc-memif -n ns-memif2ethernet2kernel`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nse-kernel -n ns-memif2ethernet2kernel`) r.Run(`result=$(kubectl exec deployments/nsc-memif -n "ns-memif2ethernet2kernel" -- vppctl ping 172.16.1.100 repeat 4)` + "\n" + `echo ${result}` + "\n" + `! echo ${result} | grep -E -q "(100% packet loss)|(0 sent)|(no egress interface)"`) @@ -112,7 +112,7 @@ func (s *Suite) TestMemif2Ethernet2Memif() { s.T().Cleanup(func() { r.Run(`kubectl delete ns ns-memif2ethernet2memif`) }) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/use-cases/Memif2Ethernet2Memif?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/use-cases/Memif2Ethernet2Memif?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nsc-memif -n ns-memif2ethernet2memif`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nse-memif -n ns-memif2ethernet2memif`) r.Run(`result=$(kubectl exec deployments/nsc-memif -n "ns-memif2ethernet2memif" -- vppctl ping 172.16.1.100 repeat 4)` + "\n" + `echo ${result}` + "\n" + `! echo ${result} | grep -E -q "(100% packet loss)|(0 sent)|(no egress interface)"`) @@ -123,7 +123,7 @@ func (s *Suite) TestMemif2IP2Kernel() { s.T().Cleanup(func() { r.Run(`kubectl delete ns ns-memif2ip2kernel`) }) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/use-cases/Memif2IP2Kernel?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/use-cases/Memif2IP2Kernel?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nsc-memif -n ns-memif2ip2kernel`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nse-kernel -n ns-memif2ip2kernel`) r.Run(`result=$(kubectl exec deployments/nsc-memif -n "ns-memif2ip2kernel" -- vppctl ping 172.16.1.100 repeat 4)` + "\n" + `echo ${result}` + "\n" + `! echo ${result} | grep -E -q "(100% packet loss)|(0 sent)|(no egress interface)"`) @@ -134,7 +134,7 @@ func (s *Suite) TestMemif2IP2Memif() { s.T().Cleanup(func() { r.Run(`kubectl delete ns ns-memif2ip2memif`) }) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/use-cases/Memif2IP2Memif?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/use-cases/Memif2IP2Memif?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nsc-memif -n ns-memif2ip2memif`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nse-memif -n ns-memif2ip2memif`) r.Run(`result=$(kubectl exec deployments/nsc-memif -n "ns-memif2ip2memif" -- vppctl ping 172.16.1.100 repeat 4)` + "\n" + `echo ${result}` + "\n" + `! echo ${result} | grep -E -q "(100% packet loss)|(0 sent)|(no egress interface)"`) diff --git a/suites/basic/suite.gen.go b/suites/basic/suite.gen.go index f65b02f397..1966cce420 100755 --- a/suites/basic/suite.gen.go +++ b/suites/basic/suite.gen.go @@ -27,7 +27,7 @@ func (s *Suite) SetupSuite() { s.T().Cleanup(func() { r.Run(`kubectl delete mutatingwebhookconfiguration nsm-mutating-webhook` + "\n" + `kubectl delete ns nsm-system`) }) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/basic?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/basic?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) 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) TestKernel2Ethernet2Kernel() { @@ -35,7 +35,7 @@ func (s *Suite) TestKernel2Ethernet2Kernel() { s.T().Cleanup(func() { r.Run(`kubectl delete ns ns-kernel2ethernet2kernel`) }) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/use-cases/Kernel2Ethernet2Kernel?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/use-cases/Kernel2Ethernet2Kernel?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=alpine -n ns-kernel2ethernet2kernel`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nse-kernel -n ns-kernel2ethernet2kernel`) r.Run(`kubectl exec pods/alpine -n ns-kernel2ethernet2kernel -- ping -c 4 172.16.1.100`) @@ -46,7 +46,7 @@ func (s *Suite) TestKernel2Ethernet2Memif() { s.T().Cleanup(func() { r.Run(`kubectl delete ns ns-kernel2ethernet2memif`) }) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/use-cases/Kernel2Ethernet2Memif?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/use-cases/Kernel2Ethernet2Memif?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=alpine -n ns-kernel2ethernet2memif`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nse-memif -n ns-kernel2ethernet2memif`) r.Run(`kubectl exec pods/alpine -n ns-kernel2ethernet2memif -- ping -c 4 172.16.1.100`) @@ -57,7 +57,7 @@ func (s *Suite) TestKernel2IP2Kernel() { s.T().Cleanup(func() { r.Run(`kubectl delete ns ns-kernel2ip2kernel`) }) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/use-cases/Kernel2IP2Kernel?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/use-cases/Kernel2IP2Kernel?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=alpine -n ns-kernel2ip2kernel`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nse-kernel -n ns-kernel2ip2kernel`) r.Run(`kubectl exec pods/alpine -n ns-kernel2ip2kernel -- ping -c 4 172.16.1.100`) @@ -68,7 +68,7 @@ func (s *Suite) TestKernel2IP2Memif() { s.T().Cleanup(func() { r.Run(`kubectl delete ns ns-kernel2ip2memif`) }) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/use-cases/Kernel2IP2Memif?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/use-cases/Kernel2IP2Memif?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=alpine -n ns-kernel2ip2memif`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nse-memif -n ns-kernel2ip2memif`) r.Run(`kubectl exec pods/alpine -n ns-kernel2ip2memif -- ping -c 4 172.16.1.100`) @@ -79,7 +79,7 @@ func (s *Suite) TestKernel2Kernel() { s.T().Cleanup(func() { r.Run(`kubectl delete ns ns-kernel2kernel`) }) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/use-cases/Kernel2Kernel?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/use-cases/Kernel2Kernel?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=alpine -n ns-kernel2kernel`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nse-kernel -n ns-kernel2kernel`) r.Run(`kubectl exec pods/alpine -n ns-kernel2kernel -- ping -c 4 172.16.1.100`) @@ -90,7 +90,7 @@ func (s *Suite) TestKernel2Memif() { s.T().Cleanup(func() { r.Run(`kubectl delete ns ns-kernel2memif`) }) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/use-cases/Kernel2Memif?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/use-cases/Kernel2Memif?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=alpine -n ns-kernel2memif`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nse-memif -n ns-kernel2memif`) r.Run(`kubectl exec pods/alpine -n ns-kernel2memif -- ping -c 4 172.16.1.100`) @@ -101,7 +101,7 @@ func (s *Suite) TestMemif2Ethernet2Kernel() { s.T().Cleanup(func() { r.Run(`kubectl delete ns ns-memif2ethernet2kernel`) }) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/use-cases/Memif2Ethernet2Kernel?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/use-cases/Memif2Ethernet2Kernel?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nsc-memif -n ns-memif2ethernet2kernel`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nse-kernel -n ns-memif2ethernet2kernel`) r.Run(`result=$(kubectl exec deployments/nsc-memif -n "ns-memif2ethernet2kernel" -- vppctl ping 172.16.1.100 repeat 4)` + "\n" + `echo ${result}` + "\n" + `! echo ${result} | grep -E -q "(100% packet loss)|(0 sent)|(no egress interface)"`) @@ -112,7 +112,7 @@ func (s *Suite) TestMemif2Ethernet2Memif() { s.T().Cleanup(func() { r.Run(`kubectl delete ns ns-memif2ethernet2memif`) }) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/use-cases/Memif2Ethernet2Memif?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/use-cases/Memif2Ethernet2Memif?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nsc-memif -n ns-memif2ethernet2memif`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nse-memif -n ns-memif2ethernet2memif`) r.Run(`result=$(kubectl exec deployments/nsc-memif -n "ns-memif2ethernet2memif" -- vppctl ping 172.16.1.100 repeat 4)` + "\n" + `echo ${result}` + "\n" + `! echo ${result} | grep -E -q "(100% packet loss)|(0 sent)|(no egress interface)"`) @@ -123,7 +123,7 @@ func (s *Suite) TestMemif2IP2Kernel() { s.T().Cleanup(func() { r.Run(`kubectl delete ns ns-memif2ip2kernel`) }) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/use-cases/Memif2IP2Kernel?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/use-cases/Memif2IP2Kernel?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nsc-memif -n ns-memif2ip2kernel`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nse-kernel -n ns-memif2ip2kernel`) r.Run(`result=$(kubectl exec deployments/nsc-memif -n "ns-memif2ip2kernel" -- vppctl ping 172.16.1.100 repeat 4)` + "\n" + `echo ${result}` + "\n" + `! echo ${result} | grep -E -q "(100% packet loss)|(0 sent)|(no egress interface)"`) @@ -134,7 +134,7 @@ func (s *Suite) TestMemif2IP2Memif() { s.T().Cleanup(func() { r.Run(`kubectl delete ns ns-memif2ip2memif`) }) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/use-cases/Memif2IP2Memif?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/use-cases/Memif2IP2Memif?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nsc-memif -n ns-memif2ip2memif`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nse-memif -n ns-memif2ip2memif`) r.Run(`result=$(kubectl exec deployments/nsc-memif -n "ns-memif2ip2memif" -- vppctl ping 172.16.1.100 repeat 4)` + "\n" + `echo ${result}` + "\n" + `! echo ${result} | grep -E -q "(100% packet loss)|(0 sent)|(no egress interface)"`) @@ -145,7 +145,7 @@ func (s *Suite) TestMemif2Kernel() { s.T().Cleanup(func() { r.Run(`kubectl delete ns ns-memif2kernel`) }) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/use-cases/Memif2Kernel?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/use-cases/Memif2Kernel?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nsc-memif -n ns-memif2kernel`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nse-kernel -n ns-memif2kernel`) r.Run(`result=$(kubectl exec deployments/nsc-memif -n "ns-memif2kernel" -- vppctl ping 172.16.1.100 repeat 4)` + "\n" + `echo ${result}` + "\n" + `! echo ${result} | grep -E -q "(100% packet loss)|(0 sent)|(no egress interface)"`) @@ -156,7 +156,7 @@ func (s *Suite) TestMemif2Memif() { s.T().Cleanup(func() { r.Run(`kubectl delete ns ns-memif2memif`) }) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/use-cases/Memif2Memif?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/use-cases/Memif2Memif?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nsc-memif -n ns-memif2memif`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nse-memif -n ns-memif2memif`) r.Run(`result=$(kubectl exec deployments/nsc-memif -n "ns-memif2memif" -- vppctl ping 172.16.1.100 repeat 4)` + "\n" + `echo ${result}` + "\n" + `! echo ${result} | grep -E -q "(100% packet loss)|(0 sent)|(no egress interface)"`) @@ -167,7 +167,7 @@ func (s *Suite) TestVl3_basic() { s.T().Cleanup(func() { r.Run(`kubectl delete ns ns-vl3`) }) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/use-cases/vl3-basic?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/use-cases/vl3-basic?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) r.Run(`kubectl wait --for=condition=ready --timeout=2m pod -l app=alpine -n ns-vl3`) r.Run(`nscs=$(kubectl get pods -l app=alpine -o go-template --template="{{range .items}}{{.metadata.name}} {{end}}" -n ns-vl3)` + "\n" + `[[ ! -z $nscs ]]`) r.Run(`(` + "\n" + `for nsc in $nscs ` + "\n" + `do` + "\n" + ` ipAddr=$(kubectl exec -n ns-vl3 $nsc -- ifconfig nsm-1) || exit` + "\n" + ` ipAddr=$(echo $ipAddr | grep -Eo 'inet addr:[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}'| cut -c 11-)` + "\n" + ` for pinger in $nscs` + "\n" + ` do` + "\n" + ` echo $pinger pings $ipAddr` + "\n" + ` kubectl exec $pinger -n ns-vl3 -- ping -c2 -i 0.5 $ipAddr || exit` + "\n" + ` done` + "\n" + `done` + "\n" + `)`) diff --git a/suites/features/suite.gen.go b/suites/features/suite.gen.go index 73a2fa797b..716a3d6b44 100755 --- a/suites/features/suite.gen.go +++ b/suites/features/suite.gen.go @@ -29,10 +29,10 @@ func (s *Suite) TestAnnotated_namespace() { s.T().Cleanup(func() { r.Run(`kubectl delete ns ns-annotated-namespace`) }) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/features/annotated-namespace?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/features/annotated-namespace?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nse-kernel -n ns-annotated-namespace`) r.Run(`kubectl annotate ns ns-annotated-namespace networkservicemesh.io=kernel://annotated-namespace/nsm-1`) - r.Run(`kubectl apply -f https://raw.githubusercontent.com/networkservicemesh/deployments-k8s/427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2/examples/features/annotated-namespace/client.yaml`) + r.Run(`kubectl apply -f https://raw.githubusercontent.com/networkservicemesh/deployments-k8s/d07cec788258d07b1c7a1a79bffe89bb174ab732/examples/features/annotated-namespace/client.yaml`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=alpine -n ns-annotated-namespace`) r.Run(`kubectl exec deployments/alpine -n ns-annotated-namespace -- ping -c 4 172.16.1.100`) r.Run(`kubectl exec deployments/nse-kernel -n ns-annotated-namespace -- ping -c 4 172.16.1.101`) @@ -42,17 +42,17 @@ func (s *Suite) TestChange_nse_dynamically() { s.T().Cleanup(func() { r.Run(`kubectl delete ns ns-change-nse-dynamically`) }) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/features/change-nse-dynamically?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) - r.Run(`kubectl apply -f https://raw.githubusercontent.com/networkservicemesh/deployments-k8s/427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2/examples/features/change-nse-dynamically/blue-netsvc.yaml`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/features/change-nse-dynamically?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) + r.Run(`kubectl apply -f https://raw.githubusercontent.com/networkservicemesh/deployments-k8s/d07cec788258d07b1c7a1a79bffe89bb174ab732/examples/features/change-nse-dynamically/blue-netsvc.yaml`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=alpine -n ns-change-nse-dynamically`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=blue-nse -n ns-change-nse-dynamically`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=green-nse -n ns-change-nse-dynamically`) r.Run(`kubectl exec pods/alpine -n ns-change-nse-dynamically -- ping -c 4 172.16.2.100`) r.Run(`kubectl exec pods/blue-nse -n ns-change-nse-dynamically -- ping -c 4 172.16.2.101`) - r.Run(`kubectl apply -f https://raw.githubusercontent.com/networkservicemesh/deployments-k8s/427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2/examples/features/change-nse-dynamically/green-netsvc.yaml`) + r.Run(`kubectl apply -f https://raw.githubusercontent.com/networkservicemesh/deployments-k8s/d07cec788258d07b1c7a1a79bffe89bb174ab732/examples/features/change-nse-dynamically/green-netsvc.yaml`) r.Run(`kubectl exec pods/alpine -n ns-change-nse-dynamically -- ping -c 4 172.16.1.100`) r.Run(`kubectl exec pods/green-nse -n ns-change-nse-dynamically -- ping -c 4 172.16.1.101`) - r.Run(`kubectl apply -f https://raw.githubusercontent.com/networkservicemesh/deployments-k8s/427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2/examples/features/change-nse-dynamically/blue-netsvc.yaml`) + r.Run(`kubectl apply -f https://raw.githubusercontent.com/networkservicemesh/deployments-k8s/d07cec788258d07b1c7a1a79bffe89bb174ab732/examples/features/change-nse-dynamically/blue-netsvc.yaml`) r.Run(`kubectl exec pods/alpine -n ns-change-nse-dynamically -- ping -c 4 172.16.2.100`) r.Run(`kubectl exec pods/blue-nse -n ns-change-nse-dynamically -- ping -c 4 172.16.2.101`) } @@ -61,7 +61,7 @@ func (s *Suite) TestDns() { s.T().Cleanup(func() { r.Run(`kubectl delete ns ns-dns`) }) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/features/dns?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/features/dns?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) r.Run(`kubectl wait --for=condition=ready --timeout=5m pod dnsutils -n ns-dns`) r.Run(`kubectl wait --for=condition=ready --timeout=5m pod -l app=nse-kernel -n ns-dns`) r.Run(`kubectl exec pods/dnsutils -c dnsutils -n ns-dns -- nslookup -norec -nodef my.coredns.service`) @@ -73,7 +73,7 @@ func (s *Suite) TestKernel2IP2Kernel_dual_stack() { s.T().Cleanup(func() { r.Run(`kubectl delete ns ns-kernel2ip2kernel-dual-stack`) }) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/features/dual-stack/Kernel2IP2Kernel_dual_stack?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/features/dual-stack/Kernel2IP2Kernel_dual_stack?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=alpine -n ns-kernel2ip2kernel-dual-stack`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nse-kernel -n ns-kernel2ip2kernel-dual-stack`) r.Run(`kubectl exec pods/alpine -n ns-kernel2ip2kernel-dual-stack -- ping -c 4 2001:db8::`) @@ -86,7 +86,7 @@ func (s *Suite) TestKernel2Kernel_dual_stack() { s.T().Cleanup(func() { r.Run(`kubectl delete ns ns-kernel2kernel-dual-stack`) }) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/features/dual-stack/Kernel2Kernel_dual_stack?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/features/dual-stack/Kernel2Kernel_dual_stack?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=alpine -n ns-kernel2kernel-dual-stack`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nse-kernel -n ns-kernel2kernel-dual-stack`) r.Run(`kubectl exec pods/alpine -n ns-kernel2kernel-dual-stack -- ping -c 4 2001:db8::`) @@ -99,7 +99,7 @@ func (s *Suite) TestVl3_dual_stack() { s.T().Cleanup(func() { r.Run(`kubectl delete ns ns-vl3-dual-stack`) }) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/features/dual-stack/vl3-dual-stack?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2` + "\n" + `kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/features/dual-stack/vl3-dual-stack/ipam-ipv6?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/features/dual-stack/vl3-dual-stack?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732` + "\n" + `kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/features/dual-stack/vl3-dual-stack/ipam-ipv6?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) r.Run(`kubectl wait --for=condition=ready --timeout=2m pod -l app=alpine -n ns-vl3-dual-stack`) r.Run(`nscs=$(kubectl get pods -l app=alpine -o go-template --template="{{range .items}}{{.metadata.name}} {{end}}" -n ns-vl3-dual-stack)` + "\n" + `[[ ! -z $nscs ]]`) r.Run(`(` + "\n" + `for nsc in $nscs` + "\n" + `do` + "\n" + ` ipAddr=$(kubectl exec -n ns-vl3-dual-stack $nsc -- ifconfig nsm-1) || exit` + "\n" + ` ipv4Addr=$(echo $ipAddr | grep -Eo 'inet addr:[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}'| cut -c 11-)` + "\n" + ` ipv6Addr=$(echo $ipAddr | grep -Eo 'inet6 addr: 2001:.*' | cut -d ' ' -f 3 | cut -d '/' -f 1)` + "\n" + ` for pinger in $nscs` + "\n" + ` do` + "\n" + ` if [ "$nsc" != "$pinger" ]; then` + "\n" + ` echo $pinger pings $ipv4Addr` + "\n" + ` kubectl exec $pinger -n ns-vl3-dual-stack -- ping -c2 -i 0.5 $ipv4Addr || exit` + "\n" + ` echo $pinger pings $ipv6Addr` + "\n" + ` kubectl exec $pinger -n ns-vl3-dual-stack -- ping6 -c2 -i 0.5 $ipv6Addr || exit` + "\n" + ` fi` + "\n" + ` done` + "\n" + `done` + "\n" + `)`) @@ -112,8 +112,8 @@ func (s *Suite) TestExclude_prefixes() { s.T().Cleanup(func() { r.Run(`kubectl delete configmap excluded-prefixes-config` + "\n" + `kubectl delete ns ns-exclude-prefixes`) }) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/features/exclude-prefixes/configmap?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/features/exclude-prefixes?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/features/exclude-prefixes/configmap?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/features/exclude-prefixes?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=alpine -n ns-exclude-prefixes`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nse-kernel -n ns-exclude-prefixes`) r.Run(`kubectl exec pods/alpine -n ns-exclude-prefixes -- ping -c 4 172.16.1.200`) @@ -124,7 +124,7 @@ func (s *Suite) TestExclude_prefixes_client() { s.T().Cleanup(func() { r.Run(`kubectl delete ns ns-exclude-prefixes-client`) }) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/features/exclude-prefixes-client?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/features/exclude-prefixes-client?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=alpine -n ns-exclude-prefixes-client`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nse-kernel-1 -n ns-exclude-prefixes-client`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nse-kernel-2 -n ns-exclude-prefixes-client`) @@ -138,13 +138,13 @@ func (s *Suite) TestIpam_policies() { s.T().Cleanup(func() { r.Run(`kubectl delete ns ns-ipam-policies`) }) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/features/ipam-policies?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/features/ipam-policies?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=alpine -n ns-ipam-policies`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=first-nse -n ns-ipam-policies`) r.Run(`kubectl exec pods/alpine -n ns-ipam-policies -- ping -c 4 172.16.1.0`) r.Run(`kubectl exec pods/first-nse -n ns-ipam-policies -- ping -c 4 172.16.1.1`) r.Run(`kubectl delete pod -l app=first-nse -n ns-ipam-policies`) - r.Run(`kubectl apply -f https://raw.githubusercontent.com/networkservicemesh/deployments-k8s/427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2/examples/features/ipam-policies/second-nse.yaml -n ns-ipam-policies`) + r.Run(`kubectl apply -f https://raw.githubusercontent.com/networkservicemesh/deployments-k8s/d07cec788258d07b1c7a1a79bffe89bb174ab732/examples/features/ipam-policies/second-nse.yaml -n ns-ipam-policies`) r.Run(`kubectl exec pods/alpine -n ns-ipam-policies -- ping -c 4 172.16.2.0`) r.Run(`kubectl exec pods/second-nse -n ns-ipam-policies -- ping -c 4 172.16.2.1`) r.Run(`routes=$(kubectl exec pods/alpine -n ns-ipam-policies -- ip r show dev nsm-1 | xargs) # Use xargs here just to trim whitespaces in the routes` + "\n" + `if [[ "$routes" != "172.16.2.0 dev nsm-1" ]]; then` + "\n" + ` echo "routes on the client are invalid"` + "\n" + ` exit` + "\n" + `fi`) @@ -154,7 +154,7 @@ func (s *Suite) TestKernel2IP2Kernel_ipv6() { s.T().Cleanup(func() { r.Run(`kubectl delete ns ns-kernel2ip2kernel-ipv6`) }) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/features/ipv6/Kernel2IP2Kernel_ipv6?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/features/ipv6/Kernel2IP2Kernel_ipv6?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=alpine -n ns-kernel2ip2kernel-ipv6`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nse-kernel -n ns-kernel2ip2kernel-ipv6`) r.Run(`kubectl exec pods/alpine -n ns-kernel2ip2kernel-ipv6 -- ping -c 4 2001:db8::`) @@ -165,7 +165,7 @@ func (s *Suite) TestKernel2IP2Memif_ipv6() { s.T().Cleanup(func() { r.Run(`kubectl delete ns ns-kernel2ip2memif-ipv6`) }) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/features/ipv6/Kernel2IP2Memif_ipv6?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/features/ipv6/Kernel2IP2Memif_ipv6?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=alpine -n ns-kernel2ip2memif-ipv6`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nse-memif -n ns-kernel2ip2memif-ipv6`) r.Run(`kubectl exec pods/alpine -n ns-kernel2ip2memif-ipv6 -- ping -c 4 2001:db8::`) @@ -176,7 +176,7 @@ func (s *Suite) TestKernel2Kernel_ipv6() { s.T().Cleanup(func() { r.Run(`kubectl delete ns ns-kernel2kernel-ipv6`) }) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/features/ipv6/Kernel2Kernel_ipv6?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/features/ipv6/Kernel2Kernel_ipv6?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=alpine -n ns-kernel2kernel-ipv6`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nse-kernel -n ns-kernel2kernel-ipv6`) r.Run(`kubectl exec pods/alpine -n ns-kernel2kernel-ipv6 -- ping -c 4 2001:db8::`) @@ -187,7 +187,7 @@ func (s *Suite) TestMemif2IP2Kernel_ipv6() { s.T().Cleanup(func() { r.Run(`kubectl delete ns ns-memif2ip2kernel-ipv6`) }) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/features/ipv6/Memif2IP2Kernel_ipv6?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/features/ipv6/Memif2IP2Kernel_ipv6?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nsc-memif -n ns-memif2ip2kernel-ipv6`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nse-kernel -n ns-memif2ip2kernel-ipv6`) r.Run(`result=$(kubectl exec deployments/nsc-memif -n "ns-memif2ip2kernel-ipv6" -- vppctl ping 2001:db8:: repeat 4)` + "\n" + `echo ${result}` + "\n" + `! echo ${result} | grep -E -q "(100% packet loss)|(0 sent)|(no egress interface)"`) @@ -198,7 +198,7 @@ func (s *Suite) TestMemif2IP2Memif_ipv6() { s.T().Cleanup(func() { r.Run(`kubectl delete ns ns-memif2ip2memif-ipv6`) }) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/features/ipv6/Memif2IP2Memif_ipv6?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/features/ipv6/Memif2IP2Memif_ipv6?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nsc-memif -n ns-memif2ip2memif-ipv6`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nse-memif -n ns-memif2ip2memif-ipv6`) r.Run(`result=$(kubectl exec deployments/nsc-memif -n "ns-memif2ip2memif-ipv6" -- vppctl ping 2001:db8:: repeat 4)` + "\n" + `echo ${result}` + "\n" + `! echo ${result} | grep -E -q "(100% packet loss)|(0 sent)|(no egress interface)"`) @@ -209,7 +209,7 @@ func (s *Suite) TestMemif2Memif_ipv6() { s.T().Cleanup(func() { r.Run(`kubectl delete ns ns-memif2memif-ipv6`) }) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/features/ipv6/Memif2Memif_ipv6?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/features/ipv6/Memif2Memif_ipv6?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nsc-memif -n ns-memif2memif-ipv6`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nse-memif -n ns-memif2memif-ipv6`) r.Run(`result=$(kubectl exec deployments/nsc-memif -n "ns-memif2memif-ipv6" -- vppctl ping ipv6 2001:db8:: repeat 4)` + "\n" + `echo ${result}` + "\n" + `! echo ${result} | grep -E -q "(100% packet loss)|(0 sent)|(no egress interface)"`) @@ -220,7 +220,7 @@ func (s *Suite) TestMultiple_services() { s.T().Cleanup(func() { r.Run(`kubectl delete ns ns-multiple-services`) }) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/features/multiple-services?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/features/multiple-services?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=alpine -n ns-multiple-services`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nse-kernel-1 -n ns-multiple-services`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nse-kernel-2 -n ns-multiple-services`) @@ -234,7 +234,7 @@ func (s *Suite) TestMutually_aware_nses() { s.T().Cleanup(func() { r.Run(`kubectl delete ns ns-mutually-aware-nses`) }) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/features/mutually-aware-nses?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/features/mutually-aware-nses?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nsc-kernel -n ns-mutually-aware-nses`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nse-kernel-1 -n ns-mutually-aware-nses`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nse-kernel-2 -n ns-mutually-aware-nses`) @@ -247,7 +247,7 @@ func (s *Suite) TestNse_composition() { s.T().Cleanup(func() { r.Run(`kubectl delete ns ns-nse-composition`) }) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/features/nse-composition?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/features/nse-composition?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) r.Run(`kubectl wait --for=condition=ready --timeout=5m pod -l app=alpine -n ns-nse-composition`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nse-kernel -n ns-nse-composition`) r.Run(`kubectl exec pods/alpine -n ns-nse-composition -- ping -c 4 172.16.1.100`) @@ -260,7 +260,7 @@ func (s *Suite) TestOpa() { s.T().Cleanup(func() { r.Run(`kubectl delete ns ns-opa`) }) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/features/opa?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/features/opa?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nsc-kernel -n ns-opa`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nse-kernel -n ns-opa`) r.Run(`kubectl logs deployments/nsc-kernel -n ns-opa | grep "PermissionDenied desc = no sufficient privileges"`) @@ -270,7 +270,7 @@ func (s *Suite) TestPolicy_based_routing() { s.T().Cleanup(func() { r.Run(`kubectl delete ns ns-policy-based-routing`) }) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/features/policy-based-routing?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/features/policy-based-routing?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nettools -n ns-policy-based-routing`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nse-kernel -n ns-policy-based-routing`) r.Run(`kubectl exec pods/nettools -n ns-policy-based-routing -- ping -c 4 172.16.1.100`) @@ -286,7 +286,7 @@ func (s *Suite) TestScale_from_zero() { s.T().Cleanup(func() { r.Run(`kubectl delete ns ns-scale-from-zero`) }) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/features/scale-from-zero?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/features/scale-from-zero?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) r.Run(`kubectl wait -n ns-scale-from-zero --for=condition=ready --timeout=1m pod -l app=nse-supplier-k8s`) r.Run(`kubectl wait -n ns-scale-from-zero --for=condition=ready --timeout=1m pod -l app=alpine`) r.Run(`kubectl wait -n ns-scale-from-zero --for=condition=ready --timeout=1m pod -l app=nse-icmp-responder`) @@ -304,7 +304,7 @@ func (s *Suite) TestScaled_registry() { r.Run(`kubectl delete ns ns-scaled-registry`) r.Run(`kubectl scale --replicas=1 deployments/registry-k8s -n nsm-system`) }) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/features/scaled-registry?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/features/scaled-registry?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nse-kernel -n ns-scaled-registry`) r.Run(`NSE=$(kubectl get pod -n ns-scaled-registry --template '{{range .items}}{{.metadata.name}}{{"\n"}}{{end}}' -l app=nse-kernel)`) r.Run(`kubectl get nses -A | grep $NSE`) @@ -321,7 +321,7 @@ func (s *Suite) TestSelect_forwarder() { s.T().Cleanup(func() { r.Run(`kubectl delete ns ns-select-forwarder`) }) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/features/select-forwarder?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/features/select-forwarder?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=alpine -n ns-select-forwarder`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nse-kernel -n ns-select-forwarder`) r.Run(`kubectl exec pods/alpine -n ns-select-forwarder -- ping -c 4 169.254.0.0`) @@ -333,7 +333,7 @@ func (s *Suite) TestVl3_dns() { s.T().Cleanup(func() { r.Run(`kubectl delete ns ns-vl3-dns`) }) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/features/vl3-dns?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/features/vl3-dns?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) r.Run(`kubectl wait --for=condition=ready --timeout=2m pod -l app=alpine -n ns-vl3-dns`) r.Run(`nscs=$(kubectl get pods -l app=alpine -o go-template --template="{{range .items}}{{.metadata.name}} {{end}}" -n ns-vl3-dns)` + "\n" + `[[ ! -z $nscs ]]`) r.Run(`(` + "\n" + `for nsc in $nscs` + "\n" + `do` + "\n" + ` for pinger in $nscs` + "\n" + ` do` + "\n" + ` kubectl exec $pinger -n ns-vl3-dns -- ping -c2 -i 0.5 $nsc.vl3-dns -4 || exit` + "\n" + ` done` + "\n" + `done` + "\n" + `)`) @@ -347,7 +347,7 @@ func (s *Suite) TestVl3_ipv6() { s.T().Cleanup(func() { r.Run(`kubectl delete ns ns-vl3-ipv6`) }) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/features/vl3-ipv6?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/features/vl3-ipv6?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) r.Run(`kubectl wait --for=condition=ready --timeout=2m pod -l app=alpine -n ns-vl3-ipv6`) r.Run(`nscs=$(kubectl get pods -n ns-vl3-ipv6 -l app=alpine -o go-template --template="{{range .items}}{{.metadata.name}} {{end}}")` + "\n" + `[[ ! -z $nscs ]]`) r.Run(`(` + "\n" + `for nsc in $nscs` + "\n" + `do` + "\n" + ` ipAddr=$(kubectl exec -n ns-vl3-ipv6 $nsc -- ifconfig nsm-1) || exit` + "\n" + ` ipAddr=$(echo $ipAddr | grep -Eo 'inet6 addr: 2001:.*' | cut -d ' ' -f 3 | cut -d '/' -f 1)` + "\n" + ` for pinger in $nscs` + "\n" + ` do` + "\n" + ` if [ "$nsc" != "$pinger" ]; then` + "\n" + ` echo $pinger pings $ipAddr` + "\n" + ` kubectl exec $pinger -n ns-vl3-ipv6 -- ping6 -c2 -i 0.5 $ipAddr || exit` + "\n" + ` fi` + "\n" + ` done` + "\n" + `done` + "\n" + `)`) @@ -358,7 +358,7 @@ func (s *Suite) TestVl3_lb() { s.T().Cleanup(func() { r.Run(`kubectl delete ns ns-vl3-lb`) }) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/features/vl3-lb?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/features/vl3-lb?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) r.Run(`kubectl wait --for=condition=ready --timeout=2m pod -l type=vl3-client -n ns-vl3-lb`) r.Run(`kubectl exec deployments/finance-client -n ns-vl3-lb -- curl -s finance.vl3-lb:8080 | grep "Hello! I'm finance-server"`) } @@ -367,7 +367,7 @@ func (s *Suite) TestVl3_scale_from_zero() { s.T().Cleanup(func() { r.Run(`kubectl delete ns ns-vl3-scale-from-zero`) }) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/features/vl3-scale-from-zero?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/features/vl3-scale-from-zero?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) r.Run(`kubectl wait -n ns-vl3-scale-from-zero --for=condition=ready --timeout=1m pod -l app=nse-supplier-k8s`) r.Run(`kubectl wait -n ns-vl3-scale-from-zero --for=condition=ready --timeout=1m pod -l app=alpine`) r.Run(`kubectl wait -n ns-vl3-scale-from-zero --for=condition=ready --timeout=1m pod -l app=nse-vl3-vpp`) @@ -380,7 +380,7 @@ func (s *Suite) TestWebhook() { s.T().Cleanup(func() { r.Run(`kubectl delete ns ns-webhook`) }) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/features/webhook?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/features/webhook?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) r.Run(`kubectl wait --for=condition=ready --timeout=5m pod -l app=nse-kernel -n ns-webhook`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nettools -n ns-webhook`) r.Run(`kubectl exec pods/nettools -n ns-webhook -- curl 172.16.1.100:80 | grep -o "Welcome to nginx!"`) diff --git a/suites/features_ovs/suite.gen.go b/suites/features_ovs/suite.gen.go index e65b14b135..f3f35a0432 100755 --- a/suites/features_ovs/suite.gen.go +++ b/suites/features_ovs/suite.gen.go @@ -29,10 +29,10 @@ func (s *Suite) TestAnnotated_namespace() { s.T().Cleanup(func() { r.Run(`kubectl delete ns ns-annotated-namespace`) }) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/features/annotated-namespace?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/features/annotated-namespace?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nse-kernel -n ns-annotated-namespace`) r.Run(`kubectl annotate ns ns-annotated-namespace networkservicemesh.io=kernel://annotated-namespace/nsm-1`) - r.Run(`kubectl apply -f https://raw.githubusercontent.com/networkservicemesh/deployments-k8s/427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2/examples/features/annotated-namespace/client.yaml`) + r.Run(`kubectl apply -f https://raw.githubusercontent.com/networkservicemesh/deployments-k8s/d07cec788258d07b1c7a1a79bffe89bb174ab732/examples/features/annotated-namespace/client.yaml`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=alpine -n ns-annotated-namespace`) r.Run(`kubectl exec deployments/alpine -n ns-annotated-namespace -- ping -c 4 172.16.1.100`) r.Run(`kubectl exec deployments/nse-kernel -n ns-annotated-namespace -- ping -c 4 172.16.1.101`) @@ -42,17 +42,17 @@ func (s *Suite) TestChange_nse_dynamically() { s.T().Cleanup(func() { r.Run(`kubectl delete ns ns-change-nse-dynamically`) }) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/features/change-nse-dynamically?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) - r.Run(`kubectl apply -f https://raw.githubusercontent.com/networkservicemesh/deployments-k8s/427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2/examples/features/change-nse-dynamically/blue-netsvc.yaml`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/features/change-nse-dynamically?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) + r.Run(`kubectl apply -f https://raw.githubusercontent.com/networkservicemesh/deployments-k8s/d07cec788258d07b1c7a1a79bffe89bb174ab732/examples/features/change-nse-dynamically/blue-netsvc.yaml`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=alpine -n ns-change-nse-dynamically`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=blue-nse -n ns-change-nse-dynamically`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=green-nse -n ns-change-nse-dynamically`) r.Run(`kubectl exec pods/alpine -n ns-change-nse-dynamically -- ping -c 4 172.16.2.100`) r.Run(`kubectl exec pods/blue-nse -n ns-change-nse-dynamically -- ping -c 4 172.16.2.101`) - r.Run(`kubectl apply -f https://raw.githubusercontent.com/networkservicemesh/deployments-k8s/427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2/examples/features/change-nse-dynamically/green-netsvc.yaml`) + r.Run(`kubectl apply -f https://raw.githubusercontent.com/networkservicemesh/deployments-k8s/d07cec788258d07b1c7a1a79bffe89bb174ab732/examples/features/change-nse-dynamically/green-netsvc.yaml`) r.Run(`kubectl exec pods/alpine -n ns-change-nse-dynamically -- ping -c 4 172.16.1.100`) r.Run(`kubectl exec pods/green-nse -n ns-change-nse-dynamically -- ping -c 4 172.16.1.101`) - r.Run(`kubectl apply -f https://raw.githubusercontent.com/networkservicemesh/deployments-k8s/427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2/examples/features/change-nse-dynamically/blue-netsvc.yaml`) + r.Run(`kubectl apply -f https://raw.githubusercontent.com/networkservicemesh/deployments-k8s/d07cec788258d07b1c7a1a79bffe89bb174ab732/examples/features/change-nse-dynamically/blue-netsvc.yaml`) r.Run(`kubectl exec pods/alpine -n ns-change-nse-dynamically -- ping -c 4 172.16.2.100`) r.Run(`kubectl exec pods/blue-nse -n ns-change-nse-dynamically -- ping -c 4 172.16.2.101`) } @@ -61,7 +61,7 @@ func (s *Suite) TestDns() { s.T().Cleanup(func() { r.Run(`kubectl delete ns ns-dns`) }) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/features/dns?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/features/dns?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) r.Run(`kubectl wait --for=condition=ready --timeout=5m pod dnsutils -n ns-dns`) r.Run(`kubectl wait --for=condition=ready --timeout=5m pod -l app=nse-kernel -n ns-dns`) r.Run(`kubectl exec pods/dnsutils -c dnsutils -n ns-dns -- nslookup -norec -nodef my.coredns.service`) @@ -73,7 +73,7 @@ func (s *Suite) TestKernel2IP2Kernel_dual_stack() { s.T().Cleanup(func() { r.Run(`kubectl delete ns ns-kernel2ip2kernel-dual-stack`) }) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/features/dual-stack/Kernel2IP2Kernel_dual_stack?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/features/dual-stack/Kernel2IP2Kernel_dual_stack?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=alpine -n ns-kernel2ip2kernel-dual-stack`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nse-kernel -n ns-kernel2ip2kernel-dual-stack`) r.Run(`kubectl exec pods/alpine -n ns-kernel2ip2kernel-dual-stack -- ping -c 4 2001:db8::`) @@ -86,7 +86,7 @@ func (s *Suite) TestKernel2Kernel_dual_stack() { s.T().Cleanup(func() { r.Run(`kubectl delete ns ns-kernel2kernel-dual-stack`) }) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/features/dual-stack/Kernel2Kernel_dual_stack?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/features/dual-stack/Kernel2Kernel_dual_stack?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=alpine -n ns-kernel2kernel-dual-stack`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nse-kernel -n ns-kernel2kernel-dual-stack`) r.Run(`kubectl exec pods/alpine -n ns-kernel2kernel-dual-stack -- ping -c 4 2001:db8::`) @@ -99,8 +99,8 @@ func (s *Suite) TestExclude_prefixes() { s.T().Cleanup(func() { r.Run(`kubectl delete configmap excluded-prefixes-config` + "\n" + `kubectl delete ns ns-exclude-prefixes`) }) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/features/exclude-prefixes/configmap?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/features/exclude-prefixes?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/features/exclude-prefixes/configmap?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/features/exclude-prefixes?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=alpine -n ns-exclude-prefixes`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nse-kernel -n ns-exclude-prefixes`) r.Run(`kubectl exec pods/alpine -n ns-exclude-prefixes -- ping -c 4 172.16.1.200`) @@ -111,7 +111,7 @@ func (s *Suite) TestExclude_prefixes_client() { s.T().Cleanup(func() { r.Run(`kubectl delete ns ns-exclude-prefixes-client`) }) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/features/exclude-prefixes-client?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/features/exclude-prefixes-client?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=alpine -n ns-exclude-prefixes-client`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nse-kernel-1 -n ns-exclude-prefixes-client`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nse-kernel-2 -n ns-exclude-prefixes-client`) @@ -125,7 +125,7 @@ func (s *Suite) TestKernel2IP2Kernel_ipv6() { s.T().Cleanup(func() { r.Run(`kubectl delete ns ns-kernel2ip2kernel-ipv6`) }) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/features/ipv6/Kernel2IP2Kernel_ipv6?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/features/ipv6/Kernel2IP2Kernel_ipv6?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=alpine -n ns-kernel2ip2kernel-ipv6`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nse-kernel -n ns-kernel2ip2kernel-ipv6`) r.Run(`kubectl exec pods/alpine -n ns-kernel2ip2kernel-ipv6 -- ping -c 4 2001:db8::`) @@ -136,7 +136,7 @@ func (s *Suite) TestKernel2Kernel_ipv6() { s.T().Cleanup(func() { r.Run(`kubectl delete ns ns-kernel2kernel-ipv6`) }) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/features/ipv6/Kernel2Kernel_ipv6?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/features/ipv6/Kernel2Kernel_ipv6?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=alpine -n ns-kernel2kernel-ipv6`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nse-kernel -n ns-kernel2kernel-ipv6`) r.Run(`kubectl exec pods/alpine -n ns-kernel2kernel-ipv6 -- ping -c 4 2001:db8::`) @@ -147,7 +147,7 @@ func (s *Suite) TestMultiple_services() { s.T().Cleanup(func() { r.Run(`kubectl delete ns ns-multiple-services`) }) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/features/multiple-services?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/features/multiple-services?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=alpine -n ns-multiple-services`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nse-kernel-1 -n ns-multiple-services`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nse-kernel-2 -n ns-multiple-services`) @@ -161,7 +161,7 @@ func (s *Suite) TestMutually_aware_nses() { s.T().Cleanup(func() { r.Run(`kubectl delete ns ns-mutually-aware-nses`) }) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/features/mutually-aware-nses?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/features/mutually-aware-nses?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nsc-kernel -n ns-mutually-aware-nses`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nse-kernel-1 -n ns-mutually-aware-nses`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nse-kernel-2 -n ns-mutually-aware-nses`) @@ -174,7 +174,7 @@ func (s *Suite) TestOpa() { s.T().Cleanup(func() { r.Run(`kubectl delete ns ns-opa`) }) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/features/opa?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/features/opa?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nsc-kernel -n ns-opa`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nse-kernel -n ns-opa`) r.Run(`kubectl logs deployments/nsc-kernel -n ns-opa | grep "PermissionDenied desc = no sufficient privileges"`) @@ -184,7 +184,7 @@ func (s *Suite) TestPolicy_based_routing() { s.T().Cleanup(func() { r.Run(`kubectl delete ns ns-policy-based-routing`) }) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/features/policy-based-routing?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/features/policy-based-routing?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nettools -n ns-policy-based-routing`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nse-kernel -n ns-policy-based-routing`) r.Run(`kubectl exec pods/nettools -n ns-policy-based-routing -- ping -c 4 172.16.1.100`) @@ -200,7 +200,7 @@ func (s *Suite) TestScale_from_zero() { s.T().Cleanup(func() { r.Run(`kubectl delete ns ns-scale-from-zero`) }) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/features/scale-from-zero?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/features/scale-from-zero?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) r.Run(`kubectl wait -n ns-scale-from-zero --for=condition=ready --timeout=1m pod -l app=nse-supplier-k8s`) r.Run(`kubectl wait -n ns-scale-from-zero --for=condition=ready --timeout=1m pod -l app=alpine`) r.Run(`kubectl wait -n ns-scale-from-zero --for=condition=ready --timeout=1m pod -l app=nse-icmp-responder`) @@ -218,7 +218,7 @@ func (s *Suite) TestScaled_registry() { r.Run(`kubectl delete ns ns-scaled-registry`) r.Run(`kubectl scale --replicas=1 deployments/registry-k8s -n nsm-system`) }) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/features/scaled-registry?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/features/scaled-registry?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nse-kernel -n ns-scaled-registry`) r.Run(`NSE=$(kubectl get pod -n ns-scaled-registry --template '{{range .items}}{{.metadata.name}}{{"\n"}}{{end}}' -l app=nse-kernel)`) r.Run(`kubectl get nses -A | grep $NSE`) @@ -235,7 +235,7 @@ func (s *Suite) TestSelect_forwarder() { s.T().Cleanup(func() { r.Run(`kubectl delete ns ns-select-forwarder`) }) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/features/select-forwarder?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/features/select-forwarder?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=alpine -n ns-select-forwarder`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nse-kernel -n ns-select-forwarder`) r.Run(`kubectl exec pods/alpine -n ns-select-forwarder -- ping -c 4 169.254.0.0`) @@ -247,7 +247,7 @@ func (s *Suite) TestWebhook() { s.T().Cleanup(func() { r.Run(`kubectl delete ns ns-webhook`) }) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/features/webhook?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/features/webhook?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) r.Run(`kubectl wait --for=condition=ready --timeout=5m pod -l app=nse-kernel -n ns-webhook`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nettools -n ns-webhook`) r.Run(`kubectl exec pods/nettools -n ns-webhook -- curl 172.16.1.100:80 | grep -o "Welcome to nginx!"`) @@ -258,7 +258,7 @@ func (s *Suite) TestWebhook_smartvf() { r.Run(`kubectl delete ns ns-webhook-smartvf`) }) 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`) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/features/webhook-smartvf?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/features/webhook-smartvf?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) r.Run(`kubectl wait --for=condition=ready --timeout=5m pod -l app=nse-kernel -n ns-webhook-smartvf`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod postgres-cl -n ns-webhook-smartvf`) r.Run(`kubectl exec pods/postgres-cl -n ns-webhook-smartvf -c postgres-cl -- sh -c 'PGPASSWORD=admin psql -h 172.16.1.100 -p 5432 -U admin test'`) diff --git a/suites/heal/suite.gen.go b/suites/heal/suite.gen.go index cf1db57771..737963f940 100755 --- a/suites/heal/suite.gen.go +++ b/suites/heal/suite.gen.go @@ -29,7 +29,7 @@ func (s *Suite) TestDataplane_interrupt() { s.T().Cleanup(func() { r.Run(`kubectl delete ns ns-dataplane-interrupt`) }) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/heal/dataplane-interrupt?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/heal/dataplane-interrupt?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=alpine -n ns-dataplane-interrupt`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nse-kernel -n ns-dataplane-interrupt`) r.Run(`kubectl exec pods/alpine -n ns-dataplane-interrupt -- ping -c 4 172.16.1.100 -I 172.16.1.101`) @@ -45,7 +45,7 @@ func (s *Suite) TestLocal_forwarder_death() { s.T().Cleanup(func() { r.Run(`kubectl delete ns ns-local-forwarder-death`) }) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/heal/local-forwarder-death?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/heal/local-forwarder-death?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=alpine -n ns-local-forwarder-death`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nse-kernel -n ns-local-forwarder-death`) r.Run(`kubectl exec pods/alpine -n ns-local-forwarder-death -- ping -c 4 172.16.1.100`) @@ -62,7 +62,7 @@ func (s *Suite) TestLocal_forwarder_remote_forwarder() { s.T().Cleanup(func() { r.Run(`kubectl delete ns ns-local-forwarder-remote-forwarder`) }) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/heal/local-forwarder-remote-forwarder?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/heal/local-forwarder-remote-forwarder?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=alpine -n ns-local-forwarder-remote-forwarder`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nse-kernel -n ns-local-forwarder-remote-forwarder`) r.Run(`kubectl exec pods/alpine -n ns-local-forwarder-remote-forwarder -- ping -c 4 172.16.1.100`) @@ -82,14 +82,14 @@ func (s *Suite) TestLocal_nse_death() { s.T().Cleanup(func() { r.Run(`kubectl delete ns ns-local-nse-death`) }) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/heal/local-nse-death/nse-before-death?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/heal/local-nse-death/nse-before-death?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=alpine -n ns-local-nse-death`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nse-kernel -n ns-local-nse-death`) r.Run(`kubectl exec pods/alpine -n ns-local-nse-death -- ping -c 4 172.16.1.100 -I 172.16.1.101`) r.Run(`kubectl exec deployments/nse-kernel -n ns-local-nse-death -- ping -c 4 172.16.1.101 -I 172.16.1.100`) r.Run(`kubectl scale deployment nse-kernel -n ns-local-nse-death --replicas=0`) r.Run(`kubectl exec pods/alpine -n ns-local-nse-death -- ping -c 4 172.16.1.100 -I 172.16.1.101 2>&1 | egrep "100% packet loss|Network unreachable|can't set multicast source"`) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/heal/local-nse-death/nse-after-death?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/heal/local-nse-death/nse-after-death?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) r.Run(`kubectl scale deployment nse-kernel -n ns-local-nse-death --replicas=1`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nse-kernel -l version=new -n ns-local-nse-death`) r.Run(`NEW_NSE=$(kubectl get pods -l app=nse-kernel -l version=new -n ns-local-nse-death --template '{{range .items}}{{.metadata.name}}{{"\n"}}{{end}}')`) @@ -101,13 +101,13 @@ func (s *Suite) TestLocal_nsm_system_restart() { s.T().Cleanup(func() { r.Run(`kubectl delete ns ns-local-nsm-system-restart`) }) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/heal/local-nsm-system-restart?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/heal/local-nsm-system-restart?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=alpine -n ns-local-nsm-system-restart`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nse-kernel -n ns-local-nsm-system-restart`) r.Run(`kubectl exec pods/alpine -n ns-local-nsm-system-restart -- ping -c 4 172.16.1.100`) r.Run(`kubectl exec deployments/nse-kernel -n ns-local-nsm-system-restart -- ping -c 4 172.16.1.101`) r.Run(`kubectl delete mutatingwebhookconfiguration nsm-mutating-webhook` + "\n" + `kubectl delete ns nsm-system`) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/basic?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/basic?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) r.Run(`kubectl exec pods/alpine -n ns-local-nsm-system-restart -- ping -c 4 172.16.1.100`) r.Run(`kubectl exec deployments/nse-kernel -n ns-local-nsm-system-restart -- ping -c 4 172.16.1.101`) } @@ -116,7 +116,7 @@ func (s *Suite) TestLocal_nsmgr_local_forwarder_memif() { s.T().Cleanup(func() { r.Run(`kubectl delete ns ns-local-nsmgr-local-forwarder-memif`) }) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/heal/local-nsmgr-local-forwarder-memif?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/heal/local-nsmgr-local-forwarder-memif?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nsc-memif -n ns-local-nsmgr-local-forwarder-memif`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nse-memif -n ns-local-nsmgr-local-forwarder-memif`) r.Run(`result=$(kubectl exec deployments/nsc-memif -n "ns-local-nsmgr-local-forwarder-memif" -- vppctl ping 172.16.1.100 repeat 4)` + "\n" + `echo ${result}` + "\n" + `! echo ${result} | grep -E -q "(100% packet loss)|(0 sent)|(no egress interface)"`) @@ -136,7 +136,7 @@ func (s *Suite) TestLocal_nsmgr_local_nse_memif() { s.T().Cleanup(func() { r.Run(`kubectl delete ns ns-local-nsmgr-local-nse-memif`) }) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/heal/local-nsmgr-local-nse-memif/nse-before-death?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/heal/local-nsmgr-local-nse-memif/nse-before-death?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nsc-memif -n ns-local-nsmgr-local-nse-memif`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nse-memif -n ns-local-nsmgr-local-nse-memif`) r.Run(`result=$(kubectl exec deployments/nsc-memif -n ns-local-nsmgr-local-nse-memif -- vppctl ping 172.16.1.100 repeat 4)` + "\n" + `echo ${result}` + "\n" + `! echo ${result} | grep -E -q "(100% packet loss)|(0 sent)|(no egress interface)"`) @@ -145,7 +145,7 @@ func (s *Suite) TestLocal_nsmgr_local_nse_memif() { r.Run(`NSC_NODE=$(kubectl get pods -l app=nsc-memif -n ns-local-nsmgr-local-nse-memif --template '{{range .items}}{{.spec.nodeName}}{{"\n"}}{{end}}')`) r.Run(`NSMGR=$(kubectl get pods -l app=nsmgr --field-selector spec.nodeName==${NSC_NODE} -n nsm-system --template '{{range .items}}{{.metadata.name}}{{"\n"}}{{end}}')`) r.Run(`kubectl delete pod ${NSMGR} -n nsm-system`) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/heal/local-nsmgr-local-nse-memif/nse-after-death?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/heal/local-nsmgr-local-nse-memif/nse-after-death?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nsmgr --field-selector spec.nodeName==${NSC_NODE} -n nsm-system`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nse-memif -l version=new -n ns-local-nsmgr-local-nse-memif`) r.Run(`NEW_NSE=$(kubectl get pods -l app=nse-memif -l version=new -n ns-local-nsmgr-local-nse-memif --template '{{range .items}}{{.metadata.name}}{{"\n"}}{{end}}')`) @@ -157,7 +157,7 @@ func (s *Suite) TestLocal_nsmgr_remote_nsmgr() { s.T().Cleanup(func() { r.Run(`kubectl delete ns ns-local-nsmgr-remote-nsmgr`) }) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/heal/local-nsmgr-remote-nsmgr?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/heal/local-nsmgr-remote-nsmgr?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=alpine -n ns-local-nsmgr-remote-nsmgr`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nse-kernel -n ns-local-nsmgr-remote-nsmgr`) r.Run(`kubectl exec pods/alpine -n ns-local-nsmgr-remote-nsmgr -- ping -c 4 172.16.1.100`) @@ -177,7 +177,7 @@ func (s *Suite) TestLocal_nsmgr_restart() { s.T().Cleanup(func() { r.Run(`kubectl delete ns ns-local-nsmgr-restart`) }) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/heal/local-nsmgr-restart?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/heal/local-nsmgr-restart?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=alpine -n ns-local-nsmgr-restart`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nse-kernel -n ns-local-nsmgr-restart`) r.Run(`kubectl exec pods/alpine -n ns-local-nsmgr-restart -- ping -c 4 172.16.1.100`) @@ -194,14 +194,14 @@ func (s *Suite) TestRegistry_local_endpoint() { s.T().Cleanup(func() { r.Run(`kubectl delete ns ns-registry-local-endpoint`) }) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/heal/registry-local-endpoint/nse-first?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/heal/registry-local-endpoint/nse-first?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=alpine -n ns-registry-local-endpoint`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nse-kernel -n ns-registry-local-endpoint`) r.Run(`kubectl exec pods/alpine -n ns-registry-local-endpoint -- ping -c 4 172.16.1.100`) r.Run(`kubectl exec deployments/nse-kernel -n ns-registry-local-endpoint -- ping -c 4 172.16.1.101`) r.Run(`REGISTRY=$(kubectl get pods -l app=registry -n nsm-system --template '{{range .items}}{{.metadata.name}}{{"\n"}}{{end}}')`) r.Run(`kubectl delete pod ${REGISTRY} -n nsm-system`) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/heal/registry-local-endpoint/nse-second?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/heal/registry-local-endpoint/nse-second?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=registry -n nsm-system`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nse-kernel -l version=new -n ns-registry-local-endpoint`) r.Run(`NEW_NSE=$(kubectl get pods -l app=nse-kernel -l version=new -n ns-registry-local-endpoint --template '{{range .items}}{{.metadata.name}}{{"\n"}}{{end}}')`) @@ -213,7 +213,7 @@ func (s *Suite) TestRegistry_remote_forwarder() { s.T().Cleanup(func() { r.Run(`kubectl delete ns ns-registry-remote-forwarder`) }) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/heal/registry-remote-forwarder?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/heal/registry-remote-forwarder?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=alpine -n ns-registry-remote-forwarder`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nse-kernel -n ns-registry-remote-forwarder`) r.Run(`kubectl exec pods/alpine -n ns-registry-remote-forwarder -- ping -c 4 172.16.1.100`) @@ -233,7 +233,7 @@ func (s *Suite) TestRegistry_remote_nsmgr() { s.T().Cleanup(func() { r.Run(`kubectl delete ns ns-registry-remote-nsmgr`) }) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/heal/registry-remote-nsmgr?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/heal/registry-remote-nsmgr?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=alpine -n ns-registry-remote-nsmgr`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nse-kernel -n ns-registry-remote-nsmgr`) r.Run(`kubectl exec pods/alpine -n ns-registry-remote-nsmgr -- ping -c 4 172.16.1.100`) @@ -253,7 +253,7 @@ func (s *Suite) TestRegistry_restart() { s.T().Cleanup(func() { r.Run(`kubectl delete ns ns-registry-restart`) }) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/heal/registry-restart/registry-before-death?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/heal/registry-restart/registry-before-death?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=alpine -n ns-registry-restart`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nse-kernel -n ns-registry-restart`) r.Run(`NSC=$(kubectl get pods -l app=alpine -n ns-registry-restart --template '{{range .items}}{{.metadata.name}}{{"\n"}}{{end}}')`) @@ -263,7 +263,7 @@ func (s *Suite) TestRegistry_restart() { r.Run(`REGISTRY=$(kubectl get pods -l app=registry -n nsm-system --template '{{range .items}}{{.metadata.name}}{{"\n"}}{{end}}')`) r.Run(`kubectl delete pod ${REGISTRY} -n nsm-system`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=registry -n nsm-system`) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/heal/registry-restart/registry-after-death?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/heal/registry-restart/registry-after-death?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=alpine-new -n ns-registry-restart`) r.Run(`kubectl exec pods/alpine-new -n ns-registry-restart -- ping -c 4 172.16.1.102`) r.Run(`kubectl exec deployments/nse-kernel -n ns-registry-restart -- ping -c 4 172.16.1.103`) @@ -273,7 +273,7 @@ func (s *Suite) TestRemote_forwarder_death() { s.T().Cleanup(func() { r.Run(`kubectl delete ns ns-remote-forwarder-death`) }) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/heal/remote-forwarder-death?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/heal/remote-forwarder-death?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=alpine -n ns-remote-forwarder-death`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nse-kernel -n ns-remote-forwarder-death`) r.Run(`kubectl exec pods/alpine -n ns-remote-forwarder-death -- ping -c 4 172.16.1.100`) @@ -290,7 +290,7 @@ func (s *Suite) TestRemote_forwarder_death_ip() { s.T().Cleanup(func() { r.Run(`kubectl delete ns ns-remote-forwarder-death-ip`) }) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/heal/remote-forwarder-death-ip?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/heal/remote-forwarder-death-ip?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=alpine -n ns-remote-forwarder-death-ip`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nse-kernel -n ns-remote-forwarder-death-ip`) r.Run(`kubectl exec pods/alpine -n ns-remote-forwarder-death-ip -- ping -c 4 172.16.1.100`) @@ -307,14 +307,14 @@ func (s *Suite) TestRemote_nse_death() { s.T().Cleanup(func() { r.Run(`kubectl delete ns ns-remote-nse-death`) }) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/heal/remote-nse-death/nse-before-death?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/heal/remote-nse-death/nse-before-death?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=alpine -n ns-remote-nse-death`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nse-kernel -n ns-remote-nse-death`) r.Run(`NSC=$(kubectl get pods -l app=alpine -n ns-remote-nse-death --template '{{range .items}}{{.metadata.name}}{{"\n"}}{{end}}')`) r.Run(`NSE=$(kubectl get pods -l app=nse-kernel -n ns-remote-nse-death --template '{{range .items}}{{.metadata.name}}{{"\n"}}{{end}}')`) r.Run(`kubectl exec pods/alpine -n ns-remote-nse-death -- ping -c 4 172.16.1.100`) r.Run(`kubectl exec deployments/nse-kernel -n ns-remote-nse-death -- ping -c 4 172.16.1.101`) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/heal/remote-nse-death/nse-after-death?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/heal/remote-nse-death/nse-after-death?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nse-kernel -l version=new -n ns-remote-nse-death`) r.Run(`NEW_NSE=$(kubectl get pods -l app=nse-kernel -l version=new -n ns-remote-nse-death --template '{{range .items}}{{.metadata.name}}{{"\n"}}{{end}}')`) r.Run(`kubectl exec pods/alpine -n ns-remote-nse-death -- ping -c 4 172.16.1.102`) @@ -325,12 +325,12 @@ func (s *Suite) TestRemote_nse_death_ip() { s.T().Cleanup(func() { r.Run(`kubectl delete ns ns-remote-nse-death-ip`) }) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/heal/remote-nse-death-ip/nse-before-death?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/heal/remote-nse-death-ip/nse-before-death?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=alpine -n ns-remote-nse-death-ip`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nse-kernel -n ns-remote-nse-death-ip`) r.Run(`kubectl exec pods/alpine -n ns-remote-nse-death-ip -- ping -c 4 172.16.1.100`) r.Run(`kubectl exec deployments/nse-kernel -n ns-remote-nse-death-ip -- ping -c 4 172.16.1.101`) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/heal/remote-nse-death-ip/nse-after-death?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/heal/remote-nse-death-ip/nse-after-death?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nse-kernel -l version=new -n ns-remote-nse-death-ip`) r.Run(`NEW_NSE=$(kubectl get pods -l app=nse-kernel -l version=new -n ns-remote-nse-death-ip --template '{{range .items}}{{.metadata.name}}{{"\n"}}{{end}}')`) r.Run(`kubectl exec pods/alpine -n ns-remote-nse-death-ip -- ping -c 4 172.16.1.102`) @@ -341,30 +341,30 @@ func (s *Suite) TestRemote_nsm_system_restart_memif_ip() { s.T().Cleanup(func() { r.Run(`kubectl delete ns ns-remote-nsm-system-restart-memif-ip`) }) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/heal/remote-nsm-system-restart-memif-ip?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/heal/remote-nsm-system-restart-memif-ip?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nsc-memif -n ns-remote-nsm-system-restart-memif-ip`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nse-memif -n ns-remote-nsm-system-restart-memif-ip`) r.Run(`result=$(kubectl exec deployments/nsc-memif -n ns-remote-nsm-system-restart-memif-ip -- vppctl ping 172.16.1.100 repeat 4)` + "\n" + `echo ${result}` + "\n" + `! echo ${result} | grep -E -q "(100% packet loss)|(0 sent)|(no egress interface)"`) r.Run(`result=$(kubectl exec deployments/nse-memif -n ns-remote-nsm-system-restart-memif-ip -- vppctl ping 172.16.1.101 repeat 4)` + "\n" + `echo ${result}` + "\n" + `! echo ${result} | grep -E -q "(100% packet loss)|(0 sent)|(no egress interface)"`) r.Run(`kubectl delete mutatingwebhookconfiguration nsm-mutating-webhook` + "\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=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/basic?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) r.Run(`result=$(kubectl exec deployments/nsc-memif -n ns-remote-nsm-system-restart-memif-ip -- vppctl ping 172.16.1.100 repeat 4)` + "\n" + `echo ${result}` + "\n" + `! echo ${result} | grep -E -q "(100% packet loss)|(0 sent)|(no egress interface)"`) r.Run(`result=$(kubectl exec deployments/nse-memif -n ns-remote-nsm-system-restart-memif-ip -- vppctl ping 172.16.1.101 repeat 4)` + "\n" + `echo ${result}` + "\n" + `! echo ${result} | grep -E -q "(100% packet loss)|(0 sent)|(no egress interface)"`) } func (s *Suite) TestRemote_nsmgr_death() { r := s.Runner("../deployments-k8s/examples/heal/remote-nsmgr-death") s.T().Cleanup(func() { - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/apps/nsmgr?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2 -n nsm-system`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/apps/nsmgr?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732 -n nsm-system`) r.Run(`kubectl delete ns ns-remote-nsmgr-death`) }) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/heal/remote-nsmgr-death/remote-nse?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/heal/remote-nsmgr-death/remote-nse?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=alpine -n ns-remote-nsmgr-death`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nse-kernel -n ns-remote-nsmgr-death`) r.Run(`kubectl exec pods/alpine -n ns-remote-nsmgr-death -- ping -c 4 172.16.1.100`) r.Run(`kubectl exec deployments/nse-kernel -n ns-remote-nsmgr-death -- ping -c 4 172.16.1.101`) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/heal/remote-nsmgr-death/nsmgr-death?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/heal/remote-nsmgr-death/local-nse?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/heal/remote-nsmgr-death/nsmgr-death?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/heal/remote-nsmgr-death/local-nse?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l nse-version=local -n ns-remote-nsmgr-death`) r.Run(`NEW_NSE=$(kubectl get pods -l nse-version=local -n ns-remote-nsmgr-death --template '{{range .items}}{{.metadata.name}}{{"\n"}}{{end}}')`) r.Run(`kubectl exec pods/alpine -n ns-remote-nsmgr-death -- ping -c 4 172.16.1.102`) @@ -375,7 +375,7 @@ func (s *Suite) TestRemote_nsmgr_remote_endpoint() { s.T().Cleanup(func() { r.Run(`kubectl delete ns ns-remote-nsmgr-remote-endpoint`) }) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/heal/remote-nsmgr-remote-endpoint/nsmgr-before-death?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/heal/remote-nsmgr-remote-endpoint/nsmgr-before-death?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=alpine -n ns-remote-nsmgr-remote-endpoint`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nse-kernel -n ns-remote-nsmgr-remote-endpoint`) r.Run(`kubectl exec pods/alpine -n ns-remote-nsmgr-remote-endpoint -- ping -c 4 172.16.1.100`) @@ -383,7 +383,7 @@ func (s *Suite) TestRemote_nsmgr_remote_endpoint() { r.Run(`NSE_NODE=$(kubectl get pods -l app=nse-kernel -n ns-remote-nsmgr-remote-endpoint --template '{{range .items}}{{.spec.nodeName}}{{"\n"}}{{end}}')`) r.Run(`NSMGR=$(kubectl get pods -l app=nsmgr --field-selector spec.nodeName==${NSE_NODE} -n nsm-system --template '{{range .items}}{{.metadata.name}}{{"\n"}}{{end}}')`) r.Run(`kubectl delete pod ${NSMGR} -n nsm-system`) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/heal/remote-nsmgr-remote-endpoint/nsmgr-after-death?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/heal/remote-nsmgr-remote-endpoint/nsmgr-after-death?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nsmgr --field-selector spec.nodeName==${NSE_NODE} -n nsm-system`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nse-kernel -l version=new -n ns-remote-nsmgr-remote-endpoint`) r.Run(`NEW_NSE=$(kubectl get pods -l app=nse-kernel -l version=new -n ns-remote-nsmgr-remote-endpoint --template '{{range .items}}{{.metadata.name}}{{"\n"}}{{end}}')`) @@ -395,7 +395,7 @@ func (s *Suite) TestRemote_nsmgr_restart() { s.T().Cleanup(func() { r.Run(`kubectl delete ns ns-remote-nsmgr-restart`) }) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/heal/remote-nsmgr-restart?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/heal/remote-nsmgr-restart?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=alpine -n ns-remote-nsmgr-restart`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nse-kernel -n ns-remote-nsmgr-restart`) r.Run(`kubectl exec pods/alpine -n ns-remote-nsmgr-restart -- ping -c 4 172.16.1.100`) @@ -412,7 +412,7 @@ func (s *Suite) TestRemote_nsmgr_restart_ip() { s.T().Cleanup(func() { r.Run(`kubectl delete ns ns-remote-nsmgr-restart-ip`) }) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/heal/remote-nsmgr-restart-ip?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/heal/remote-nsmgr-restart-ip?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=alpine -n ns-remote-nsmgr-restart-ip`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nse-kernel -n ns-remote-nsmgr-restart-ip`) r.Run(`kubectl exec pods/alpine -n ns-remote-nsmgr-restart-ip -- ping -c 4 172.16.1.100`) @@ -430,7 +430,7 @@ func (s *Suite) TestSpire_agent_restart() { r.Run(`kubectl delete ns ns-spire-agent-restart`) }) r.Run(`kubectl create ns ns-spire-agent-restart`) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/heal/spire-agent-restart?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/heal/spire-agent-restart?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=alpine -n ns-spire-agent-restart`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nse-kernel -n ns-spire-agent-restart`) r.Run(`kubectl exec pods/alpine -n ns-spire-agent-restart -- ping -c 4 172.16.1.100`) @@ -447,7 +447,7 @@ func (s *Suite) TestSpire_server_agent_restart() { r.Run(`kubectl delete ns ns-spire-server-agent-restart`) }) r.Run(`kubectl create ns ns-spire-server-agent-restart`) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/heal/spire-server-agent-restart?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/heal/spire-server-agent-restart?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=alpine -n ns-spire-server-agent-restart`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nse-kernel -n ns-spire-server-agent-restart`) r.Run(`kubectl exec pods/alpine -n ns-spire-server-agent-restart -- ping -c 4 172.16.1.100`) @@ -466,7 +466,7 @@ func (s *Suite) TestSpire_server_restart() { r.Run(`kubectl delete ns ns-spire-server-restart`) }) r.Run(`kubectl create ns ns-spire-server-restart`) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/heal/spire-server-restart?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/heal/spire-server-restart?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=alpine -n ns-spire-server-restart`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nse-kernel -n ns-spire-server-restart`) r.Run(`kubectl exec pods/alpine -n ns-spire-server-restart -- ping -c 4 172.16.1.100`) @@ -482,17 +482,17 @@ func (s *Suite) TestSpire_upgrade() { r.Run(`kubectl delete ns ns-spire-upgrade`) }) r.Run(`kubectl create ns ns-spire-upgrade`) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/heal/spire-upgrade?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/heal/spire-upgrade?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nsc-kernel -n ns-spire-upgrade`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nse-kernel -n ns-spire-upgrade`) r.Run(`kubectl exec pods/alpine -n ns-spire-upgrade -- ping -c 4 172.16.1.100`) r.Run(`kubectl exec deployments/nse-kernel -n ns-spire-upgrade -- ping -c 4 172.16.1.101`) r.Run(`kubectl delete crd clusterspiffeids.spire.spiffe.io` + "\n" + `kubectl delete crd clusterfederatedtrustdomains.spire.spiffe.io` + "\n" + `kubectl delete validatingwebhookconfiguration.admissionregistration.k8s.io/spire-controller-manager-webhook` + "\n" + `kubectl delete ns spire`) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/spire/single_cluster?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/spire/single_cluster?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) r.Run(`kubectl wait --for=condition=ready --timeout=3m pod -l app=spire-server -n spire`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=spire-agent -n spire`) - r.Run(`kubectl apply -f https://raw.githubusercontent.com/networkservicemesh/deployments-k8s/427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2/examples/spire/single_cluster/clusterspiffeid-template.yaml`) - r.Run(`kubectl apply -f https://raw.githubusercontent.com/networkservicemesh/deployments-k8s/427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2/examples/spire/base/clusterspiffeid-webhook-template.yaml`) + r.Run(`kubectl apply -f https://raw.githubusercontent.com/networkservicemesh/deployments-k8s/d07cec788258d07b1c7a1a79bffe89bb174ab732/examples/spire/single_cluster/clusterspiffeid-template.yaml`) + r.Run(`kubectl apply -f https://raw.githubusercontent.com/networkservicemesh/deployments-k8s/d07cec788258d07b1c7a1a79bffe89bb174ab732/examples/spire/base/clusterspiffeid-webhook-template.yaml`) r.Run(`kubectl exec pods/alpine -n ns-spire-upgrade -- ping -c 4 172.16.1.100`) r.Run(`kubectl exec deployments/nse-kernel -n ns-spire-upgrade -- ping -c 4 172.16.1.101`) } @@ -501,7 +501,7 @@ func (s *Suite) TestVl3_nscs_death() { s.T().Cleanup(func() { r.Run(`kubectl delete ns ns-vl3-nscs-death`) }) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/heal/vl3-nscs-death?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/heal/vl3-nscs-death?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) r.Run(`kubectl wait -n ns-vl3-nscs-death --for=condition=ready --timeout=1m pod -l app=alpine`) r.Run(`nscs=$(kubectl get pods -l app=alpine -o go-template --template="{{range .items}}{{.metadata.name}} {{end}}" -n ns-vl3-nscs-death)` + "\n" + `[[ ! -z $nscs ]]`) r.Run(`(` + "\n" + `for nsc in $nscs` + "\n" + `do` + "\n" + ` ipAddr=$(kubectl exec -n ns-vl3-nscs-death $nsc -- ifconfig nsm-1) || exit` + "\n" + ` ipAddr=$(echo $ipAddr | grep -Eo 'inet addr:[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}'| cut -c 11-)` + "\n" + ` for pinger in $nscs` + "\n" + ` do` + "\n" + ` echo $pinger pings $ipAddr` + "\n" + ` kubectl exec $pinger -n ns-vl3-nscs-death -- ping -c2 -i 0.5 $ipAddr || exit` + "\n" + ` done` + "\n" + `done` + "\n" + `)`) @@ -517,7 +517,7 @@ func (s *Suite) TestVl3_nse_death() { s.T().Cleanup(func() { r.Run(`kubectl delete ns ns-vl3-nse-death`) }) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/heal/vl3-nse-death?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/heal/vl3-nse-death?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) r.Run(`kubectl wait -n ns-vl3-nse-death --for=condition=ready --timeout=1m pod -l app=alpine`) r.Run(`nscs=$(kubectl get pods -l app=alpine -o go-template --template="{{range .items}}{{.metadata.name}} {{end}}" -n ns-vl3-nse-death) ` + "\n" + `[[ ! -z $nscs ]]`) r.Run(`(` + "\n" + `for nsc in $nscs ` + "\n" + `do` + "\n" + ` ipAddr=$(kubectl exec -n ns-vl3-nse-death $nsc -- ifconfig nsm-1) || exit` + "\n" + ` ipAddr=$(echo $ipAddr | grep -Eo 'inet addr:[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}'| cut -c 11-)` + "\n" + ` for pinger in $nscs` + "\n" + ` do` + "\n" + ` echo $pinger pings $ipAddr` + "\n" + ` kubectl exec $pinger -n ns-vl3-nse-death -- ping -c2 -i 0.5 $ipAddr || exit` + "\n" + ` done` + "\n" + `done` + "\n" + `)`) diff --git a/suites/heal_extended/suite.gen.go b/suites/heal_extended/suite.gen.go index 2d6bb3dc23..6e0f69a2af 100755 --- a/suites/heal_extended/suite.gen.go +++ b/suites/heal_extended/suite.gen.go @@ -29,7 +29,7 @@ func (s *Suite) TestComponent_restart() { s.T().Cleanup(func() { r.Run(`kubectl delete ns ns-component-restart`) }) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/heal_extended/component-restart?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/heal_extended/component-restart?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=client -n ns-component-restart`) r.Run(`# N_RESTARTS - number of restarts` + "\n" + `# TEST_TIME - determines how long the test will take (sec)` + "\n" + `# DELAY - delay between restarts (sec)` + "\n" + `# INTERFACE_READY_WAIT - how long do we wait for the interface to be ready (sec). Equals to NSM_REQUEST_TIMEOUT * 2 (for Close and Request)` + "\n" + `N_RESTARTS=15` + "\n" + `TEST_TIME=900` + "\n" + `DELAY=$(($TEST_TIME/$N_RESTARTS))` + "\n" + `INTERFACE_READY_WAIT=10`) r.Run(`# Iterates over NSCs and checks connectivity to NSE (sends pings)` + "\n" + `function connectivity_check() {` + "\n" + `echo -e "\n-- Connectivity check --"` + "\n" + `nscs=$(kubectl get pods -l app=client -o go-template --template="{{range .items}}{{.metadata.name}} {{end}}" -n ns-component-restart)` + "\n" + `for nsc in $nscs` + "\n" + `do` + "\n" + ` echo -e "\nNSC: $nsc"` + "\n" + ` echo "Wait for NSM interface to be ready"` + "\n" + ` for i in $(seq 1 $INTERFACE_READY_WAIT)` + "\n" + ` do` + "\n" + ` if [ $i -eq $INTERFACE_READY_WAIT ] ; then` + "\n" + ` echo "NSM interface is not ready after $INTERFACE_READY_WAIT s"` + "\n" + ` return 1` + "\n" + ` fi` + "\n" + ` sleep 1` + "\n" + ` routes=$(kubectl exec -n ns-component-restart $nsc -- ip route)` + "\n" + ` nseAddr=$(echo $routes | grep -Eo '172\.16\.1\.[0-9]{1,3}')` + "\n" + ` test $? -ne 0 || break` + "\n" + ` done` + "\n" + ` echo "NSM interface is ready"` + "\n" + ` kubectl exec $nsc -n ns-component-restart -- ping -c2 -i 0.5 $nseAddr || return 2` + "\n" + `done` + "\n" + `return 0` + "\n" + `}` + "\n" + `` + "\n" + `# Restarts NSM components and checks connectivity.` + "\n" + `# $1 is used to define NSM-component type (e.g. forwarder or nsmgr)` + "\n" + `# -a defines the restart method.` + "\n" + `# if specified - all NSM-pods of this type will be restarted at the same time.` + "\n" + `# else - they will be restarted one by one.` + "\n" + `function restart_nsm_component() {` + "\n" + `nsm_component=$1` + "\n" + `shift` + "\n" + `` + "\n" + `a_flag=0` + "\n" + `while getopts 'a' flag; do` + "\n" + ` case "${flag}" in` + "\n" + ` a) a_flag=1 ;;` + "\n" + ` esac` + "\n" + `done` + "\n" + `` + "\n" + `for i in $(seq 1 $N_RESTARTS)` + "\n" + `do` + "\n" + ` echo -e "\n-------- $nsm_component restart $i of $N_RESTARTS --------"` + "\n" + ` echo "Wait $DELAY sec before restart..."` + "\n" + ` sleep $DELAY` + "\n" + ` if [ $a_flag -eq 1 ]; then` + "\n" + ` kubectl delete pod -n nsm-system -l app=${nsm_component}` + "\n" + ` kubectl wait --for=condition=ready --timeout=1m pod -l app=${nsm_component} -n nsm-system || return 1` + "\n" + ` connectivity_check || return 2` + "\n" + ` else` + "\n" + ` nodes=$(kubectl get pods -l app=${nsm_component} -n nsm-system --template '{{range .items}}{{.spec.nodeName}}{{"\n"}}{{end}}')` + "\n" + ` for node in $nodes` + "\n" + ` do` + "\n" + ` kubectl delete pod -n nsm-system -l app=${nsm_component} --field-selector spec.nodeName==${node}` + "\n" + ` kubectl wait --for=condition=ready --timeout=1m pod -l app=${nsm_component} --field-selector spec.nodeName==${node} -n nsm-system || return 1` + "\n" + ` connectivity_check || return 2` + "\n" + ` done` + "\n" + ` fi` + "\n" + `done` + "\n" + `return 0` + "\n" + `}`) diff --git a/suites/heal_ovs/suite.gen.go b/suites/heal_ovs/suite.gen.go index d5bbff7dff..b632a69563 100755 --- a/suites/heal_ovs/suite.gen.go +++ b/suites/heal_ovs/suite.gen.go @@ -29,7 +29,7 @@ func (s *Suite) TestLocal_forwarder_death() { s.T().Cleanup(func() { r.Run(`kubectl delete ns ns-local-forwarder-death`) }) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/heal/local-forwarder-death?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/heal/local-forwarder-death?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=alpine -n ns-local-forwarder-death`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nse-kernel -n ns-local-forwarder-death`) r.Run(`kubectl exec pods/alpine -n ns-local-forwarder-death -- ping -c 4 172.16.1.100`) @@ -46,7 +46,7 @@ func (s *Suite) TestLocal_forwarder_remote_forwarder() { s.T().Cleanup(func() { r.Run(`kubectl delete ns ns-local-forwarder-remote-forwarder`) }) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/heal/local-forwarder-remote-forwarder?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/heal/local-forwarder-remote-forwarder?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=alpine -n ns-local-forwarder-remote-forwarder`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nse-kernel -n ns-local-forwarder-remote-forwarder`) r.Run(`kubectl exec pods/alpine -n ns-local-forwarder-remote-forwarder -- ping -c 4 172.16.1.100`) @@ -66,7 +66,7 @@ func (s *Suite) TestLocal_nsmgr_restart() { s.T().Cleanup(func() { r.Run(`kubectl delete ns ns-local-nsmgr-restart`) }) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/heal/local-nsmgr-restart?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/heal/local-nsmgr-restart?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=alpine -n ns-local-nsmgr-restart`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nse-kernel -n ns-local-nsmgr-restart`) r.Run(`kubectl exec pods/alpine -n ns-local-nsmgr-restart -- ping -c 4 172.16.1.100`) @@ -83,7 +83,7 @@ func (s *Suite) TestRegistry_remote_forwarder() { s.T().Cleanup(func() { r.Run(`kubectl delete ns ns-registry-remote-forwarder`) }) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/heal/registry-remote-forwarder?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/heal/registry-remote-forwarder?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=alpine -n ns-registry-remote-forwarder`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nse-kernel -n ns-registry-remote-forwarder`) r.Run(`kubectl exec pods/alpine -n ns-registry-remote-forwarder -- ping -c 4 172.16.1.100`) @@ -103,7 +103,7 @@ func (s *Suite) TestRegistry_restart() { s.T().Cleanup(func() { r.Run(`kubectl delete ns ns-registry-restart`) }) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/heal/registry-restart/registry-before-death?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/heal/registry-restart/registry-before-death?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=alpine -n ns-registry-restart`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nse-kernel -n ns-registry-restart`) r.Run(`NSC=$(kubectl get pods -l app=alpine -n ns-registry-restart --template '{{range .items}}{{.metadata.name}}{{"\n"}}{{end}}')`) @@ -113,7 +113,7 @@ func (s *Suite) TestRegistry_restart() { r.Run(`REGISTRY=$(kubectl get pods -l app=registry -n nsm-system --template '{{range .items}}{{.metadata.name}}{{"\n"}}{{end}}')`) r.Run(`kubectl delete pod ${REGISTRY} -n nsm-system`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=registry -n nsm-system`) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/heal/registry-restart/registry-after-death?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/heal/registry-restart/registry-after-death?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=alpine-new -n ns-registry-restart`) r.Run(`kubectl exec pods/alpine-new -n ns-registry-restart -- ping -c 4 172.16.1.102`) r.Run(`kubectl exec deployments/nse-kernel -n ns-registry-restart -- ping -c 4 172.16.1.103`) @@ -123,7 +123,7 @@ func (s *Suite) TestRemote_forwarder_death() { s.T().Cleanup(func() { r.Run(`kubectl delete ns ns-remote-forwarder-death`) }) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/heal/remote-forwarder-death?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/heal/remote-forwarder-death?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=alpine -n ns-remote-forwarder-death`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nse-kernel -n ns-remote-forwarder-death`) r.Run(`kubectl exec pods/alpine -n ns-remote-forwarder-death -- ping -c 4 172.16.1.100`) @@ -140,7 +140,7 @@ func (s *Suite) TestRemote_forwarder_death_ip() { s.T().Cleanup(func() { r.Run(`kubectl delete ns ns-remote-forwarder-death-ip`) }) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/heal/remote-forwarder-death-ip?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/heal/remote-forwarder-death-ip?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=alpine -n ns-remote-forwarder-death-ip`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nse-kernel -n ns-remote-forwarder-death-ip`) r.Run(`kubectl exec pods/alpine -n ns-remote-forwarder-death-ip -- ping -c 4 172.16.1.100`) diff --git a/suites/interdomain/suites/basic/suite.gen.go b/suites/interdomain/suites/basic/suite.gen.go index ea124cde20..87fd6be483 100755 --- a/suites/interdomain/suites/basic/suite.gen.go +++ b/suites/interdomain/suites/basic/suite.gen.go @@ -31,10 +31,10 @@ func (s *Suite) TestFloating_Kernel2Ethernet2Kernel() { r.Run(`kubectl --kubeconfig=$KUBECONFIG2 delete ns ns-floating-kernel2ethernet2kernel`) r.Run(`kubectl --kubeconfig=$KUBECONFIG3 delete ns ns-floating-kernel2ethernet2kernel`) }) - r.Run(`kubectl --kubeconfig=$KUBECONFIG3 apply -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/usecases/floating_Kernel2Ethernet2Kernel/cluster3?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) - r.Run(`kubectl --kubeconfig=$KUBECONFIG2 apply -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/usecases/floating_Kernel2Ethernet2Kernel/cluster2?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl --kubeconfig=$KUBECONFIG3 apply -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/usecases/floating_Kernel2Ethernet2Kernel/cluster3?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) + r.Run(`kubectl --kubeconfig=$KUBECONFIG2 apply -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/usecases/floating_Kernel2Ethernet2Kernel/cluster2?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) r.Run(`kubectl --kubeconfig=$KUBECONFIG2 wait --for=condition=ready --timeout=1m pod -l app=nse-kernel -n ns-floating-kernel2ethernet2kernel`) - r.Run(`kubectl --kubeconfig=$KUBECONFIG1 apply -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/usecases/floating_Kernel2Ethernet2Kernel/cluster1?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl --kubeconfig=$KUBECONFIG1 apply -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/usecases/floating_Kernel2Ethernet2Kernel/cluster1?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) r.Run(`kubectl --kubeconfig=$KUBECONFIG1 wait --for=condition=ready --timeout=5m pod -l app=alpine -n ns-floating-kernel2ethernet2kernel`) r.Run(`kubectl --kubeconfig=$KUBECONFIG1 exec pods/alpine -n ns-floating-kernel2ethernet2kernel -- ping -c 4 172.16.1.2`) r.Run(`kubectl --kubeconfig=$KUBECONFIG2 exec deployments/nse-kernel -n ns-floating-kernel2ethernet2kernel -- ping -c 4 172.16.1.3`) @@ -46,10 +46,10 @@ func (s *Suite) TestFloating_Kernel2Ethernet2Memif() { r.Run(`kubectl --kubeconfig=$KUBECONFIG2 delete ns ns-floating-kernel2ethernet2memif`) r.Run(`kubectl --kubeconfig=$KUBECONFIG3 delete ns ns-floating-kernel2ethernet2memif`) }) - r.Run(`kubectl --kubeconfig=$KUBECONFIG3 apply -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/usecases/floating_Kernel2Ethernet2Memif/cluster3?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) - r.Run(`kubectl --kubeconfig=$KUBECONFIG2 apply -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/usecases/floating_Kernel2Ethernet2Memif/cluster2?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl --kubeconfig=$KUBECONFIG3 apply -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/usecases/floating_Kernel2Ethernet2Memif/cluster3?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) + r.Run(`kubectl --kubeconfig=$KUBECONFIG2 apply -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/usecases/floating_Kernel2Ethernet2Memif/cluster2?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) r.Run(`kubectl --kubeconfig=$KUBECONFIG2 wait --for=condition=ready --timeout=2m pod -l app=nse-memif -n ns-floating-kernel2ethernet2memif`) - r.Run(`kubectl --kubeconfig=$KUBECONFIG1 apply -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/usecases/floating_Kernel2Ethernet2Memif/cluster1?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl --kubeconfig=$KUBECONFIG1 apply -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/usecases/floating_Kernel2Ethernet2Memif/cluster1?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) r.Run(`kubectl --kubeconfig=$KUBECONFIG1 wait --for=condition=ready --timeout=5m pod -l app=alpine -n ns-floating-kernel2ethernet2memif`) r.Run(`kubectl --kubeconfig=$KUBECONFIG1 exec pods/alpine -n ns-floating-kernel2ethernet2memif -- ping -c 4 172.16.1.2`) r.Run(`result=$(kubectl --kubeconfig=$KUBECONFIG2 exec deployments/nse-memif -n "ns-floating-kernel2ethernet2memif" -- vppctl ping 172.16.1.3 repeat 4)` + "\n" + `echo ${result}` + "\n" + `! echo ${result} | grep -E -q "(100% packet loss)|(0 sent)|(no egress interface)"`) @@ -61,10 +61,10 @@ func (s *Suite) TestFloating_Kernel2IP2Kernel() { r.Run(`kubectl --kubeconfig=$KUBECONFIG2 delete ns ns-floating-kernel2ip2kernel`) r.Run(`kubectl --kubeconfig=$KUBECONFIG3 delete ns ns-floating-kernel2ip2kernel`) }) - r.Run(`kubectl --kubeconfig=$KUBECONFIG3 apply -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/usecases/floating_Kernel2IP2Kernel/cluster3?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) - r.Run(`kubectl --kubeconfig=$KUBECONFIG2 apply -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/usecases/floating_Kernel2IP2Kernel/cluster2?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl --kubeconfig=$KUBECONFIG3 apply -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/usecases/floating_Kernel2IP2Kernel/cluster3?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) + r.Run(`kubectl --kubeconfig=$KUBECONFIG2 apply -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/usecases/floating_Kernel2IP2Kernel/cluster2?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) r.Run(`kubectl --kubeconfig=$KUBECONFIG2 wait --for=condition=ready --timeout=1m pod -l app=nse-kernel -n ns-floating-kernel2ip2kernel`) - r.Run(`kubectl --kubeconfig=$KUBECONFIG1 apply -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/usecases/floating_Kernel2IP2Kernel/cluster1?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl --kubeconfig=$KUBECONFIG1 apply -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/usecases/floating_Kernel2IP2Kernel/cluster1?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) r.Run(`kubectl --kubeconfig=$KUBECONFIG1 wait --for=condition=ready --timeout=5m pod -l app=alpine -n ns-floating-kernel2ip2kernel`) r.Run(`kubectl --kubeconfig=$KUBECONFIG1 exec pods/alpine -n ns-floating-kernel2ip2kernel -- ping -c 4 172.16.1.2`) r.Run(`kubectl --kubeconfig=$KUBECONFIG2 exec deployments/nse-kernel -n ns-floating-kernel2ip2kernel -- ping -c 4 172.16.1.3`) @@ -76,10 +76,10 @@ func (s *Suite) TestFloating_Kernel2IP2Memif() { r.Run(`kubectl --kubeconfig=$KUBECONFIG2 delete ns ns-floating-kernel2ip2memif`) r.Run(`kubectl --kubeconfig=$KUBECONFIG3 delete ns ns-floating-kernel2ip2memif`) }) - r.Run(`kubectl --kubeconfig=$KUBECONFIG3 apply -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/usecases/floating_Kernel2IP2Memif/cluster3?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) - r.Run(`kubectl --kubeconfig=$KUBECONFIG2 apply -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/usecases/floating_Kernel2IP2Memif/cluster2?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl --kubeconfig=$KUBECONFIG3 apply -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/usecases/floating_Kernel2IP2Memif/cluster3?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) + r.Run(`kubectl --kubeconfig=$KUBECONFIG2 apply -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/usecases/floating_Kernel2IP2Memif/cluster2?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) r.Run(`kubectl --kubeconfig=$KUBECONFIG2 wait --for=condition=ready --timeout=2m pod -l app=nse-memif -n ns-floating-kernel2ip2memif`) - r.Run(`kubectl --kubeconfig=$KUBECONFIG1 apply -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/usecases/floating_Kernel2IP2Memif/cluster1?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl --kubeconfig=$KUBECONFIG1 apply -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/usecases/floating_Kernel2IP2Memif/cluster1?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) r.Run(`kubectl --kubeconfig=$KUBECONFIG1 wait --for=condition=ready --timeout=5m pod -l app=alpine -n ns-floating-kernel2ip2memif`) r.Run(`kubectl --kubeconfig=$KUBECONFIG1 exec pods/alpine -n ns-floating-kernel2ip2memif -- ping -c 4 172.16.1.2`) r.Run(`result=$(kubectl --kubeconfig=$KUBECONFIG2 exec deployments/nse-memif -n "ns-floating-kernel2ip2memif" -- vppctl ping 172.16.1.3 repeat 4)` + "\n" + `echo ${result}` + "\n" + `! echo ${result} | grep -E -q "(100% packet loss)|(0 sent)|(no egress interface)"`) @@ -91,10 +91,10 @@ func (s *Suite) TestFloating_Memif2Ethernet2Kernel() { r.Run(`kubectl --kubeconfig=$KUBECONFIG2 delete ns ns-floating-memif2ethernet2kernel`) r.Run(`kubectl --kubeconfig=$KUBECONFIG3 delete ns ns-floating-memif2ethernet2kernel`) }) - r.Run(`kubectl --kubeconfig=$KUBECONFIG3 apply -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/usecases/floating_Memif2Ethernet2Kernel/cluster3?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) - r.Run(`kubectl --kubeconfig=$KUBECONFIG2 apply -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/usecases/floating_Memif2Ethernet2Kernel/cluster2?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl --kubeconfig=$KUBECONFIG3 apply -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/usecases/floating_Memif2Ethernet2Kernel/cluster3?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) + r.Run(`kubectl --kubeconfig=$KUBECONFIG2 apply -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/usecases/floating_Memif2Ethernet2Kernel/cluster2?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) r.Run(`kubectl --kubeconfig=$KUBECONFIG2 wait --for=condition=ready --timeout=1m pod -l app=nse-kernel -n ns-floating-memif2ethernet2kernel`) - r.Run(`kubectl --kubeconfig=$KUBECONFIG1 apply -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/usecases/floating_Memif2Ethernet2Kernel/cluster1?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl --kubeconfig=$KUBECONFIG1 apply -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/usecases/floating_Memif2Ethernet2Kernel/cluster1?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) r.Run(`kubectl --kubeconfig=$KUBECONFIG1 wait --for=condition=ready --timeout=2m pod -l app=nsc-memif -n ns-floating-memif2ethernet2kernel`) r.Run(`result=$(kubectl --kubeconfig=$KUBECONFIG1 exec deployments/nsc-memif -n "ns-floating-memif2ethernet2kernel" -- vppctl ping 172.16.1.2 repeat 4)` + "\n" + `echo ${result}` + "\n" + `! echo ${result} | grep -E -q "(100% packet loss)|(0 sent)|(no egress interface)"`) r.Run(`kubectl --kubeconfig=$KUBECONFIG2 exec deployments/nse-kernel -n ns-floating-memif2ethernet2kernel -- ping -c 4 172.16.1.3`) @@ -106,10 +106,10 @@ func (s *Suite) TestFloating_Memif2Ethernet2Memif() { r.Run(`kubectl --kubeconfig=$KUBECONFIG2 delete ns ns-floating-memif2ethernet2memif`) r.Run(`kubectl --kubeconfig=$KUBECONFIG3 delete ns ns-floating-memif2ethernet2memif`) }) - r.Run(`kubectl --kubeconfig=$KUBECONFIG3 apply -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/usecases/floating_Memif2Ethernet2Memif/cluster3?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) - r.Run(`kubectl --kubeconfig=$KUBECONFIG2 apply -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/usecases/floating_Memif2Ethernet2Memif/cluster2?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl --kubeconfig=$KUBECONFIG3 apply -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/usecases/floating_Memif2Ethernet2Memif/cluster3?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) + r.Run(`kubectl --kubeconfig=$KUBECONFIG2 apply -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/usecases/floating_Memif2Ethernet2Memif/cluster2?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) r.Run(`kubectl --kubeconfig=$KUBECONFIG2 wait --for=condition=ready --timeout=2m pod -l app=nse-memif -n ns-floating-memif2ethernet2memif`) - r.Run(`kubectl --kubeconfig=$KUBECONFIG1 apply -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/usecases/floating_Memif2Ethernet2Memif/cluster1?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl --kubeconfig=$KUBECONFIG1 apply -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/usecases/floating_Memif2Ethernet2Memif/cluster1?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) r.Run(`kubectl --kubeconfig=$KUBECONFIG1 wait --for=condition=ready --timeout=2m pod -l app=nsc-memif -n ns-floating-memif2ethernet2memif`) r.Run(`result=$(kubectl --kubeconfig=$KUBECONFIG1 exec deployments/nsc-memif -n "ns-floating-memif2ethernet2memif" -- vppctl ping 172.16.1.2 repeat 4)` + "\n" + `echo ${result}` + "\n" + `! echo ${result} | grep -E -q "(100% packet loss)|(0 sent)|(no egress interface)"`) r.Run(`result=$(kubectl --kubeconfig=$KUBECONFIG2 exec deployments/nse-memif -n "ns-floating-memif2ethernet2memif" -- vppctl ping 172.16.1.3 repeat 4)` + "\n" + `echo ${result}` + "\n" + `! echo ${result} | grep -E -q "(100% packet loss)|(0 sent)|(no egress interface)"`) @@ -121,10 +121,10 @@ func (s *Suite) TestFloating_Memif2IP2Kernel() { r.Run(`kubectl --kubeconfig=$KUBECONFIG2 delete ns ns-floating-memif2ip2kernel`) r.Run(`kubectl --kubeconfig=$KUBECONFIG3 delete ns ns-floating-memif2ip2kernel`) }) - r.Run(`kubectl --kubeconfig=$KUBECONFIG3 apply -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/usecases/floating_Memif2IP2Kernel/cluster3?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) - r.Run(`kubectl --kubeconfig=$KUBECONFIG2 apply -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/usecases/floating_Memif2IP2Kernel/cluster2?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl --kubeconfig=$KUBECONFIG3 apply -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/usecases/floating_Memif2IP2Kernel/cluster3?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) + r.Run(`kubectl --kubeconfig=$KUBECONFIG2 apply -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/usecases/floating_Memif2IP2Kernel/cluster2?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) r.Run(`kubectl --kubeconfig=$KUBECONFIG2 wait --for=condition=ready --timeout=1m pod -l app=nse-kernel -n ns-floating-memif2ip2kernel`) - r.Run(`kubectl --kubeconfig=$KUBECONFIG1 apply -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/usecases/floating_Memif2IP2Kernel/cluster1?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl --kubeconfig=$KUBECONFIG1 apply -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/usecases/floating_Memif2IP2Kernel/cluster1?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) r.Run(`kubectl --kubeconfig=$KUBECONFIG1 wait --for=condition=ready --timeout=2m pod -l app=nsc-memif -n ns-floating-memif2ip2kernel`) r.Run(`result=$(kubectl --kubeconfig=$KUBECONFIG1 exec deployments/nsc-memif -n "ns-floating-memif2ip2kernel" -- vppctl ping 172.16.1.2 repeat 4)` + "\n" + `echo ${result}` + "\n" + `! echo ${result} | grep -E -q "(100% packet loss)|(0 sent)|(no egress interface)"`) r.Run(`kubectl --kubeconfig=$KUBECONFIG2 exec deployments/nse-kernel -n ns-floating-memif2ip2kernel -- ping -c 4 172.16.1.3`) @@ -136,10 +136,10 @@ func (s *Suite) TestFloating_Memif2IP2Memif() { r.Run(`kubectl --kubeconfig=$KUBECONFIG2 delete ns ns-floating-memif2ip2memif`) r.Run(`kubectl --kubeconfig=$KUBECONFIG3 delete ns ns-floating-memif2ip2memif`) }) - r.Run(`kubectl --kubeconfig=$KUBECONFIG3 apply -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/usecases/floating_Memif2IP2Memif/cluster3?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) - r.Run(`kubectl --kubeconfig=$KUBECONFIG2 apply -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/usecases/floating_Memif2IP2Memif/cluster2?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl --kubeconfig=$KUBECONFIG3 apply -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/usecases/floating_Memif2IP2Memif/cluster3?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) + r.Run(`kubectl --kubeconfig=$KUBECONFIG2 apply -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/usecases/floating_Memif2IP2Memif/cluster2?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) r.Run(`kubectl --kubeconfig=$KUBECONFIG2 wait --for=condition=ready --timeout=2m pod -l app=nse-memif -n ns-floating-memif2ip2memif`) - r.Run(`kubectl --kubeconfig=$KUBECONFIG1 apply -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/usecases/floating_Memif2IP2Memif/cluster1?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl --kubeconfig=$KUBECONFIG1 apply -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/usecases/floating_Memif2IP2Memif/cluster1?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) r.Run(`kubectl --kubeconfig=$KUBECONFIG1 wait --for=condition=ready --timeout=2m pod -l app=nsc-memif -n ns-floating-memif2ip2memif`) r.Run(`result=$(kubectl --kubeconfig=$KUBECONFIG1 exec deployments/nsc-memif -n "ns-floating-memif2ip2memif" -- vppctl ping 172.16.1.2 repeat 4)` + "\n" + `echo ${result}` + "\n" + `! echo ${result} | grep -E -q "(100% packet loss)|(0 sent)|(no egress interface)"`) r.Run(`result=$(kubectl --kubeconfig=$KUBECONFIG2 exec deployments/nse-memif -n "ns-floating-memif2ip2memif" -- vppctl ping 172.16.1.3 repeat 4)` + "\n" + `echo ${result}` + "\n" + `! echo ${result} | grep -E -q "(100% packet loss)|(0 sent)|(no egress interface)"`) @@ -151,9 +151,9 @@ func (s *Suite) TestFloating_dns() { r.Run(`kubectl --kubeconfig=$KUBECONFIG2 delete ns ns-floating-dns`) r.Run(`kubectl --kubeconfig=$KUBECONFIG3 delete ns ns-floating-dns`) }) - r.Run(`kubectl --kubeconfig=$KUBECONFIG3 apply -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/usecases/floating_dns/cluster3?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) - r.Run(`kubectl --kubeconfig=$KUBECONFIG2 apply -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/usecases/floating_dns/cluster2?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) - r.Run(`kubectl --kubeconfig=$KUBECONFIG1 apply -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/usecases/floating_dns/cluster1?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl --kubeconfig=$KUBECONFIG3 apply -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/usecases/floating_dns/cluster3?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) + r.Run(`kubectl --kubeconfig=$KUBECONFIG2 apply -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/usecases/floating_dns/cluster2?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) + r.Run(`kubectl --kubeconfig=$KUBECONFIG1 apply -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/usecases/floating_dns/cluster1?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) r.Run(`kubectl --kubeconfig=$KUBECONFIG1 wait --for=condition=ready --timeout=5m pod -l app=dnsutils -n ns-floating-dns`) r.Run(`kubectl --kubeconfig=$KUBECONFIG1 exec pods/dnsutils -c dnsutils -n ns-floating-dns -- nslookup -norec -nodef my.coredns.service`) r.Run(`kubectl --kubeconfig=$KUBECONFIG1 exec pods/dnsutils -c dnsutils -n ns-floating-dns -- ping -c 4 my.coredns.service`) @@ -166,10 +166,10 @@ func (s *Suite) TestFloating_nse_composition() { r.Run(`kubectl --kubeconfig=$KUBECONFIG2 delete ns ns-interdomain-nse-composition`) r.Run(`kubectl --kubeconfig=$KUBECONFIG3 delete ns ns-interdomain-nse-composition`) }) - r.Run(`kubectl --kubeconfig=$KUBECONFIG3 apply -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/usecases/floating_nse_composition/cluster3?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) - r.Run(`kubectl --kubeconfig=$KUBECONFIG2 apply -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/usecases/floating_nse_composition/cluster2?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl --kubeconfig=$KUBECONFIG3 apply -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/usecases/floating_nse_composition/cluster3?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) + r.Run(`kubectl --kubeconfig=$KUBECONFIG2 apply -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/usecases/floating_nse_composition/cluster2?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) r.Run(`kubectl --kubeconfig=$KUBECONFIG2 wait --for=condition=ready --timeout=1m pod -l app=nse-kernel -n ns-interdomain-nse-composition`) - r.Run(`kubectl --kubeconfig=$KUBECONFIG1 apply -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/usecases/floating_nse_composition/cluster1?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl --kubeconfig=$KUBECONFIG1 apply -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/usecases/floating_nse_composition/cluster1?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) r.Run(`kubectl --kubeconfig=$KUBECONFIG1 wait --for=condition=ready --timeout=5m pod -l app=alpine -n ns-interdomain-nse-composition`) r.Run(`kubectl --kubeconfig=$KUBECONFIG1 exec pods/alpine -n ns-interdomain-nse-composition -- ping -c 4 172.16.1.100`) r.Run(`kubectl --kubeconfig=$KUBECONFIG1 exec pods/alpine -n ns-interdomain-nse-composition -- wget -O /dev/null --timeout 5 "172.16.1.100:8080"`) @@ -179,13 +179,13 @@ func (s *Suite) TestFloating_nse_composition() { func (s *Suite) TestFloating_vl3_basic() { r := s.Runner("../deployments-k8s/examples/interdomain/usecases/floating_vl3-basic") s.T().Cleanup(func() { - r.Run(`kubectl --kubeconfig=$KUBECONFIG3 delete -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/usecases/floating_vl3-basic/cluster3?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) - r.Run(`kubectl --kubeconfig=$KUBECONFIG2 delete -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/usecases/floating_vl3-basic/cluster2?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) - r.Run(`kubectl --kubeconfig=$KUBECONFIG1 delete -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/usecases/floating_vl3-basic/cluster1?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl --kubeconfig=$KUBECONFIG3 delete -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/usecases/floating_vl3-basic/cluster3?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) + r.Run(`kubectl --kubeconfig=$KUBECONFIG2 delete -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/usecases/floating_vl3-basic/cluster2?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) + r.Run(`kubectl --kubeconfig=$KUBECONFIG1 delete -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/usecases/floating_vl3-basic/cluster1?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) }) - r.Run(`kubectl --kubeconfig=$KUBECONFIG3 apply -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/usecases/floating_vl3-basic/cluster3?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) - r.Run(`kubectl --kubeconfig=$KUBECONFIG1 apply -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/usecases/floating_vl3-basic/cluster1?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) - r.Run(`kubectl --kubeconfig=$KUBECONFIG2 apply -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/usecases/floating_vl3-basic/cluster2?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl --kubeconfig=$KUBECONFIG3 apply -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/usecases/floating_vl3-basic/cluster3?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) + r.Run(`kubectl --kubeconfig=$KUBECONFIG1 apply -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/usecases/floating_vl3-basic/cluster1?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) + r.Run(`kubectl --kubeconfig=$KUBECONFIG2 apply -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/usecases/floating_vl3-basic/cluster2?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) r.Run(`kubectl --kubeconfig=$KUBECONFIG2 wait --for=condition=ready --timeout=1m pod -l app=alpine -n ns-floating-vl3-basic`) r.Run(`kubectl --kubeconfig=$KUBECONFIG1 wait --for=condition=ready --timeout=1m pod -l app=alpine -n ns-floating-vl3-basic`) r.Run(`ipAddr2=$(kubectl --kubeconfig=$KUBECONFIG2 exec -n ns-floating-vl3-basic pods/alpine -- ifconfig nsm-1)` + "\n" + `ipAddr2=$(echo $ipAddr2 | grep -Eo 'inet addr:[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}'| cut -c 11-)` + "\n" + `kubectl --kubeconfig=$KUBECONFIG1 exec pods/alpine -n ns-floating-vl3-basic -- ping -c 4 $ipAddr2`) @@ -196,14 +196,14 @@ func (s *Suite) TestFloating_vl3_basic() { func (s *Suite) TestFloating_vl3_dns() { r := s.Runner("../deployments-k8s/examples/interdomain/usecases/floating_vl3-dns") s.T().Cleanup(func() { - r.Run(`kubectl --kubeconfig=$KUBECONFIG3 delete -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/usecases/floating_vl3-dns/cluster3?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) - r.Run(`kubectl --kubeconfig=$KUBECONFIG2 delete -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/usecases/floating_vl3-dns/cluster2?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) - r.Run(`kubectl --kubeconfig=$KUBECONFIG1 delete -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/usecases/floating_vl3-dns/cluster1?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl --kubeconfig=$KUBECONFIG3 delete -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/usecases/floating_vl3-dns/cluster3?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) + r.Run(`kubectl --kubeconfig=$KUBECONFIG2 delete -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/usecases/floating_vl3-dns/cluster2?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) + r.Run(`kubectl --kubeconfig=$KUBECONFIG1 delete -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/usecases/floating_vl3-dns/cluster1?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) }) - r.Run(`kubectl --kubeconfig=$KUBECONFIG3 apply -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/usecases/floating_vl3-dns/cluster3?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) - r.Run(`kubectl --kubeconfig=$KUBECONFIG1 apply -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/usecases/floating_vl3-dns/cluster1?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl --kubeconfig=$KUBECONFIG3 apply -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/usecases/floating_vl3-dns/cluster3?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) + r.Run(`kubectl --kubeconfig=$KUBECONFIG1 apply -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/usecases/floating_vl3-dns/cluster1?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) r.Run(`kubectl --kubeconfig=$KUBECONFIG1 wait --for=condition=ready --timeout=5m pod -l app=alpine -n ns-floating-vl3-dns`) - r.Run(`kubectl --kubeconfig=$KUBECONFIG2 apply -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/usecases/floating_vl3-dns/cluster2?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl --kubeconfig=$KUBECONFIG2 apply -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/usecases/floating_vl3-dns/cluster2?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) r.Run(`kubectl --kubeconfig=$KUBECONFIG2 wait --for=condition=ready --timeout=5m pod -l app=alpine -n ns-floating-vl3-dns`) r.Run(`nsc1=$(kubectl --kubeconfig=$KUBECONFIG1 get pods -l app=alpine -n ns-floating-vl3-dns --template '{{range .items}}{{.metadata.name}}{{"\n"}}{{end}}')`) r.Run(`nse1=$(kubectl --kubeconfig=$KUBECONFIG1 get pods -l app=nse-vl3-vpp -n ns-floating-vl3-dns --template '{{range .items}}{{.metadata.name}}{{"\n"}}{{end}}')`) @@ -219,13 +219,13 @@ func (s *Suite) TestFloating_vl3_dns() { func (s *Suite) TestFloating_vl3_scale_from_zero() { r := s.Runner("../deployments-k8s/examples/interdomain/usecases/floating_vl3-scale-from-zero") s.T().Cleanup(func() { - r.Run(`kubectl --kubeconfig=$KUBECONFIG3 delete -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/usecases/floating_vl3-scale-from-zero/cluster3?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) - r.Run(`kubectl --kubeconfig=$KUBECONFIG2 delete -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/usecases/floating_vl3-scale-from-zero/cluster2?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) - r.Run(`kubectl --kubeconfig=$KUBECONFIG1 delete -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/usecases/floating_vl3-scale-from-zero/cluster1?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl --kubeconfig=$KUBECONFIG3 delete -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/usecases/floating_vl3-scale-from-zero/cluster3?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) + r.Run(`kubectl --kubeconfig=$KUBECONFIG2 delete -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/usecases/floating_vl3-scale-from-zero/cluster2?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) + r.Run(`kubectl --kubeconfig=$KUBECONFIG1 delete -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/usecases/floating_vl3-scale-from-zero/cluster1?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) }) - r.Run(`kubectl --kubeconfig=$KUBECONFIG3 apply -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/usecases/floating_vl3-scale-from-zero/cluster3?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) - r.Run(`kubectl --kubeconfig=$KUBECONFIG1 apply -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/usecases/floating_vl3-scale-from-zero/cluster1?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) - r.Run(`kubectl --kubeconfig=$KUBECONFIG2 apply -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/usecases/floating_vl3-scale-from-zero/cluster2?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl --kubeconfig=$KUBECONFIG3 apply -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/usecases/floating_vl3-scale-from-zero/cluster3?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) + r.Run(`kubectl --kubeconfig=$KUBECONFIG1 apply -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/usecases/floating_vl3-scale-from-zero/cluster1?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) + r.Run(`kubectl --kubeconfig=$KUBECONFIG2 apply -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/usecases/floating_vl3-scale-from-zero/cluster2?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) r.Run(`kubectl --kubeconfig=$KUBECONFIG2 wait --for=condition=ready --timeout=1m pod -l app=alpine -n ns-floating-vl3-scale-from-zero`) r.Run(`kubectl --kubeconfig=$KUBECONFIG1 wait --for=condition=ready --timeout=1m pod -l app=alpine -n ns-floating-vl3-scale-from-zero`) r.Run(`ipAddr2=$(kubectl --kubeconfig=$KUBECONFIG2 exec -n ns-floating-vl3-scale-from-zero pods/alpine -- ifconfig nsm-1)` + "\n" + `ipAddr2=$(echo $ipAddr2 | grep -Eo 'inet addr:[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}'| cut -c 11-)` + "\n" + `kubectl --kubeconfig=$KUBECONFIG1 exec pods/alpine -n ns-floating-vl3-scale-from-zero -- ping -c 4 $ipAddr2`) @@ -239,9 +239,9 @@ func (s *Suite) TestInterdomain_Kernel2Ethernet2Kernel() { r.Run(`kubectl --kubeconfig=$KUBECONFIG1 delete ns ns-interdomain-kernel2ethernet2kernel`) r.Run(`kubectl --kubeconfig=$KUBECONFIG2 delete ns ns-interdomain-kernel2ethernet2kernel`) }) - r.Run(`kubectl --kubeconfig=$KUBECONFIG2 apply -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/usecases/interdomain_Kernel2Ethernet2Kernel/cluster2?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl --kubeconfig=$KUBECONFIG2 apply -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/usecases/interdomain_Kernel2Ethernet2Kernel/cluster2?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) r.Run(`kubectl --kubeconfig=$KUBECONFIG2 wait --for=condition=ready --timeout=1m pod -l app=nse-kernel -n ns-interdomain-kernel2ethernet2kernel`) - r.Run(`kubectl --kubeconfig=$KUBECONFIG1 apply -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/usecases/interdomain_Kernel2Ethernet2Kernel/cluster1?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl --kubeconfig=$KUBECONFIG1 apply -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/usecases/interdomain_Kernel2Ethernet2Kernel/cluster1?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) r.Run(`kubectl --kubeconfig=$KUBECONFIG1 wait --for=condition=ready --timeout=5m pod -l app=alpine -n ns-interdomain-kernel2ethernet2kernel`) r.Run(`kubectl --kubeconfig=$KUBECONFIG1 exec pods/alpine -n ns-interdomain-kernel2ethernet2kernel -- ping -c 4 172.16.1.2`) r.Run(`kubectl --kubeconfig=$KUBECONFIG2 exec deployments/nse-kernel -n ns-interdomain-kernel2ethernet2kernel -- ping -c 4 172.16.1.3`) @@ -252,9 +252,9 @@ func (s *Suite) TestInterdomain_Kernel2IP2Kernel() { r.Run(`kubectl --kubeconfig=$KUBECONFIG1 delete ns ns-interdomain-kernel2ip2kernel`) r.Run(`kubectl --kubeconfig=$KUBECONFIG2 delete ns ns-interdomain-kernel2ip2kernel`) }) - r.Run(`kubectl --kubeconfig=$KUBECONFIG2 apply -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/usecases/interdomain_Kernel2IP2Kernel/cluster2?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl --kubeconfig=$KUBECONFIG2 apply -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/usecases/interdomain_Kernel2IP2Kernel/cluster2?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) r.Run(`kubectl --kubeconfig=$KUBECONFIG2 wait --for=condition=ready --timeout=1m pod -l app=nse-kernel -n ns-interdomain-kernel2ip2kernel`) - r.Run(`kubectl --kubeconfig=$KUBECONFIG1 apply -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/usecases/interdomain_Kernel2IP2Kernel/cluster1?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl --kubeconfig=$KUBECONFIG1 apply -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/usecases/interdomain_Kernel2IP2Kernel/cluster1?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) r.Run(`kubectl --kubeconfig=$KUBECONFIG1 wait --for=condition=ready --timeout=5m pod -l app=alpine -n ns-interdomain-kernel2ip2kernel`) r.Run(`kubectl --kubeconfig=$KUBECONFIG1 exec pods/alpine -n ns-interdomain-kernel2ip2kernel -- ping -c 4 172.16.1.2`) r.Run(`kubectl --kubeconfig=$KUBECONFIG2 exec deployments/nse-kernel -n ns-interdomain-kernel2ip2kernel -- ping -c 4 172.16.1.3`) @@ -265,8 +265,8 @@ func (s *Suite) TestInterdomain_dns() { r.Run(`kubectl --kubeconfig=$KUBECONFIG1 delete ns ns-interdomain-dns`) r.Run(`kubectl --kubeconfig=$KUBECONFIG2 delete ns ns-interdomain-dns`) }) - r.Run(`kubectl --kubeconfig=$KUBECONFIG2 apply -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/usecases/interdomain_dns/cluster2?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) - r.Run(`kubectl --kubeconfig=$KUBECONFIG1 apply -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/usecases/interdomain_dns/cluster1?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl --kubeconfig=$KUBECONFIG2 apply -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/usecases/interdomain_dns/cluster2?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) + r.Run(`kubectl --kubeconfig=$KUBECONFIG1 apply -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/usecases/interdomain_dns/cluster1?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) r.Run(`kubectl --kubeconfig=$KUBECONFIG1 wait --for=condition=ready --timeout=5m pod -l app=dnsutils -n ns-interdomain-dns`) r.Run(`kubectl --kubeconfig=$KUBECONFIG1 exec pods/dnsutils -c dnsutils -n ns-interdomain-dns -- nslookup -norec -nodef my.coredns.service`) r.Run(`kubectl --kubeconfig=$KUBECONFIG1 exec pods/dnsutils -c dnsutils -n ns-interdomain-dns -- ping -c 4 my.coredns.service`) diff --git a/suites/interdomain/suites/heal/suite.gen.go b/suites/interdomain/suites/heal/suite.gen.go index 5242239788..8eb920c901 100755 --- a/suites/interdomain/suites/heal/suite.gen.go +++ b/suites/interdomain/suites/heal/suite.gen.go @@ -31,10 +31,10 @@ func (s *Suite) TestHeal_floating_forwarder_death() { r.Run(`kubectl --kubeconfig=$KUBECONFIG2 delete ns ns-floating-forwarder-death`) r.Run(`kubectl --kubeconfig=$KUBECONFIG3 delete ns ns-floating-forwarder-death`) }) - r.Run(`kubectl --kubeconfig=$KUBECONFIG3 apply -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/usecases/heal_floating-forwarder-death/cluster3?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) - r.Run(`kubectl --kubeconfig=$KUBECONFIG2 apply -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/usecases/heal_floating-forwarder-death/cluster2?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl --kubeconfig=$KUBECONFIG3 apply -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/usecases/heal_floating-forwarder-death/cluster3?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) + r.Run(`kubectl --kubeconfig=$KUBECONFIG2 apply -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/usecases/heal_floating-forwarder-death/cluster2?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) r.Run(`kubectl --kubeconfig=$KUBECONFIG2 wait --for=condition=ready --timeout=1m pod -l app=nse-kernel -n ns-floating-forwarder-death`) - r.Run(`kubectl --kubeconfig=$KUBECONFIG1 apply -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/usecases/heal_floating-forwarder-death/cluster1?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl --kubeconfig=$KUBECONFIG1 apply -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/usecases/heal_floating-forwarder-death/cluster1?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) r.Run(`kubectl --kubeconfig=$KUBECONFIG1 wait --for=condition=ready --timeout=5m pod -l app=alpine -n ns-floating-forwarder-death`) r.Run(`kubectl --kubeconfig=$KUBECONFIG1 exec pods/alpine -n ns-floating-forwarder-death -- ping -c 4 172.16.1.2`) r.Run(`kubectl --kubeconfig=$KUBECONFIG2 exec deployments/nse-kernel -n ns-floating-forwarder-death -- ping -c 4 172.16.1.3`) @@ -53,10 +53,10 @@ func (s *Suite) TestHeal_floating_nse_death() { r.Run(`kubectl --kubeconfig=$KUBECONFIG2 delete ns ns-floating-nse-death`) r.Run(`kubectl --kubeconfig=$KUBECONFIG3 delete ns ns-floating-nse-death`) }) - r.Run(`kubectl --kubeconfig=$KUBECONFIG3 apply -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/usecases/heal_floating-nse-death/cluster3?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) - r.Run(`kubectl --kubeconfig=$KUBECONFIG2 apply -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/usecases/heal_floating-nse-death/cluster2?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl --kubeconfig=$KUBECONFIG3 apply -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/usecases/heal_floating-nse-death/cluster3?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) + r.Run(`kubectl --kubeconfig=$KUBECONFIG2 apply -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/usecases/heal_floating-nse-death/cluster2?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) r.Run(`kubectl --kubeconfig=$KUBECONFIG2 wait --for=condition=ready --timeout=1m pod -l app=nse-kernel -n ns-floating-nse-death`) - r.Run(`kubectl --kubeconfig=$KUBECONFIG1 apply -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/usecases/heal_floating-nse-death/cluster1?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl --kubeconfig=$KUBECONFIG1 apply -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/usecases/heal_floating-nse-death/cluster1?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) r.Run(`kubectl --kubeconfig=$KUBECONFIG1 wait --for=condition=ready --timeout=5m pod -l app=alpine -n ns-floating-nse-death`) r.Run(`kubectl --kubeconfig=$KUBECONFIG1 exec pods/alpine -n ns-floating-nse-death -- ping -c 4 172.16.1.2`) r.Run(`kubectl --kubeconfig=$KUBECONFIG2 exec deployments/nse-kernel -n ns-floating-nse-death -- ping -c 4 172.16.1.3`) @@ -73,19 +73,19 @@ func (s *Suite) TestHeal_floating_nsm_system_death() { r.Run(`kubectl --kubeconfig=$KUBECONFIG2 delete ns ns-floating-nsm-system-death`) r.Run(`kubectl --kubeconfig=$KUBECONFIG3 delete ns ns-floating-nsm-system-death`) }) - r.Run(`kubectl --kubeconfig=$KUBECONFIG3 apply -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/usecases/heal_floating-nsm-system-death/cluster3?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) - r.Run(`kubectl --kubeconfig=$KUBECONFIG2 apply -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/usecases/heal_floating-nsm-system-death/cluster2?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl --kubeconfig=$KUBECONFIG3 apply -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/usecases/heal_floating-nsm-system-death/cluster3?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) + r.Run(`kubectl --kubeconfig=$KUBECONFIG2 apply -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/usecases/heal_floating-nsm-system-death/cluster2?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) r.Run(`kubectl --kubeconfig=$KUBECONFIG2 wait --for=condition=ready --timeout=1m pod -l app=nse-kernel -n ns-floating-nsm-system-death`) - r.Run(`kubectl --kubeconfig=$KUBECONFIG1 apply -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/usecases/heal_floating-nsm-system-death/cluster1?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl --kubeconfig=$KUBECONFIG1 apply -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/usecases/heal_floating-nsm-system-death/cluster1?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) r.Run(`kubectl --kubeconfig=$KUBECONFIG1 wait --for=condition=ready --timeout=5m pod -l app=alpine -n ns-floating-nsm-system-death`) r.Run(`kubectl --kubeconfig=$KUBECONFIG1 exec pods/alpine -n ns-floating-nsm-system-death -- ping -c 4 172.16.1.2`) r.Run(`kubectl --kubeconfig=$KUBECONFIG2 exec deployments/nse-kernel -n ns-floating-nsm-system-death -- ping -c 4 172.16.1.3`) r.Run(`kubectl --kubeconfig=$KUBECONFIG1 delete mutatingwebhookconfiguration nsm-mutating-webhook` + "\n" + `kubectl --kubeconfig=$KUBECONFIG1 delete ns nsm-system`) r.Run(`kubectl --kubeconfig=$KUBECONFIG2 delete mutatingwebhookconfiguration nsm-mutating-webhook` + "\n" + `kubectl --kubeconfig=$KUBECONFIG2 delete ns nsm-system`) r.Run(`kubectl --kubeconfig=$KUBECONFIG3 delete ns nsm-system`) - r.Run(`kubectl --kubeconfig=$KUBECONFIG1 apply -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/three_cluster_configuration/basic/cluster1?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) - r.Run(`kubectl --kubeconfig=$KUBECONFIG2 apply -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/three_cluster_configuration/basic/cluster2?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) - r.Run(`kubectl --kubeconfig=$KUBECONFIG3 apply -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/three_cluster_configuration/basic/cluster3?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl --kubeconfig=$KUBECONFIG1 apply -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/three_cluster_configuration/basic/cluster1?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) + r.Run(`kubectl --kubeconfig=$KUBECONFIG2 apply -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/three_cluster_configuration/basic/cluster2?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) + r.Run(`kubectl --kubeconfig=$KUBECONFIG3 apply -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/three_cluster_configuration/basic/cluster3?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) r.Run(`kubectl --kubeconfig=$KUBECONFIG1 get services nsmgr-proxy -n nsm-system -o go-template='{{index (index (index (index .status "loadBalancer") "ingress") 0) "ip"}}'` + "\n" + `WH=$(kubectl --kubeconfig=$KUBECONFIG1 get pods -l app=admission-webhook-k8s -n nsm-system --template '{{range .items}}{{.metadata.name}}{{"\n"}}{{end}}')` + "\n" + `kubectl --kubeconfig=$KUBECONFIG1 wait --for=condition=ready --timeout=1m pod ${WH} -n nsm-system`) r.Run(`kubectl --kubeconfig=$KUBECONFIG2 get services nsmgr-proxy -n nsm-system -o go-template='{{index (index (index (index .status "loadBalancer") "ingress") 0) "ip"}}'` + "\n" + `WH=$(kubectl --kubeconfig=$KUBECONFIG2 get pods -l app=admission-webhook-k8s -n nsm-system --template '{{range .items}}{{.metadata.name}}{{"\n"}}{{end}}')` + "\n" + `kubectl --kubeconfig=$KUBECONFIG2 wait --for=condition=ready --timeout=1m pod ${WH} -n nsm-system`) r.Run(`kubectl --kubeconfig=$KUBECONFIG3 get services registry -n nsm-system -o go-template='{{index (index (index (index .status "loadBalancer") "ingress") 0) "ip"}}'`) @@ -98,9 +98,9 @@ func (s *Suite) TestHeal_interdomain_nsmgr_death() { r.Run(`kubectl --kubeconfig=$KUBECONFIG1 delete ns ns-interdomain-nsmgr-death`) r.Run(`kubectl --kubeconfig=$KUBECONFIG2 delete ns ns-interdomain-nsmgr-death`) }) - r.Run(`kubectl --kubeconfig=$KUBECONFIG2 apply -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/usecases/heal_interdomain-nsmgr-death/cluster2?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl --kubeconfig=$KUBECONFIG2 apply -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/usecases/heal_interdomain-nsmgr-death/cluster2?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) r.Run(`kubectl --kubeconfig=$KUBECONFIG2 wait --for=condition=ready --timeout=1m pod -l app=nse-kernel -n ns-interdomain-nsmgr-death`) - r.Run(`kubectl --kubeconfig=$KUBECONFIG1 apply -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/usecases/heal_interdomain-nsmgr-death/cluster1?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl --kubeconfig=$KUBECONFIG1 apply -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/usecases/heal_interdomain-nsmgr-death/cluster1?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) r.Run(`kubectl --kubeconfig=$KUBECONFIG1 wait --for=condition=ready --timeout=5m pod -l app=alpine -n ns-interdomain-nsmgr-death`) r.Run(`kubectl --kubeconfig=$KUBECONFIG1 exec pods/alpine -n ns-interdomain-nsmgr-death -- ping -c 4 172.16.1.2`) r.Run(`kubectl --kubeconfig=$KUBECONFIG2 exec deployments/nse-kernel -n ns-interdomain-nsmgr-death -- ping -c 4 172.16.1.3`) @@ -118,9 +118,9 @@ func (s *Suite) TestHeal_interdomain_proxy_nsmgr_death() { r.Run(`kubectl --kubeconfig=$KUBECONFIG1 delete ns ns-interdomain-proxy-nsmgr-death`) r.Run(`kubectl --kubeconfig=$KUBECONFIG2 delete ns ns-interdomain-proxy-nsmgr-death`) }) - r.Run(`kubectl --kubeconfig=$KUBECONFIG2 apply -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/usecases/heal_interdomain-proxy-nsmgr-death/cluster2?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl --kubeconfig=$KUBECONFIG2 apply -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/usecases/heal_interdomain-proxy-nsmgr-death/cluster2?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) r.Run(`kubectl --kubeconfig=$KUBECONFIG2 wait --for=condition=ready --timeout=1m pod -l app=nse-kernel -n ns-interdomain-proxy-nsmgr-death`) - r.Run(`kubectl --kubeconfig=$KUBECONFIG1 apply -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/usecases/heal_interdomain-proxy-nsmgr-death/cluster1?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl --kubeconfig=$KUBECONFIG1 apply -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/usecases/heal_interdomain-proxy-nsmgr-death/cluster1?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) r.Run(`kubectl --kubeconfig=$KUBECONFIG1 wait --for=condition=ready --timeout=5m pod -l app=alpine -n ns-interdomain-proxy-nsmgr-death`) r.Run(`kubectl --kubeconfig=$KUBECONFIG1 exec pods/alpine -n ns-interdomain-proxy-nsmgr-death -- ping -c 4 172.16.1.2`) r.Run(`kubectl --kubeconfig=$KUBECONFIG2 exec deployments/nse-kernel -n ns-interdomain-proxy-nsmgr-death -- ping -c 4 172.16.1.3`) @@ -138,9 +138,9 @@ func (s *Suite) TestHeal_interdomain_registry_death() { r.Run(`kubectl --kubeconfig=$KUBECONFIG1 delete ns ns-interdomain-registry-death`) r.Run(`kubectl --kubeconfig=$KUBECONFIG2 delete ns ns-interdomain-registry-death`) }) - r.Run(`kubectl --kubeconfig=$KUBECONFIG2 apply -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/usecases/heal_interdomain-registry-death/cluster2?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl --kubeconfig=$KUBECONFIG2 apply -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/usecases/heal_interdomain-registry-death/cluster2?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) r.Run(`kubectl --kubeconfig=$KUBECONFIG2 wait --for=condition=ready --timeout=1m pod -l app=nse-kernel -n ns-interdomain-registry-death`) - r.Run(`kubectl --kubeconfig=$KUBECONFIG1 apply -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/usecases/heal_interdomain-registry-death/cluster1?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl --kubeconfig=$KUBECONFIG1 apply -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/usecases/heal_interdomain-registry-death/cluster1?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) r.Run(`kubectl --kubeconfig=$KUBECONFIG1 wait --for=condition=ready --timeout=5m pod -l app=alpine -n ns-interdomain-registry-death`) r.Run(`kubectl --kubeconfig=$KUBECONFIG1 exec pods/alpine -n ns-interdomain-registry-death -- ping -c 4 172.16.1.2`) r.Run(`kubectl --kubeconfig=$KUBECONFIG2 exec deployments/nse-kernel -n ns-interdomain-registry-death -- ping -c 4 172.16.1.3`) diff --git a/suites/interdomain/suites/ipsec/suite.gen.go b/suites/interdomain/suites/ipsec/suite.gen.go index 5998881bca..819a881f92 100755 --- a/suites/interdomain/suites/ipsec/suite.gen.go +++ b/suites/interdomain/suites/ipsec/suite.gen.go @@ -31,10 +31,10 @@ func (s *Suite) TestFloating_Kernel2IP2Kernel() { r.Run(`kubectl --kubeconfig=$KUBECONFIG2 delete ns ns-floating-kernel2ip2kernel`) r.Run(`kubectl --kubeconfig=$KUBECONFIG3 delete ns ns-floating-kernel2ip2kernel`) }) - r.Run(`kubectl --kubeconfig=$KUBECONFIG3 apply -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/usecases/floating_Kernel2IP2Kernel/cluster3?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) - r.Run(`kubectl --kubeconfig=$KUBECONFIG2 apply -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/usecases/floating_Kernel2IP2Kernel/cluster2?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl --kubeconfig=$KUBECONFIG3 apply -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/usecases/floating_Kernel2IP2Kernel/cluster3?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) + r.Run(`kubectl --kubeconfig=$KUBECONFIG2 apply -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/usecases/floating_Kernel2IP2Kernel/cluster2?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) r.Run(`kubectl --kubeconfig=$KUBECONFIG2 wait --for=condition=ready --timeout=1m pod -l app=nse-kernel -n ns-floating-kernel2ip2kernel`) - r.Run(`kubectl --kubeconfig=$KUBECONFIG1 apply -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/usecases/floating_Kernel2IP2Kernel/cluster1?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl --kubeconfig=$KUBECONFIG1 apply -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/usecases/floating_Kernel2IP2Kernel/cluster1?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) r.Run(`kubectl --kubeconfig=$KUBECONFIG1 wait --for=condition=ready --timeout=5m pod -l app=alpine -n ns-floating-kernel2ip2kernel`) r.Run(`kubectl --kubeconfig=$KUBECONFIG1 exec pods/alpine -n ns-floating-kernel2ip2kernel -- ping -c 4 172.16.1.2`) r.Run(`kubectl --kubeconfig=$KUBECONFIG2 exec deployments/nse-kernel -n ns-floating-kernel2ip2kernel -- ping -c 4 172.16.1.3`) @@ -46,10 +46,10 @@ func (s *Suite) TestFloating_Kernel2IP2Memif() { r.Run(`kubectl --kubeconfig=$KUBECONFIG2 delete ns ns-floating-kernel2ip2memif`) r.Run(`kubectl --kubeconfig=$KUBECONFIG3 delete ns ns-floating-kernel2ip2memif`) }) - r.Run(`kubectl --kubeconfig=$KUBECONFIG3 apply -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/usecases/floating_Kernel2IP2Memif/cluster3?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) - r.Run(`kubectl --kubeconfig=$KUBECONFIG2 apply -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/usecases/floating_Kernel2IP2Memif/cluster2?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl --kubeconfig=$KUBECONFIG3 apply -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/usecases/floating_Kernel2IP2Memif/cluster3?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) + r.Run(`kubectl --kubeconfig=$KUBECONFIG2 apply -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/usecases/floating_Kernel2IP2Memif/cluster2?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) r.Run(`kubectl --kubeconfig=$KUBECONFIG2 wait --for=condition=ready --timeout=2m pod -l app=nse-memif -n ns-floating-kernel2ip2memif`) - r.Run(`kubectl --kubeconfig=$KUBECONFIG1 apply -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/usecases/floating_Kernel2IP2Memif/cluster1?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl --kubeconfig=$KUBECONFIG1 apply -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/usecases/floating_Kernel2IP2Memif/cluster1?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) r.Run(`kubectl --kubeconfig=$KUBECONFIG1 wait --for=condition=ready --timeout=5m pod -l app=alpine -n ns-floating-kernel2ip2memif`) r.Run(`kubectl --kubeconfig=$KUBECONFIG1 exec pods/alpine -n ns-floating-kernel2ip2memif -- ping -c 4 172.16.1.2`) r.Run(`result=$(kubectl --kubeconfig=$KUBECONFIG2 exec deployments/nse-memif -n "ns-floating-kernel2ip2memif" -- vppctl ping 172.16.1.3 repeat 4)` + "\n" + `echo ${result}` + "\n" + `! echo ${result} | grep -E -q "(100% packet loss)|(0 sent)|(no egress interface)"`) @@ -61,10 +61,10 @@ func (s *Suite) TestFloating_Memif2IP2Kernel() { r.Run(`kubectl --kubeconfig=$KUBECONFIG2 delete ns ns-floating-memif2ip2kernel`) r.Run(`kubectl --kubeconfig=$KUBECONFIG3 delete ns ns-floating-memif2ip2kernel`) }) - r.Run(`kubectl --kubeconfig=$KUBECONFIG3 apply -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/usecases/floating_Memif2IP2Kernel/cluster3?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) - r.Run(`kubectl --kubeconfig=$KUBECONFIG2 apply -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/usecases/floating_Memif2IP2Kernel/cluster2?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl --kubeconfig=$KUBECONFIG3 apply -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/usecases/floating_Memif2IP2Kernel/cluster3?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) + r.Run(`kubectl --kubeconfig=$KUBECONFIG2 apply -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/usecases/floating_Memif2IP2Kernel/cluster2?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) r.Run(`kubectl --kubeconfig=$KUBECONFIG2 wait --for=condition=ready --timeout=1m pod -l app=nse-kernel -n ns-floating-memif2ip2kernel`) - r.Run(`kubectl --kubeconfig=$KUBECONFIG1 apply -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/usecases/floating_Memif2IP2Kernel/cluster1?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl --kubeconfig=$KUBECONFIG1 apply -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/usecases/floating_Memif2IP2Kernel/cluster1?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) r.Run(`kubectl --kubeconfig=$KUBECONFIG1 wait --for=condition=ready --timeout=2m pod -l app=nsc-memif -n ns-floating-memif2ip2kernel`) r.Run(`result=$(kubectl --kubeconfig=$KUBECONFIG1 exec deployments/nsc-memif -n "ns-floating-memif2ip2kernel" -- vppctl ping 172.16.1.2 repeat 4)` + "\n" + `echo ${result}` + "\n" + `! echo ${result} | grep -E -q "(100% packet loss)|(0 sent)|(no egress interface)"`) r.Run(`kubectl --kubeconfig=$KUBECONFIG2 exec deployments/nse-kernel -n ns-floating-memif2ip2kernel -- ping -c 4 172.16.1.3`) @@ -76,10 +76,10 @@ func (s *Suite) TestFloating_Memif2IP2Memif() { r.Run(`kubectl --kubeconfig=$KUBECONFIG2 delete ns ns-floating-memif2ip2memif`) r.Run(`kubectl --kubeconfig=$KUBECONFIG3 delete ns ns-floating-memif2ip2memif`) }) - r.Run(`kubectl --kubeconfig=$KUBECONFIG3 apply -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/usecases/floating_Memif2IP2Memif/cluster3?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) - r.Run(`kubectl --kubeconfig=$KUBECONFIG2 apply -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/usecases/floating_Memif2IP2Memif/cluster2?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl --kubeconfig=$KUBECONFIG3 apply -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/usecases/floating_Memif2IP2Memif/cluster3?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) + r.Run(`kubectl --kubeconfig=$KUBECONFIG2 apply -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/usecases/floating_Memif2IP2Memif/cluster2?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) r.Run(`kubectl --kubeconfig=$KUBECONFIG2 wait --for=condition=ready --timeout=2m pod -l app=nse-memif -n ns-floating-memif2ip2memif`) - r.Run(`kubectl --kubeconfig=$KUBECONFIG1 apply -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/usecases/floating_Memif2IP2Memif/cluster1?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl --kubeconfig=$KUBECONFIG1 apply -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/usecases/floating_Memif2IP2Memif/cluster1?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) r.Run(`kubectl --kubeconfig=$KUBECONFIG1 wait --for=condition=ready --timeout=2m pod -l app=nsc-memif -n ns-floating-memif2ip2memif`) r.Run(`result=$(kubectl --kubeconfig=$KUBECONFIG1 exec deployments/nsc-memif -n "ns-floating-memif2ip2memif" -- vppctl ping 172.16.1.2 repeat 4)` + "\n" + `echo ${result}` + "\n" + `! echo ${result} | grep -E -q "(100% packet loss)|(0 sent)|(no egress interface)"`) r.Run(`result=$(kubectl --kubeconfig=$KUBECONFIG2 exec deployments/nse-memif -n "ns-floating-memif2ip2memif" -- vppctl ping 172.16.1.3 repeat 4)` + "\n" + `echo ${result}` + "\n" + `! echo ${result} | grep -E -q "(100% packet loss)|(0 sent)|(no egress interface)"`) @@ -90,9 +90,9 @@ func (s *Suite) TestInterdomain_Kernel2IP2Kernel() { r.Run(`kubectl --kubeconfig=$KUBECONFIG1 delete ns ns-interdomain-kernel2ip2kernel`) r.Run(`kubectl --kubeconfig=$KUBECONFIG2 delete ns ns-interdomain-kernel2ip2kernel`) }) - r.Run(`kubectl --kubeconfig=$KUBECONFIG2 apply -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/usecases/interdomain_Kernel2IP2Kernel/cluster2?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl --kubeconfig=$KUBECONFIG2 apply -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/usecases/interdomain_Kernel2IP2Kernel/cluster2?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) r.Run(`kubectl --kubeconfig=$KUBECONFIG2 wait --for=condition=ready --timeout=1m pod -l app=nse-kernel -n ns-interdomain-kernel2ip2kernel`) - r.Run(`kubectl --kubeconfig=$KUBECONFIG1 apply -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/usecases/interdomain_Kernel2IP2Kernel/cluster1?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl --kubeconfig=$KUBECONFIG1 apply -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/usecases/interdomain_Kernel2IP2Kernel/cluster1?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) r.Run(`kubectl --kubeconfig=$KUBECONFIG1 wait --for=condition=ready --timeout=5m pod -l app=alpine -n ns-interdomain-kernel2ip2kernel`) r.Run(`kubectl --kubeconfig=$KUBECONFIG1 exec pods/alpine -n ns-interdomain-kernel2ip2kernel -- ping -c 4 172.16.1.2`) r.Run(`kubectl --kubeconfig=$KUBECONFIG2 exec deployments/nse-kernel -n ns-interdomain-kernel2ip2kernel -- ping -c 4 172.16.1.3`) diff --git a/suites/interdomain/suites/multiservicemesh/suite.gen.go b/suites/interdomain/suites/multiservicemesh/suite.gen.go index a42cf3aabd..04a423fceb 100755 --- a/suites/interdomain/suites/multiservicemesh/suite.gen.go +++ b/suites/interdomain/suites/multiservicemesh/suite.gen.go @@ -28,7 +28,7 @@ func (s *Suite) TestNsm_consul() { r := s.Runner("../deployments-k8s/examples/interdomain/usecases/nsm_consul") s.T().Cleanup(func() { r.Run(`pkill -f "port-forward"`) - r.Run(`kubectl --kubeconfig=$KUBECONFIG1 delete -f https://raw.githubusercontent.com/networkservicemesh/deployments-k8s/427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2/examples/interdomain/usecases/nsm_consul/server/counting_nsm.yaml` + "\n" + `kubectl --kubeconfig=$KUBECONFIG1 delete -f https://raw.githubusercontent.com/networkservicemesh/deployments-k8s/427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2/examples/interdomain/usecases/nsm_consul/client/dashboard.yaml` + "\n" + `kubectl --kubeconfig=$KUBECONFIG2 delete -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/usecases/nsm_consul/nse-auto-scale-client?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2` + "\n" + `kubectl --kubeconfig=$KUBECONFIG2 delete -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/usecases/nsm_consul/nse-auto-scale-server?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2` + "\n" + `kubectl --kubeconfig=$KUBECONFIG2 delete -f https://raw.githubusercontent.com/networkservicemesh/deployments-k8s/427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2/examples/interdomain/usecases/nsm_consul/service.yaml` + "\n" + `kubectl --kubeconfig=$KUBECONFIG2 delete -f https://raw.githubusercontent.com/networkservicemesh/deployments-k8s/427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2/examples/interdomain/usecases/nsm_consul/server/counting_service.yaml` + "\n" + `kubectl --kubeconfig=$KUBECONFIG2 delete -f https://raw.githubusercontent.com/networkservicemesh/deployments-k8s/427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2/examples/interdomain/usecases/nsm_consul/netsvc.yaml` + "\n" + `kubectl --kubeconfig=$KUBECONFIG2 delete pods --all`) + r.Run(`kubectl --kubeconfig=$KUBECONFIG1 delete -f https://raw.githubusercontent.com/networkservicemesh/deployments-k8s/d07cec788258d07b1c7a1a79bffe89bb174ab732/examples/interdomain/usecases/nsm_consul/server/counting_nsm.yaml` + "\n" + `kubectl --kubeconfig=$KUBECONFIG1 delete -f https://raw.githubusercontent.com/networkservicemesh/deployments-k8s/d07cec788258d07b1c7a1a79bffe89bb174ab732/examples/interdomain/usecases/nsm_consul/client/dashboard.yaml` + "\n" + `kubectl --kubeconfig=$KUBECONFIG2 delete -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/usecases/nsm_consul/nse-auto-scale-client?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732` + "\n" + `kubectl --kubeconfig=$KUBECONFIG2 delete -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/usecases/nsm_consul/nse-auto-scale-server?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732` + "\n" + `kubectl --kubeconfig=$KUBECONFIG2 delete -f https://raw.githubusercontent.com/networkservicemesh/deployments-k8s/d07cec788258d07b1c7a1a79bffe89bb174ab732/examples/interdomain/usecases/nsm_consul/service.yaml` + "\n" + `kubectl --kubeconfig=$KUBECONFIG2 delete -f https://raw.githubusercontent.com/networkservicemesh/deployments-k8s/d07cec788258d07b1c7a1a79bffe89bb174ab732/examples/interdomain/usecases/nsm_consul/server/counting_service.yaml` + "\n" + `kubectl --kubeconfig=$KUBECONFIG2 delete -f https://raw.githubusercontent.com/networkservicemesh/deployments-k8s/d07cec788258d07b1c7a1a79bffe89bb174ab732/examples/interdomain/usecases/nsm_consul/netsvc.yaml` + "\n" + `kubectl --kubeconfig=$KUBECONFIG2 delete pods --all`) r.Run(`consul-k8s uninstall --kubeconfig=$KUBECONFIG2 -auto-approve=true -wipe-data=true`) }) r.Run(`curl -fsSL https://apt.releases.hashicorp.com/gpg | sudo apt-key add -`) @@ -36,18 +36,18 @@ func (s *Suite) TestNsm_consul() { r.Run(`sudo apt-get update && sudo apt-get install -y consul-k8s=0.48.0-1`) r.Run(`consul-k8s version`) r.Run(`consul-k8s install -config-file=helm-consul-values.yaml -set global.image=hashicorp/consul:1.12.0 -auto-approve --kubeconfig=$KUBECONFIG2`) - r.Run(`kubectl --kubeconfig=$KUBECONFIG2 apply -f https://raw.githubusercontent.com/networkservicemesh/deployments-k8s/427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2/examples/interdomain/usecases/nsm_consul/server/counting_service.yaml`) - r.Run(`kubectl --kubeconfig=$KUBECONFIG2 apply -f https://raw.githubusercontent.com/networkservicemesh/deployments-k8s/427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2/examples/interdomain/usecases/nsm_consul/server/counting.yaml`) - r.Run(`kubectl --kubeconfig=$KUBECONFIG2 apply -f https://raw.githubusercontent.com/networkservicemesh/deployments-k8s/427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2/examples/interdomain/usecases/nsm_consul/netsvc.yaml`) - r.Run(`kubectl --kubeconfig=$KUBECONFIG2 apply -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/usecases/nsm_consul/nse-auto-scale-client?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2` + "\n" + `kubectl --kubeconfig=$KUBECONFIG2 apply -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/usecases/nsm_consul/nse-auto-scale-server?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) - r.Run(`kubectl --kubeconfig=$KUBECONFIG2 apply -f https://raw.githubusercontent.com/networkservicemesh/deployments-k8s/427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2/examples/interdomain/usecases/nsm_consul/service.yaml`) - r.Run(`kubectl --kubeconfig=$KUBECONFIG1 apply -f https://raw.githubusercontent.com/networkservicemesh/deployments-k8s/427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2/examples/interdomain/usecases/nsm_consul/client/dashboard.yaml`) + r.Run(`kubectl --kubeconfig=$KUBECONFIG2 apply -f https://raw.githubusercontent.com/networkservicemesh/deployments-k8s/d07cec788258d07b1c7a1a79bffe89bb174ab732/examples/interdomain/usecases/nsm_consul/server/counting_service.yaml`) + r.Run(`kubectl --kubeconfig=$KUBECONFIG2 apply -f https://raw.githubusercontent.com/networkservicemesh/deployments-k8s/d07cec788258d07b1c7a1a79bffe89bb174ab732/examples/interdomain/usecases/nsm_consul/server/counting.yaml`) + r.Run(`kubectl --kubeconfig=$KUBECONFIG2 apply -f https://raw.githubusercontent.com/networkservicemesh/deployments-k8s/d07cec788258d07b1c7a1a79bffe89bb174ab732/examples/interdomain/usecases/nsm_consul/netsvc.yaml`) + r.Run(`kubectl --kubeconfig=$KUBECONFIG2 apply -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/usecases/nsm_consul/nse-auto-scale-client?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732` + "\n" + `kubectl --kubeconfig=$KUBECONFIG2 apply -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/usecases/nsm_consul/nse-auto-scale-server?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) + r.Run(`kubectl --kubeconfig=$KUBECONFIG2 apply -f https://raw.githubusercontent.com/networkservicemesh/deployments-k8s/d07cec788258d07b1c7a1a79bffe89bb174ab732/examples/interdomain/usecases/nsm_consul/service.yaml`) + r.Run(`kubectl --kubeconfig=$KUBECONFIG1 apply -f https://raw.githubusercontent.com/networkservicemesh/deployments-k8s/d07cec788258d07b1c7a1a79bffe89bb174ab732/examples/interdomain/usecases/nsm_consul/client/dashboard.yaml`) r.Run(`kubectl --kubeconfig=$KUBECONFIG1 wait --timeout=10m --for=condition=ready pod -l app=dashboard-nsc`) r.Run(`kubectl --kubeconfig=$KUBECONFIG1 exec pod/dashboard-nsc -c cmd-nsc -- apk add curl`) r.Run(`kubectl --kubeconfig=$KUBECONFIG1 exec pod/dashboard-nsc -c cmd-nsc -- curl counting:9001`) r.Run(`kubectl --kubeconfig=$KUBECONFIG1 port-forward pod/dashboard-nsc 9002:9002 &`) r.Run(`kubectl --kubeconfig=$KUBECONFIG2 delete deploy counting`) - r.Run(`kubectl --kubeconfig=$KUBECONFIG1 apply -f https://raw.githubusercontent.com/networkservicemesh/deployments-k8s/427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2/examples/interdomain/usecases/nsm_consul/server/counting_nsm.yaml`) + r.Run(`kubectl --kubeconfig=$KUBECONFIG1 apply -f https://raw.githubusercontent.com/networkservicemesh/deployments-k8s/d07cec788258d07b1c7a1a79bffe89bb174ab732/examples/interdomain/usecases/nsm_consul/server/counting_nsm.yaml`) r.Run(`kubectl --kubeconfig=$KUBECONFIG1 wait --timeout=5m --for=condition=ready pod -l app=counting`) r.Run(`kubectl --kubeconfig=$KUBECONFIG1 exec pod/dashboard-nsc -c cmd-nsc -- curl counting:9001`) } @@ -55,11 +55,11 @@ func (s *Suite) TestNsm_consul_vl3() { r := s.Runner("../deployments-k8s/examples/interdomain/usecases/nsm_consul_vl3") s.T().Cleanup(func() { r.Run(`pkill -f "port-forward"`) - r.Run(`kubectl --kubeconfig=$KUBECONFIG1 delete -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/usecases/nsm_consul_vl3/cluster1?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) - r.Run(`kubectl --kubeconfig=$KUBECONFIG2 delete -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/usecases/nsm_consul_vl3/cluster2?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl --kubeconfig=$KUBECONFIG1 delete -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/usecases/nsm_consul_vl3/cluster1?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) + r.Run(`kubectl --kubeconfig=$KUBECONFIG2 delete -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/usecases/nsm_consul_vl3/cluster2?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) }) - r.Run(`kubectl --kubeconfig=$KUBECONFIG1 apply -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/usecases/nsm_consul_vl3/cluster1?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) - r.Run(`kubectl --kubeconfig=$KUBECONFIG2 apply -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/usecases/nsm_consul_vl3/cluster2?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl --kubeconfig=$KUBECONFIG1 apply -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/usecases/nsm_consul_vl3/cluster1?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) + r.Run(`kubectl --kubeconfig=$KUBECONFIG2 apply -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/usecases/nsm_consul_vl3/cluster2?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) r.Run(`kubectl --kubeconfig=$KUBECONFIG1 wait --for=condition=ready --timeout=5m pod -l app=nse-vl3-vpp -n ns-nsm-consul-vl3` + "\n" + `kubectl --kubeconfig=$KUBECONFIG1 wait --for=condition=ready --timeout=5m pod -l app=vl3-ipam -n ns-nsm-consul-vl3` + "\n" + `kubectl --kubeconfig=$KUBECONFIG1 wait --for=condition=ready --timeout=5m pod -l name=control-plane -n ns-nsm-consul-vl3` + "\n" + `kubectl --kubeconfig=$KUBECONFIG1 wait --for=condition=ready --timeout=5m pod counting -n ns-nsm-consul-vl3` + "\n" + `kubectl --kubeconfig=$KUBECONFIG2 wait --for=condition=ready --timeout=5m pod dashboard -n ns-nsm-consul-vl3`) r.Run(`export CP=$(kubectl --kubeconfig=$KUBECONFIG1 get pods -n ns-nsm-consul-vl3 -l name=control-plane --template '{{range .items}}{{.metadata.name}}{{"\n"}}{{end}}')`) r.Run(`ENCRYPTION_KEY=$(kubectl --kubeconfig=$KUBECONFIG1 -n ns-nsm-consul-vl3 exec ${CP} -c ubuntu -- /bin/sh -c 'consul keygen')`) @@ -125,13 +125,13 @@ func (s *Suite) TestNsm_consul_vl3() { func (s *Suite) TestNsm_istio() { r := s.Runner("../deployments-k8s/examples/interdomain/usecases/nsm_istio") s.T().Cleanup(func() { - r.Run(`kubectl --kubeconfig=$KUBECONFIG2 delete -f https://raw.githubusercontent.com/networkservicemesh/deployments-k8s/427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2/examples/interdomain/usecases/nsm_istio/greeting/server.yaml` + "\n" + `kubectl --kubeconfig=$KUBECONFIG2 delete -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/usecases/nsm_istio/nse-auto-scale?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2` + "\n" + `kubectl --kubeconfig=$KUBECONFIG1 delete -f https://raw.githubusercontent.com/networkservicemesh/deployments-k8s/427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2/examples/interdomain/usecases/nsm_istio/greeting/client.yaml` + "\n" + `kubectl --kubeconfig=$KUBECONFIG2 delete -f https://raw.githubusercontent.com/networkservicemesh/deployments-k8s/427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2/examples/interdomain/usecases/nsm_istio/netsvc.yaml` + "\n" + `kubectl --kubeconfig=$KUBECONFIG2 delete ns istio-system` + "\n" + `kubectl --kubeconfig=$KUBECONFIG2 label namespace default istio-injection-` + "\n" + `kubectl --kubeconfig=$KUBECONFIG2 delete pods --all`) + r.Run(`kubectl --kubeconfig=$KUBECONFIG2 delete -f https://raw.githubusercontent.com/networkservicemesh/deployments-k8s/d07cec788258d07b1c7a1a79bffe89bb174ab732/examples/interdomain/usecases/nsm_istio/greeting/server.yaml` + "\n" + `kubectl --kubeconfig=$KUBECONFIG2 delete -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/usecases/nsm_istio/nse-auto-scale?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732` + "\n" + `kubectl --kubeconfig=$KUBECONFIG1 delete -f https://raw.githubusercontent.com/networkservicemesh/deployments-k8s/d07cec788258d07b1c7a1a79bffe89bb174ab732/examples/interdomain/usecases/nsm_istio/greeting/client.yaml` + "\n" + `kubectl --kubeconfig=$KUBECONFIG2 delete -f https://raw.githubusercontent.com/networkservicemesh/deployments-k8s/d07cec788258d07b1c7a1a79bffe89bb174ab732/examples/interdomain/usecases/nsm_istio/netsvc.yaml` + "\n" + `kubectl --kubeconfig=$KUBECONFIG2 delete ns istio-system` + "\n" + `kubectl --kubeconfig=$KUBECONFIG2 label namespace default istio-injection-` + "\n" + `kubectl --kubeconfig=$KUBECONFIG2 delete pods --all`) }) r.Run(`curl -sL https://istio.io/downloadIstioctl | sh -` + "\n" + `export PATH=$PATH:$HOME/.istioctl/bin` + "\n" + `istioctl install --readiness-timeout 10m0s --set profile=minimal -y --kubeconfig=$KUBECONFIG2` + "\n" + `istioctl --kubeconfig=$KUBECONFIG2 proxy-status`) - r.Run(`kubectl --kubeconfig=$KUBECONFIG2 apply -f https://raw.githubusercontent.com/networkservicemesh/deployments-k8s/427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2/examples/interdomain/usecases/nsm_istio/netsvc.yaml`) - r.Run(`kubectl --kubeconfig=$KUBECONFIG1 apply -f https://raw.githubusercontent.com/networkservicemesh/deployments-k8s/427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2/examples/interdomain/usecases/nsm_istio/greeting/client.yaml`) - r.Run(`kubectl --kubeconfig=$KUBECONFIG2 apply -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/usecases/nsm_istio/nse-auto-scale?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) - r.Run(`kubectl --kubeconfig=$KUBECONFIG2 label namespace default istio-injection=enabled` + "\n" + `kubectl --kubeconfig=$KUBECONFIG2 apply -f https://raw.githubusercontent.com/networkservicemesh/deployments-k8s/427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2/examples/interdomain/usecases/nsm_istio/greeting/server.yaml`) + r.Run(`kubectl --kubeconfig=$KUBECONFIG2 apply -f https://raw.githubusercontent.com/networkservicemesh/deployments-k8s/d07cec788258d07b1c7a1a79bffe89bb174ab732/examples/interdomain/usecases/nsm_istio/netsvc.yaml`) + r.Run(`kubectl --kubeconfig=$KUBECONFIG1 apply -f https://raw.githubusercontent.com/networkservicemesh/deployments-k8s/d07cec788258d07b1c7a1a79bffe89bb174ab732/examples/interdomain/usecases/nsm_istio/greeting/client.yaml`) + r.Run(`kubectl --kubeconfig=$KUBECONFIG2 apply -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/usecases/nsm_istio/nse-auto-scale?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) + r.Run(`kubectl --kubeconfig=$KUBECONFIG2 label namespace default istio-injection=enabled` + "\n" + `kubectl --kubeconfig=$KUBECONFIG2 apply -f https://raw.githubusercontent.com/networkservicemesh/deployments-k8s/d07cec788258d07b1c7a1a79bffe89bb174ab732/examples/interdomain/usecases/nsm_istio/greeting/server.yaml`) r.Run(`kubectl --kubeconfig=$KUBECONFIG1 wait --timeout=5m --for=condition=ready pod -l app=alpine`) r.Run(`kubectl --kubeconfig=$KUBECONFIG1 exec deploy/alpine -c cmd-nsc -- apk add curl`) r.Run(`kubectl --kubeconfig=$KUBECONFIG1 exec deploy/alpine -c cmd-nsc -- curl -s greeting.default:9080 | grep -o "hello world from istio"`) @@ -141,16 +141,16 @@ func (s *Suite) TestNsm_kuma_universal_vl3() { s.T().Cleanup(func() { r.Run(`pkill -f "port-forward"` + "\n" + `kubectl --kubeconfig=$KUBECONFIG1 delete ns kuma-system kuma-demo ns-dns-vl3` + "\n" + `kubectl --kubeconfig=$KUBECONFIG2 delete ns kuma-demo` + "\n" + `rm tls.crt tls.key ca.crt kustomization.yaml control-plane.yaml` + "\n" + `rm -rf kuma-1.7.0`) }) - r.Run(`kubectl --kubeconfig=$KUBECONFIG1 apply -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/usecases/nsm_kuma_universal_vl3/vl3-dns?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2` + "\n" + `kubectl --kubeconfig=$KUBECONFIG1 -n ns-dns-vl3 wait --for=condition=ready --timeout=5m pod -l app=vl3-ipam`) + r.Run(`kubectl --kubeconfig=$KUBECONFIG1 apply -k https://github.com/networkservicemesh/deployments-k8s/examples/interdomain/usecases/nsm_kuma_universal_vl3/vl3-dns?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732` + "\n" + `kubectl --kubeconfig=$KUBECONFIG1 -n ns-dns-vl3 wait --for=condition=ready --timeout=5m pod -l app=vl3-ipam`) r.Run(`curl -L https://kuma.io/installer.sh | VERSION=1.7.0 ARCH=amd64 bash -` + "\n" + `export PATH=$PWD/kuma-1.7.0/bin:$PATH`) r.Run(`kumactl generate tls-certificate --hostname=control-plane-kuma.my-vl3-network --hostname=kuma-control-plane.kuma-system.svc --type=server --key-file=./tls.key --cert-file=./tls.crt`) r.Run(`cp ./tls.crt ./ca.crt`) - r.Run(`kubectl --kubeconfig=$KUBECONFIG1 apply -f https://raw.githubusercontent.com/networkservicemesh/deployments-k8s/427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2/examples/interdomain/usecases/nsm_kuma_universal_vl3/namespace.yaml` + "\n" + `kubectl --kubeconfig=$KUBECONFIG1 create secret generic general-tls-certs --namespace=kuma-system --from-file=./tls.key --from-file=./tls.crt --from-file=./ca.crt`) + r.Run(`kubectl --kubeconfig=$KUBECONFIG1 apply -f https://raw.githubusercontent.com/networkservicemesh/deployments-k8s/d07cec788258d07b1c7a1a79bffe89bb174ab732/examples/interdomain/usecases/nsm_kuma_universal_vl3/namespace.yaml` + "\n" + `kubectl --kubeconfig=$KUBECONFIG1 create secret generic general-tls-certs --namespace=kuma-system --from-file=./tls.key --from-file=./tls.crt --from-file=./ca.crt`) r.Run(`kumactl install control-plane --tls-general-secret=general-tls-certs --tls-general-ca-bundle=$(cat ./ca.crt | base64) > control-plane.yaml`) - r.Run(`cat > kustomization.yaml < kustomization.yaml < docker-compose.override.yaml < docker-compose.override.yaml </dev/null 2>&1 & \` + "\n" + `'`) r.Run(`kubectl delete ns ns-kernel2ethernet2kernel-vfio2noop`) }) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/use-cases/Kernel2Ethernet2Kernel_Vfio2Noop?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/use-cases/Kernel2Ethernet2Kernel_Vfio2Noop?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=alpine -n ns-kernel2ethernet2kernel-vfio2noop`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nse-kernel -n ns-kernel2ethernet2kernel-vfio2noop`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nsc-vfio -n ns-kernel2ethernet2kernel-vfio2noop`) @@ -62,7 +62,7 @@ func (s *Suite) TestKernel2Kernel() { s.T().Cleanup(func() { r.Run(`kubectl delete ns ns-kernel2kernel`) }) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/use-cases/Kernel2Kernel?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/use-cases/Kernel2Kernel?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=alpine -n ns-kernel2kernel`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nse-kernel -n ns-kernel2kernel`) r.Run(`kubectl exec pods/alpine -n ns-kernel2kernel -- ping -c 4 172.16.1.100`) @@ -74,7 +74,7 @@ func (s *Suite) TestKernel2Kernel_Vfio2Noop() { r.Run(`kubectl -n ns-kernel2kernel-vfio2noop exec deployments/nse-vfio --container ponger -- /bin/bash -c '\` + "\n" + ` (sleep 10 && kill $(pgrep "pingpong")) 1>/dev/null 2>&1 & \` + "\n" + `'`) r.Run(`kubectl delete ns ns-kernel2kernel-vfio2noop`) }) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/use-cases/Kernel2Kernel_Vfio2Noop?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/use-cases/Kernel2Kernel_Vfio2Noop?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=alpine -n ns-kernel2kernel-vfio2noop`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nse-kernel -n ns-kernel2kernel-vfio2noop`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nsc-vfio -n ns-kernel2kernel-vfio2noop`) @@ -89,7 +89,7 @@ func (s *Suite) TestMemif2Memif() { s.T().Cleanup(func() { r.Run(`kubectl delete ns ns-memif2memif`) }) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/use-cases/Memif2Memif?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/use-cases/Memif2Memif?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nsc-memif -n ns-memif2memif`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nse-memif -n ns-memif2memif`) r.Run(`result=$(kubectl exec deployments/nsc-memif -n "ns-memif2memif" -- vppctl ping 172.16.1.100 repeat 4)` + "\n" + `echo ${result}` + "\n" + `! echo ${result} | grep -E -q "(100% packet loss)|(0 sent)|(no egress interface)"`) @@ -100,10 +100,10 @@ func (s *Suite) TestSriovKernel2Noop() { s.T().Cleanup(func() { r.Run(`kubectl delete ns ns-sriov-kernel2noop`) }) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/use-cases/SriovKernel2Noop/ponger?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/use-cases/SriovKernel2Noop/ponger?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) r.Run(`kubectl -n ns-sriov-kernel2noop wait --for=condition=ready --timeout=1m pod -l app=ponger`) r.Run(`kubectl -n ns-sriov-kernel2noop exec deploy/ponger -- ip a | grep "172.16.1.100"`) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/use-cases/SriovKernel2Noop?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/use-cases/SriovKernel2Noop?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) r.Run(`kubectl -n ns-sriov-kernel2noop wait --for=condition=ready --timeout=1m pod -l app=nsc-kernel`) r.Run(`kubectl -n ns-sriov-kernel2noop wait --for=condition=ready --timeout=1m pod -l app=nse-noop`) r.Run(`kubectl -n ns-sriov-kernel2noop exec deployments/nsc-kernel -- ping -c 4 172.16.1.100`) @@ -114,7 +114,7 @@ func (s *Suite) TestVfio2Noop() { r.Run(`kubectl -n ns-vfio2noop exec deployments/nse-vfio --container ponger -- /bin/bash -c '\` + "\n" + ` (sleep 10 && kill $(pgrep "pingpong")) 1>/dev/null 2>&1 & \` + "\n" + `'`) r.Run(`kubectl delete ns ns-vfio2noop`) }) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/use-cases/Vfio2Noop?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/use-cases/Vfio2Noop?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) r.Run(`kubectl -n ns-vfio2noop wait --for=condition=ready --timeout=1m pod -l app=nsc-vfio`) r.Run(`kubectl -n ns-vfio2noop wait --for=condition=ready --timeout=1m pod -l app=nse-vfio`) r.Run(`function dpdk_ping() {` + "\n" + ` err_file="$(mktemp)"` + "\n" + ` trap 'rm -f "${err_file}"' RETURN` + "\n" + `` + "\n" + ` client_mac="$1"` + "\n" + ` server_mac="$2"` + "\n" + `` + "\n" + ` command="/root/dpdk-pingpong/build/pingpong \` + "\n" + ` --no-huge \` + "\n" + ` -- \` + "\n" + ` -n 500 \` + "\n" + ` -c \` + "\n" + ` -C ${client_mac} \` + "\n" + ` -S ${server_mac}` + "\n" + ` "` + "\n" + ` out="$(kubectl -n ns-vfio2noop exec deployments/nsc-vfio --container pinger -- /bin/bash -c "${command}" 2>"${err_file}")"` + "\n" + `` + "\n" + ` if [[ "$?" != 0 ]]; then` + "\n" + ` echo "${out}"` + "\n" + ` cat "${err_file}" 1>&2` + "\n" + ` return 1` + "\n" + ` fi` + "\n" + `` + "\n" + ` if ! pong_packets="$(echo "${out}" | grep "rx .* pong packets" | sed -E 's/rx ([0-9]*) pong packets/\1/g')"; then` + "\n" + ` echo "${out}"` + "\n" + ` cat "${err_file}" 1>&2` + "\n" + ` return 1` + "\n" + ` fi` + "\n" + `` + "\n" + ` if [[ "${pong_packets}" == 0 ]]; then` + "\n" + ` echo "${out}"` + "\n" + ` cat "${err_file}" 1>&2` + "\n" + ` return 1` + "\n" + ` fi` + "\n" + `` + "\n" + ` echo "${out}"` + "\n" + ` return 0` + "\n" + `}`) diff --git a/suites/multiforwarder_vlantag/suite.gen.go b/suites/multiforwarder_vlantag/suite.gen.go index 5bd6982d0f..2d1f786886 100755 --- a/suites/multiforwarder_vlantag/suite.gen.go +++ b/suites/multiforwarder_vlantag/suite.gen.go @@ -27,7 +27,7 @@ func (s *Suite) SetupSuite() { s.T().Cleanup(func() { r.Run(`kubectl delete mutatingwebhookconfiguration nsm-mutating-webhook` + "\n" + `kubectl delete ns nsm-system`) }) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/multiforwarder?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/multiforwarder?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) 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) TestKernel2Ethernet2Kernel() { @@ -35,7 +35,7 @@ func (s *Suite) TestKernel2Ethernet2Kernel() { s.T().Cleanup(func() { r.Run(`kubectl delete ns ns-kernel2ethernet2kernel`) }) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/use-cases/Kernel2Ethernet2Kernel?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/use-cases/Kernel2Ethernet2Kernel?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=alpine -n ns-kernel2ethernet2kernel`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nse-kernel -n ns-kernel2ethernet2kernel`) r.Run(`kubectl exec pods/alpine -n ns-kernel2ethernet2kernel -- ping -c 4 172.16.1.100`) @@ -47,7 +47,7 @@ func (s *Suite) TestKernel2Ethernet2Kernel_Vfio2NoopVlanTag() { r.Run(`kubectl -n ns-kernel2ethernet2kernel-vfio2noopvlantag exec deployments/nse-vfio --container ponger -- /bin/bash -c '\` + "\n" + ` (sleep 10 && kill $(pgrep "pingpong")) 1>/dev/null 2>&1 & \` + "\n" + `'`) r.Run(`kubectl delete ns ns-kernel2ethernet2kernel-vfio2noopvlantag`) }) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/use-cases/Kernel2Ethernet2Kernel_Vfio2NoopVlanTag?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/use-cases/Kernel2Ethernet2Kernel_Vfio2NoopVlanTag?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=alpine -n ns-kernel2ethernet2kernel-vfio2noopvlantag`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nse-kernel -n ns-kernel2ethernet2kernel-vfio2noopvlantag`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nsc-vfio -n ns-kernel2ethernet2kernel-vfio2noopvlantag`) @@ -62,7 +62,7 @@ func (s *Suite) TestKernel2Kernel() { s.T().Cleanup(func() { r.Run(`kubectl delete ns ns-kernel2kernel`) }) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/use-cases/Kernel2Kernel?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/use-cases/Kernel2Kernel?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=alpine -n ns-kernel2kernel`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nse-kernel -n ns-kernel2kernel`) r.Run(`kubectl exec pods/alpine -n ns-kernel2kernel -- ping -c 4 172.16.1.100`) @@ -74,7 +74,7 @@ func (s *Suite) TestKernel2Kernel_Vfio2NoopVlanTag() { r.Run(`kubectl -n ns-kernel2kernel-vfio2noopvlantag exec deployments/nse-vfio --container ponger -- /bin/bash -c '\` + "\n" + ` (sleep 10 && kill $(pgrep "pingpong")) 1>/dev/null 2>&1 & \` + "\n" + `'`) r.Run(`kubectl delete ns ns-kernel2kernel-vfio2noopvlantag`) }) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/use-cases/Kernel2Kernel_Vfio2NoopVlanTag?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/use-cases/Kernel2Kernel_Vfio2NoopVlanTag?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=alpine -n ns-kernel2kernel-vfio2noopvlantag`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nse-kernel -n ns-kernel2kernel-vfio2noopvlantag`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nsc-vfio -n ns-kernel2kernel-vfio2noopvlantag`) @@ -89,7 +89,7 @@ func (s *Suite) TestMemif2Memif() { s.T().Cleanup(func() { r.Run(`kubectl delete ns ns-memif2memif`) }) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/use-cases/Memif2Memif?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/use-cases/Memif2Memif?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nsc-memif -n ns-memif2memif`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nse-memif -n ns-memif2memif`) r.Run(`result=$(kubectl exec deployments/nsc-memif -n "ns-memif2memif" -- vppctl ping 172.16.1.100 repeat 4)` + "\n" + `echo ${result}` + "\n" + `! echo ${result} | grep -E -q "(100% packet loss)|(0 sent)|(no egress interface)"`) @@ -100,10 +100,10 @@ func (s *Suite) TestSriovKernel2NoopVlanTag() { s.T().Cleanup(func() { r.Run(`kubectl delete ns ns-sriov-kernel2noop-vlantag`) }) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/use-cases/SriovKernel2NoopVlanTag/ponger?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/use-cases/SriovKernel2NoopVlanTag/ponger?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) r.Run(`kubectl -n ns-sriov-kernel2noop-vlantag wait --for=condition=ready --timeout=1m pod -l app=ponger`) r.Run(`kubectl -n ns-sriov-kernel2noop-vlantag exec deploy/ponger -- ip a | grep "172.16.1.100"`) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/use-cases/SriovKernel2NoopVlanTag?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/use-cases/SriovKernel2NoopVlanTag?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) r.Run(`kubectl -n ns-sriov-kernel2noop-vlantag wait --for=condition=ready --timeout=1m pod -l app=nsc-kernel`) r.Run(`kubectl -n ns-sriov-kernel2noop-vlantag wait --for=condition=ready --timeout=1m pod -l app=nse-noop`) r.Run(`kubectl -n ns-sriov-kernel2noop-vlantag exec deployments/nsc-kernel -- ping -c 4 172.16.1.100`) @@ -114,7 +114,7 @@ func (s *Suite) TestVfio2NoopVlanTag() { r.Run(`kubectl -n ns-vfio2noop-vlantag exec deployments/nse-vfio --container ponger -- /bin/bash -c '\` + "\n" + ` (sleep 10 && kill $(pgrep "pingpong")) 1>/dev/null 2>&1 & \` + "\n" + `'`) r.Run(`kubectl delete ns ns-vfio2noop-vlantag`) }) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/use-cases/Vfio2NoopVlanTag?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/use-cases/Vfio2NoopVlanTag?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) r.Run(`kubectl -n ns-vfio2noop-vlantag wait --for=condition=ready --timeout=1m pod -l app=nsc-vfio`) r.Run(`kubectl -n ns-vfio2noop-vlantag wait --for=condition=ready --timeout=1m pod -l app=nse-vfio`) r.Run(`function dpdk_ping() {` + "\n" + ` err_file="$(mktemp)"` + "\n" + ` trap 'rm -f "${err_file}"' RETURN` + "\n" + `` + "\n" + ` client_mac="$1"` + "\n" + ` server_mac="$2"` + "\n" + `` + "\n" + ` command="/root/dpdk-pingpong/build/pingpong \` + "\n" + ` --no-huge \` + "\n" + ` -- \` + "\n" + ` -n 500 \` + "\n" + ` -c \` + "\n" + ` -C ${client_mac} \` + "\n" + ` -S ${server_mac}` + "\n" + ` "` + "\n" + ` out="$(kubectl -n ns-vfio2noop-vlantag exec deployments/nsc-vfio --container pinger -- /bin/bash -c "${command}" 2>"${err_file}")"` + "\n" + `` + "\n" + ` if [[ "$?" != 0 ]]; then` + "\n" + ` echo "${out}"` + "\n" + ` cat "${err_file}" 1>&2` + "\n" + ` return 1` + "\n" + ` fi` + "\n" + `` + "\n" + ` if ! pong_packets="$(echo "${out}" | grep "rx .* pong packets" | sed -E 's/rx ([0-9]*) pong packets/\1/g')"; then` + "\n" + ` echo "${out}"` + "\n" + ` cat "${err_file}" 1>&2` + "\n" + ` return 1` + "\n" + ` fi` + "\n" + `` + "\n" + ` if [[ "${pong_packets}" == 0 ]]; then` + "\n" + ` echo "${out}"` + "\n" + ` cat "${err_file}" 1>&2` + "\n" + ` return 1` + "\n" + ` fi` + "\n" + `` + "\n" + ` echo "${out}"` + "\n" + ` return 0` + "\n" + `}`) diff --git a/suites/observability/dashboard/suite.gen.go b/suites/observability/dashboard/suite.gen.go index 10d638454c..97904d621a 100755 --- a/suites/observability/dashboard/suite.gen.go +++ b/suites/observability/dashboard/suite.gen.go @@ -27,7 +27,7 @@ func (s *Suite) SetupSuite() { s.T().Cleanup(func() { r.Run(`pkill -f "kubectl port-forward -n nsm-system service/dashboard-backend 3001:3001"` + "\n" + `pkill -f "kubectl port-forward -n nsm-system service/dashboard-ui 3000:3000"` + "\n" + `kubectl delete service/dashboard-ui service/dashboard-backend pod/dashboard -n=nsm-system`) }) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/apps/dashboard?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/apps/dashboard?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) r.Run(`kubectl wait --for=condition=ready pod -l app=dashboard --timeout=5m -n nsm-system`) r.Run(`nohup kubectl port-forward -n nsm-system service/dashboard-backend 3001:3001 &`) r.Run(`nohup kubectl port-forward -n nsm-system service/dashboard-ui 3000:3000 &`) diff --git a/suites/observability/jaeger_and_prometheus/suite.gen.go b/suites/observability/jaeger_and_prometheus/suite.gen.go index 1774b9274b..d123eaa91d 100755 --- a/suites/observability/jaeger_and_prometheus/suite.gen.go +++ b/suites/observability/jaeger_and_prometheus/suite.gen.go @@ -28,9 +28,9 @@ func (s *Suite) SetupSuite() { r.Run(`kubectl delete ns ns-jaeger-and-prometheus`) r.Run(`kubectl describe pods -n observability` + "\n" + `kubectl delete ns observability` + "\n" + `pkill -f "port-forward"`) }) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/observability/jaeger_and_prometheus?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/observability/jaeger_and_prometheus?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) r.Run(`kubectl wait -n observability --timeout=1m --for=condition=ready pod -l app=opentelemetry`) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/observability/jaeger_and_prometheus/example?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/observability/jaeger_and_prometheus/example?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=alpine -n ns-jaeger-and-prometheus`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nse-kernel -n ns-jaeger-and-prometheus`) r.Run(`kubectl exec pods/alpine -n ns-jaeger-and-prometheus -- ping -c 4 172.16.1.100`) diff --git a/suites/observability/nsm_system/suite.gen.go b/suites/observability/nsm_system/suite.gen.go index 9ee8f302cf..5e2f2905ad 100755 --- a/suites/observability/nsm_system/suite.gen.go +++ b/suites/observability/nsm_system/suite.gen.go @@ -27,7 +27,7 @@ func (s *Suite) SetupSuite() { s.T().Cleanup(func() { r.Run(`kubectl delete mutatingwebhookconfiguration nsm-mutating-webhook` + "\n" + `kubectl delete ns nsm-system`) }) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/observability/nsm_system?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/observability/nsm_system?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) 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) Test() {} diff --git a/suites/ovs/suite.gen.go b/suites/ovs/suite.gen.go index f2772b7aea..bc657d3a80 100755 --- a/suites/ovs/suite.gen.go +++ b/suites/ovs/suite.gen.go @@ -27,7 +27,7 @@ func (s *Suite) SetupSuite() { s.T().Cleanup(func() { r.Run(`kubectl delete mutatingwebhookconfiguration nsm-mutating-webhook` + "\n" + `kubectl delete ns nsm-system`) }) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/ovs?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/ovs?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) 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) TestKernel2IP2Kernel() { @@ -35,7 +35,7 @@ func (s *Suite) TestKernel2IP2Kernel() { s.T().Cleanup(func() { r.Run(`kubectl delete ns ns-kernel2ip2kernel`) }) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/use-cases/Kernel2IP2Kernel?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/use-cases/Kernel2IP2Kernel?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=alpine -n ns-kernel2ip2kernel`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nse-kernel -n ns-kernel2ip2kernel`) r.Run(`kubectl exec pods/alpine -n ns-kernel2ip2kernel -- ping -c 4 172.16.1.100`) @@ -46,7 +46,7 @@ func (s *Suite) TestKernel2Kernel() { s.T().Cleanup(func() { r.Run(`kubectl delete ns ns-kernel2kernel`) }) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/use-cases/Kernel2Kernel?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/use-cases/Kernel2Kernel?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=alpine -n ns-kernel2kernel`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nse-kernel -n ns-kernel2kernel`) r.Run(`kubectl exec pods/alpine -n ns-kernel2kernel -- ping -c 4 172.16.1.100`) @@ -57,7 +57,7 @@ func (s *Suite) TestKernel2KernelVLAN() { s.T().Cleanup(func() { r.Run(`kubectl delete ns ns-kernel2kernel-vlan`) }) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/use-cases/Kernel2KernelVLAN?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/use-cases/Kernel2KernelVLAN?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nsc-kernel -n ns-kernel2kernel-vlan`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nse-kernel -n ns-kernel2kernel-vlan`) r.Run(`NSC=$((kubectl get pods -l app=nsc-kernel -n ns-kernel2kernel-vlan --template '{{range .items}}{{.metadata.name}}{{" "}}{{end}}') | cut -d' ' -f1)` + "\n" + `TARGET_IP=$(kubectl exec -ti ${NSC} -n ns-kernel2kernel-vlan -- ip route show | grep 172.16 | cut -d' ' -f1)`) @@ -69,7 +69,7 @@ func (s *Suite) TestSmartVF2SmartVF() { s.T().Cleanup(func() { r.Run(`kubectl delete ns ns-smartvf2smartvf`) }) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/use-cases/SmartVF2SmartVF?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/use-cases/SmartVF2SmartVF?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) r.Run(`kubectl -n ns-smartvf2smartvf wait --for=condition=ready --timeout=1m pod -l app=nsc-kernel`) r.Run(`kubectl -n ns-smartvf2smartvf wait --for=condition=ready --timeout=1m pod -l app=nse-kernel`) r.Run(`kubectl -n ns-smartvf2smartvf exec deployments/nsc-kernel -- ping -c 4 172.16.1.100`) diff --git a/suites/pss/suite.gen.go b/suites/pss/suite.gen.go index 6efef58f6e..b91820a7e9 100755 --- a/suites/pss/suite.gen.go +++ b/suites/pss/suite.gen.go @@ -28,7 +28,7 @@ func (s *Suite) SetupSuite() { r.Run(`kubectl delete ds/forwarder-vpp -n nsm-system`) r.Run(`kubectl delete mutatingwebhookconfiguration nsm-mutating-webhook` + "\n" + `kubectl delete ns nsm-system`) }) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/pss/nsm-system?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/pss/nsm-system?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) 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) TestNginx() { @@ -36,7 +36,7 @@ func (s *Suite) TestNginx() { s.T().Cleanup(func() { r.Run(`kubectl delete ns ns-nginx`) }) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/pss/use-cases/nginx?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/pss/use-cases/nginx?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) r.Run(`kubectl wait --for=condition=ready --timeout=5m pod -l app=nse-kernel -n ns-nginx`) r.Run(`kubectl wait --for=condition=ready --timeout=1m pod -l app=nettools -n ns-nginx`) r.Run(`kubectl exec pods/nettools -n ns-nginx -- curl 172.16.1.100:8080 | grep -o "Welcome to nginx"`) diff --git a/suites/remotevlan_ovs/suite.gen.go b/suites/remotevlan_ovs/suite.gen.go index 64ca1b8d5b..5309a364cd 100755 --- a/suites/remotevlan_ovs/suite.gen.go +++ b/suites/remotevlan_ovs/suite.gen.go @@ -30,7 +30,7 @@ func (s *Suite) SetupSuite() { }) r.Run(`docker network create bridge-2` + "\n" + `docker network connect bridge-2 kind-worker` + "\n" + `docker network connect bridge-2 kind-worker2`) r.Run(`MACS=($(docker inspect --format='{{range .Containers}}{{.MacAddress}}{{"\n"}}{{end}}' bridge-2))` + "\n" + `ifw1=$(docker exec kind-worker ip -o link | grep ${MACS[@]/#/-e } | cut -f1 -d"@" | cut -f2 -d" ")` + "\n" + `ifw2=$(docker exec kind-worker2 ip -o link | grep ${MACS[@]/#/-e } | cut -f1 -d"@" | cut -f2 -d" ")` + "\n" + `` + "\n" + `(docker exec kind-worker ip link set $ifw1 down &&` + "\n" + `docker exec kind-worker ip link set $ifw1 name ext_net1 &&` + "\n" + `docker exec kind-worker ip link set dev ext_net1 mtu 1450 &&` + "\n" + `docker exec kind-worker ip link set ext_net1 up &&` + "\n" + `docker exec kind-worker2 ip link set $ifw2 down &&` + "\n" + `docker exec kind-worker2 ip link set $ifw2 name ext_net1 &&` + "\n" + `docker exec kind-worker2 ip link set dev ext_net1 mtu 1450 &&` + "\n" + `docker exec kind-worker2 ip link set ext_net1 up)`) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/remotevlan_ovs?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/remotevlan_ovs?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) r.Run(`kubectl -n nsm-system wait --for=condition=ready --timeout=2m pod -l app=nse-remote-vlan`) 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`) r.Run(`kubectl -n nsm-system wait --for=condition=ready --timeout=2m pod -l app=forwarder-ovs`) @@ -41,7 +41,7 @@ func (s *Suite) TestKernel2RVlanBreakout() { r.Run(`docker stop rvm-tester-breakout` + "\n" + `docker image rm rvm-tester-breakout:latest` + "\n" + `true`) r.Run(`kubectl delete ns ns-kernel2rvlan-breakout`) }) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/use-cases/Kernel2RVlanBreakout?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/use-cases/Kernel2RVlanBreakout?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) r.Run(`kubectl -n ns-kernel2rvlan-breakout wait --for=condition=ready --timeout=1m pod -l app=iperf1-s`) r.Run(`NSCS=($(kubectl get pods -l app=iperf1-s -n ns-kernel2rvlan-breakout --template '{{range .items}}{{.metadata.name}}{{"\n"}}{{end}}'))`) r.Run(`cat > Dockerfile <<EOF` + "\n" + `FROM networkstatic/iperf3` + "\n" + `` + "\n" + `RUN apt-get update \` + "\n" + ` && apt-get install -y ethtool iproute2 \` + "\n" + ` && rm -rf /var/lib/apt/lists/*` + "\n" + `` + "\n" + `ENTRYPOINT [ "tail", "-f", "/dev/null" ]` + "\n" + `EOF` + "\n" + `docker build . -t rvm-tester-breakout`) @@ -56,7 +56,7 @@ func (s *Suite) TestKernel2RVlanInternal() { s.T().Cleanup(func() { r.Run(`kubectl delete ns ns-kernel2rvlan-internal`) }) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/use-cases/Kernel2RVlanInternal?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/use-cases/Kernel2RVlanInternal?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) r.Run(`kubectl -n ns-kernel2rvlan-internal wait --for=condition=ready --timeout=1m pod -l app=iperf1-s`) r.Run(`NSCS=($(kubectl get pods -l app=iperf1-s -n ns-kernel2rvlan-internal --template '{{range .items}}{{.metadata.name}}{{"\n"}}{{end}}'))`) r.Run(`IP_ADDR=$(kubectl exec ${NSCS[0]} -c cmd-nsc -n ns-kernel2rvlan-internal -- ip -4 addr show nsm-1 | grep -oP '(?<=inet\s)\d+(\.\d+){3}')` + "\n" + ` kubectl exec ${NSCS[0]} -c iperf-server -n ns-kernel2rvlan-internal -- iperf3 -sD -B ${IP_ADDR} -1` + "\n" + ` kubectl exec ${NSCS[1]} -c iperf-server -n ns-kernel2rvlan-internal -- iperf3 -i0 -t 5 -c ${IP_ADDR}`) @@ -72,9 +72,9 @@ func (s *Suite) TestKernel2RVlanMultiNS() { r.Run(`kubectl delete ns ns-kernel2vlan-multins-2`) r.Run(`kubectl delete ns ns-kernel2vlan-multins-3`) }) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/use-cases/Kernel2RVlanMultiNS/ns-1?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) - r.Run(`kubectl apply -f https://raw.githubusercontent.com/networkservicemesh/deployments-k8s/427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2/examples/use-cases/Kernel2RVlanMultiNS/ns-2/ns-kernel2vlan-multins-2.yaml` + "\n" + `kubectl apply -f https://raw.githubusercontent.com/networkservicemesh/deployments-k8s/427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2/examples/use-cases/Kernel2RVlanMultiNS/ns-2/netsvc.yaml` + "\n" + `kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/use-cases/Kernel2RVlanMultiNS/ns-2?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/use-cases/Kernel2RVlanMultiNS/ns-3?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/use-cases/Kernel2RVlanMultiNS/ns-1?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) + r.Run(`kubectl apply -f https://raw.githubusercontent.com/networkservicemesh/deployments-k8s/d07cec788258d07b1c7a1a79bffe89bb174ab732/examples/use-cases/Kernel2RVlanMultiNS/ns-2/ns-kernel2vlan-multins-2.yaml` + "\n" + `kubectl apply -f https://raw.githubusercontent.com/networkservicemesh/deployments-k8s/d07cec788258d07b1c7a1a79bffe89bb174ab732/examples/use-cases/Kernel2RVlanMultiNS/ns-2/netsvc.yaml` + "\n" + `kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/use-cases/Kernel2RVlanMultiNS/ns-2?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/use-cases/Kernel2RVlanMultiNS/ns-3?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) r.Run(`kubectl -n ns-kernel2vlan-multins-1 wait --for=condition=ready --timeout=1m pod -l app=nse-remote-vlan`) r.Run(`kubectl -n ns-kernel2vlan-multins-1 wait --for=condition=ready --timeout=1m pod -l app=alpine-1`) r.Run(`kubectl -n ns-kernel2vlan-multins-2 wait --for=condition=ready --timeout=1m pod -l app=nse-remote-vlan`) diff --git a/suites/remotevlan_vpp/suite.gen.go b/suites/remotevlan_vpp/suite.gen.go index 28812a1f3b..94b3190cc4 100755 --- a/suites/remotevlan_vpp/suite.gen.go +++ b/suites/remotevlan_vpp/suite.gen.go @@ -30,7 +30,7 @@ func (s *Suite) SetupSuite() { }) r.Run(`docker network create bridge-2` + "\n" + `docker network connect bridge-2 kind-worker` + "\n" + `docker network connect bridge-2 kind-worker2`) r.Run(`MACS=($(docker inspect --format='{{range .Containers}}{{.MacAddress}}{{"\n"}}{{end}}' bridge-2))` + "\n" + `ifw1=$(docker exec kind-worker ip -o link | grep ${MACS[@]/#/-e } | cut -f1 -d"@" | cut -f2 -d" ")` + "\n" + `ifw2=$(docker exec kind-worker2 ip -o link | grep ${MACS[@]/#/-e } | cut -f1 -d"@" | cut -f2 -d" ")` + "\n" + `` + "\n" + `(docker exec kind-worker ip link set $ifw1 down &&` + "\n" + `docker exec kind-worker ip link set $ifw1 name ext_net1 &&` + "\n" + `docker exec kind-worker ip link set dev ext_net1 mtu 1450 &&` + "\n" + `docker exec kind-worker ip link set ext_net1 up &&` + "\n" + `docker exec kind-worker2 ip link set $ifw2 down &&` + "\n" + `docker exec kind-worker2 ip link set $ifw2 name ext_net1 &&` + "\n" + `docker exec kind-worker2 ip link set dev ext_net1 mtu 1450 &&` + "\n" + `docker exec kind-worker2 ip link set ext_net1 up)`) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/remotevlan_vpp?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/remotevlan_vpp?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) r.Run(`kubectl -n nsm-system wait --for=condition=ready --timeout=2m pod -l app=nse-remote-vlan`) 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`) r.Run(`kubectl -n nsm-system wait --for=condition=ready --timeout=2m pod -l app=forwarder-vpp`) @@ -41,7 +41,7 @@ func (s *Suite) TestKernel2RVlanBreakout() { r.Run(`docker stop rvm-tester-breakout` + "\n" + `docker image rm rvm-tester-breakout:latest` + "\n" + `true`) r.Run(`kubectl delete ns ns-kernel2rvlan-breakout`) }) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/use-cases/Kernel2RVlanBreakout?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/use-cases/Kernel2RVlanBreakout?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) r.Run(`kubectl -n ns-kernel2rvlan-breakout wait --for=condition=ready --timeout=1m pod -l app=iperf1-s`) r.Run(`NSCS=($(kubectl get pods -l app=iperf1-s -n ns-kernel2rvlan-breakout --template '{{range .items}}{{.metadata.name}}{{"\n"}}{{end}}'))`) r.Run(`cat > Dockerfile <<EOF` + "\n" + `FROM networkstatic/iperf3` + "\n" + `` + "\n" + `RUN apt-get update \` + "\n" + ` && apt-get install -y ethtool iproute2 \` + "\n" + ` && rm -rf /var/lib/apt/lists/*` + "\n" + `` + "\n" + `ENTRYPOINT [ "tail", "-f", "/dev/null" ]` + "\n" + `EOF` + "\n" + `docker build . -t rvm-tester-breakout`) @@ -56,7 +56,7 @@ func (s *Suite) TestKernel2RVlanInternal() { s.T().Cleanup(func() { r.Run(`kubectl delete ns ns-kernel2rvlan-internal`) }) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/use-cases/Kernel2RVlanInternal?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/use-cases/Kernel2RVlanInternal?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) r.Run(`kubectl -n ns-kernel2rvlan-internal wait --for=condition=ready --timeout=1m pod -l app=iperf1-s`) r.Run(`NSCS=($(kubectl get pods -l app=iperf1-s -n ns-kernel2rvlan-internal --template '{{range .items}}{{.metadata.name}}{{"\n"}}{{end}}'))`) r.Run(`IP_ADDR=$(kubectl exec ${NSCS[0]} -c cmd-nsc -n ns-kernel2rvlan-internal -- ip -4 addr show nsm-1 | grep -oP '(?<=inet\s)\d+(\.\d+){3}')` + "\n" + ` kubectl exec ${NSCS[0]} -c iperf-server -n ns-kernel2rvlan-internal -- iperf3 -sD -B ${IP_ADDR} -1` + "\n" + ` kubectl exec ${NSCS[1]} -c iperf-server -n ns-kernel2rvlan-internal -- iperf3 -i0 -t 5 -c ${IP_ADDR}`) @@ -72,9 +72,9 @@ func (s *Suite) TestKernel2RVlanMultiNS() { r.Run(`kubectl delete ns ns-kernel2vlan-multins-2`) r.Run(`kubectl delete ns ns-kernel2vlan-multins-3`) }) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/use-cases/Kernel2RVlanMultiNS/ns-1?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) - r.Run(`kubectl apply -f https://raw.githubusercontent.com/networkservicemesh/deployments-k8s/427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2/examples/use-cases/Kernel2RVlanMultiNS/ns-2/ns-kernel2vlan-multins-2.yaml` + "\n" + `kubectl apply -f https://raw.githubusercontent.com/networkservicemesh/deployments-k8s/427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2/examples/use-cases/Kernel2RVlanMultiNS/ns-2/netsvc.yaml` + "\n" + `kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/use-cases/Kernel2RVlanMultiNS/ns-2?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/use-cases/Kernel2RVlanMultiNS/ns-3?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/use-cases/Kernel2RVlanMultiNS/ns-1?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) + r.Run(`kubectl apply -f https://raw.githubusercontent.com/networkservicemesh/deployments-k8s/d07cec788258d07b1c7a1a79bffe89bb174ab732/examples/use-cases/Kernel2RVlanMultiNS/ns-2/ns-kernel2vlan-multins-2.yaml` + "\n" + `kubectl apply -f https://raw.githubusercontent.com/networkservicemesh/deployments-k8s/d07cec788258d07b1c7a1a79bffe89bb174ab732/examples/use-cases/Kernel2RVlanMultiNS/ns-2/netsvc.yaml` + "\n" + `kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/use-cases/Kernel2RVlanMultiNS/ns-2?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/use-cases/Kernel2RVlanMultiNS/ns-3?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) r.Run(`kubectl -n ns-kernel2vlan-multins-1 wait --for=condition=ready --timeout=1m pod -l app=nse-remote-vlan`) r.Run(`kubectl -n ns-kernel2vlan-multins-1 wait --for=condition=ready --timeout=1m pod -l app=alpine-1`) r.Run(`kubectl -n ns-kernel2vlan-multins-2 wait --for=condition=ready --timeout=1m pod -l app=nse-remote-vlan`) diff --git a/suites/spire/cluster1/suite.gen.go b/suites/spire/cluster1/suite.gen.go index 70a4ea75db..a542b22401 100755 --- a/suites/spire/cluster1/suite.gen.go +++ b/suites/spire/cluster1/suite.gen.go @@ -26,10 +26,10 @@ func (s *Suite) SetupSuite() { r.Run(`kubectl --kubeconfig=$KUBECONFIG1 delete crd clusterspiffeids.spire.spiffe.io` + "\n" + `kubectl --kubeconfig=$KUBECONFIG1 delete crd clusterfederatedtrustdomains.spire.spiffe.io` + "\n" + `kubectl --kubeconfig=$KUBECONFIG1 delete validatingwebhookconfiguration.admissionregistration.k8s.io/spire-controller-manager-webhook` + "\n" + `kubectl --kubeconfig=$KUBECONFIG1 delete ns spire`) }) r.Run(`[[ ! -z $KUBECONFIG1 ]]`) - r.Run(`kubectl --kubeconfig=$KUBECONFIG1 apply -k https://github.com/networkservicemesh/deployments-k8s/examples/spire/cluster1?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl --kubeconfig=$KUBECONFIG1 apply -k https://github.com/networkservicemesh/deployments-k8s/examples/spire/cluster1?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) r.Run(`kubectl --kubeconfig=$KUBECONFIG1 wait -n spire --timeout=3m --for=condition=ready pod -l app=spire-server`) r.Run(`kubectl --kubeconfig=$KUBECONFIG1 wait -n spire --timeout=1m --for=condition=ready pod -l app=spire-agent`) - r.Run(`kubectl --kubeconfig=$KUBECONFIG1 apply -f https://raw.githubusercontent.com/networkservicemesh/deployments-k8s/427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2/examples/spire/cluster1/clusterspiffeid-template.yaml`) - r.Run(`kubectl --kubeconfig=$KUBECONFIG1 apply -f https://raw.githubusercontent.com/networkservicemesh/deployments-k8s/427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2/examples/spire/base/clusterspiffeid-webhook-template.yaml`) + r.Run(`kubectl --kubeconfig=$KUBECONFIG1 apply -f https://raw.githubusercontent.com/networkservicemesh/deployments-k8s/d07cec788258d07b1c7a1a79bffe89bb174ab732/examples/spire/cluster1/clusterspiffeid-template.yaml`) + r.Run(`kubectl --kubeconfig=$KUBECONFIG1 apply -f https://raw.githubusercontent.com/networkservicemesh/deployments-k8s/d07cec788258d07b1c7a1a79bffe89bb174ab732/examples/spire/base/clusterspiffeid-webhook-template.yaml`) } func (s *Suite) Test() {} diff --git a/suites/spire/cluster2/suite.gen.go b/suites/spire/cluster2/suite.gen.go index 6d64847928..42c82e95c4 100755 --- a/suites/spire/cluster2/suite.gen.go +++ b/suites/spire/cluster2/suite.gen.go @@ -26,10 +26,10 @@ func (s *Suite) SetupSuite() { r.Run(`kubectl --kubeconfig=$KUBECONFIG2 delete crd clusterspiffeids.spire.spiffe.io` + "\n" + `kubectl --kubeconfig=$KUBECONFIG2 delete crd clusterfederatedtrustdomains.spire.spiffe.io` + "\n" + `kubectl --kubeconfig=$KUBECONFIG2 delete validatingwebhookconfiguration.admissionregistration.k8s.io/spire-controller-manager-webhook` + "\n" + `kubectl --kubeconfig=$KUBECONFIG2 delete ns spire`) }) r.Run(`[[ ! -z $KUBECONFIG2 ]]`) - r.Run(`kubectl --kubeconfig=$KUBECONFIG2 apply -k https://github.com/networkservicemesh/deployments-k8s/examples/spire/cluster2?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl --kubeconfig=$KUBECONFIG2 apply -k https://github.com/networkservicemesh/deployments-k8s/examples/spire/cluster2?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) r.Run(`kubectl --kubeconfig=$KUBECONFIG2 wait -n spire --timeout=3m --for=condition=ready pod -l app=spire-server`) r.Run(`kubectl --kubeconfig=$KUBECONFIG2 wait -n spire --timeout=1m --for=condition=ready pod -l app=spire-agent`) - r.Run(`kubectl --kubeconfig=$KUBECONFIG2 apply -f https://raw.githubusercontent.com/networkservicemesh/deployments-k8s/427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2/examples/spire/cluster2/clusterspiffeid-template.yaml`) - r.Run(`kubectl --kubeconfig=$KUBECONFIG2 apply -f https://raw.githubusercontent.com/networkservicemesh/deployments-k8s/427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2/examples/spire/base/clusterspiffeid-webhook-template.yaml`) + r.Run(`kubectl --kubeconfig=$KUBECONFIG2 apply -f https://raw.githubusercontent.com/networkservicemesh/deployments-k8s/d07cec788258d07b1c7a1a79bffe89bb174ab732/examples/spire/cluster2/clusterspiffeid-template.yaml`) + r.Run(`kubectl --kubeconfig=$KUBECONFIG2 apply -f https://raw.githubusercontent.com/networkservicemesh/deployments-k8s/d07cec788258d07b1c7a1a79bffe89bb174ab732/examples/spire/base/clusterspiffeid-webhook-template.yaml`) } func (s *Suite) Test() {} diff --git a/suites/spire/cluster3/suite.gen.go b/suites/spire/cluster3/suite.gen.go index 6e257fc1f4..8c4bdeb0e1 100755 --- a/suites/spire/cluster3/suite.gen.go +++ b/suites/spire/cluster3/suite.gen.go @@ -26,10 +26,10 @@ func (s *Suite) SetupSuite() { r.Run(`kubectl --kubeconfig=$KUBECONFIG3 delete crd clusterspiffeids.spire.spiffe.io` + "\n" + `kubectl --kubeconfig=$KUBECONFIG3 delete crd clusterfederatedtrustdomains.spire.spiffe.io` + "\n" + `kubectl --kubeconfig=$KUBECONFIG3 delete validatingwebhookconfiguration.admissionregistration.k8s.io/spire-controller-manager-webhook` + "\n" + `kubectl --kubeconfig=$KUBECONFIG3 delete ns spire`) }) r.Run(`[[ ! -z $KUBECONFIG3 ]]`) - r.Run(`kubectl --kubeconfig=$KUBECONFIG3 apply -k https://github.com/networkservicemesh/deployments-k8s/examples/spire/cluster3?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl --kubeconfig=$KUBECONFIG3 apply -k https://github.com/networkservicemesh/deployments-k8s/examples/spire/cluster3?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) r.Run(`kubectl --kubeconfig=$KUBECONFIG3 wait -n spire --timeout=3m --for=condition=ready pod -l app=spire-server`) r.Run(`kubectl --kubeconfig=$KUBECONFIG3 wait -n spire --timeout=1m --for=condition=ready pod -l app=spire-agent`) - r.Run(`kubectl --kubeconfig=$KUBECONFIG3 apply -f https://raw.githubusercontent.com/networkservicemesh/deployments-k8s/427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2/examples/spire/cluster3/clusterspiffeid-template.yaml`) - r.Run(`kubectl --kubeconfig=$KUBECONFIG3 apply -f https://raw.githubusercontent.com/networkservicemesh/deployments-k8s/427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2/examples/spire/base/clusterspiffeid-webhook-template.yaml`) + r.Run(`kubectl --kubeconfig=$KUBECONFIG3 apply -f https://raw.githubusercontent.com/networkservicemesh/deployments-k8s/d07cec788258d07b1c7a1a79bffe89bb174ab732/examples/spire/cluster3/clusterspiffeid-template.yaml`) + r.Run(`kubectl --kubeconfig=$KUBECONFIG3 apply -f https://raw.githubusercontent.com/networkservicemesh/deployments-k8s/d07cec788258d07b1c7a1a79bffe89bb174ab732/examples/spire/base/clusterspiffeid-webhook-template.yaml`) } func (s *Suite) Test() {} diff --git a/suites/spire/single_cluster/suite.gen.go b/suites/spire/single_cluster/suite.gen.go index 06bc9756aa..8f69bd9388 100755 --- a/suites/spire/single_cluster/suite.gen.go +++ b/suites/spire/single_cluster/suite.gen.go @@ -25,10 +25,10 @@ func (s *Suite) SetupSuite() { s.T().Cleanup(func() { r.Run(`kubectl delete crd clusterspiffeids.spire.spiffe.io` + "\n" + `kubectl delete crd clusterfederatedtrustdomains.spire.spiffe.io` + "\n" + `kubectl delete validatingwebhookconfiguration.admissionregistration.k8s.io/spire-controller-manager-webhook` + "\n" + `kubectl delete ns spire`) }) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/spire/single_cluster?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/spire/single_cluster?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) r.Run(`kubectl wait -n spire --timeout=4m --for=condition=ready pod -l app=spire-server`) r.Run(`kubectl wait -n spire --timeout=1m --for=condition=ready pod -l app=spire-agent`) - r.Run(`kubectl apply -f https://raw.githubusercontent.com/networkservicemesh/deployments-k8s/427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2/examples/spire/single_cluster/clusterspiffeid-template.yaml`) - r.Run(`kubectl apply -f https://raw.githubusercontent.com/networkservicemesh/deployments-k8s/427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2/examples/spire/base/clusterspiffeid-webhook-template.yaml`) + r.Run(`kubectl apply -f https://raw.githubusercontent.com/networkservicemesh/deployments-k8s/d07cec788258d07b1c7a1a79bffe89bb174ab732/examples/spire/single_cluster/clusterspiffeid-template.yaml`) + r.Run(`kubectl apply -f https://raw.githubusercontent.com/networkservicemesh/deployments-k8s/d07cec788258d07b1c7a1a79bffe89bb174ab732/examples/spire/base/clusterspiffeid-webhook-template.yaml`) } func (s *Suite) Test() {} diff --git a/suites/spire/single_cluster_csi/suite.gen.go b/suites/spire/single_cluster_csi/suite.gen.go index 6e3ada6ddd..91c2a06e70 100755 --- a/suites/spire/single_cluster_csi/suite.gen.go +++ b/suites/spire/single_cluster_csi/suite.gen.go @@ -25,10 +25,10 @@ func (s *Suite) SetupSuite() { s.T().Cleanup(func() { r.Run(`kubectl delete crd clusterspiffeids.spire.spiffe.io` + "\n" + `kubectl delete crd clusterfederatedtrustdomains.spire.spiffe.io` + "\n" + `kubectl delete validatingwebhookconfiguration.admissionregistration.k8s.io/spire-controller-manager-webhook` + "\n" + `kubectl delete ns spire`) }) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/spire/single_cluster_csi?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/spire/single_cluster_csi?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) r.Run(`kubectl wait -n spire --timeout=4m --for=condition=ready pod -l app=spire-server`) r.Run(`kubectl wait -n spire --timeout=1m --for=condition=ready pod -l app=spire-agent`) - r.Run(`kubectl apply -f https://raw.githubusercontent.com/networkservicemesh/deployments-k8s/427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2/examples/spire/single_cluster/clusterspiffeid-template.yaml`) - r.Run(`kubectl apply -f https://raw.githubusercontent.com/networkservicemesh/deployments-k8s/427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2/examples/spire/base/clusterspiffeid-webhook-template.yaml`) + r.Run(`kubectl apply -f https://raw.githubusercontent.com/networkservicemesh/deployments-k8s/d07cec788258d07b1c7a1a79bffe89bb174ab732/examples/spire/single_cluster/clusterspiffeid-template.yaml`) + r.Run(`kubectl apply -f https://raw.githubusercontent.com/networkservicemesh/deployments-k8s/d07cec788258d07b1c7a1a79bffe89bb174ab732/examples/spire/base/clusterspiffeid-webhook-template.yaml`) } func (s *Suite) Test() {} diff --git a/suites/sriov/suite.gen.go b/suites/sriov/suite.gen.go index e51e9af7d4..c8ae35a83b 100755 --- a/suites/sriov/suite.gen.go +++ b/suites/sriov/suite.gen.go @@ -27,17 +27,17 @@ func (s *Suite) SetupSuite() { s.T().Cleanup(func() { r.Run(`kubectl delete mutatingwebhookconfiguration nsm-mutating-webhook` + "\n" + `kubectl delete ns nsm-system`) }) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/sriov?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/sriov?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) } func (s *Suite) TestSriovKernel2Noop() { r := s.Runner("../deployments-k8s/examples/use-cases/SriovKernel2Noop") s.T().Cleanup(func() { r.Run(`kubectl delete ns ns-sriov-kernel2noop`) }) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/use-cases/SriovKernel2Noop/ponger?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/use-cases/SriovKernel2Noop/ponger?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) r.Run(`kubectl -n ns-sriov-kernel2noop wait --for=condition=ready --timeout=1m pod -l app=ponger`) r.Run(`kubectl -n ns-sriov-kernel2noop exec deploy/ponger -- ip a | grep "172.16.1.100"`) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/use-cases/SriovKernel2Noop?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/use-cases/SriovKernel2Noop?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) r.Run(`kubectl -n ns-sriov-kernel2noop wait --for=condition=ready --timeout=1m pod -l app=nsc-kernel`) r.Run(`kubectl -n ns-sriov-kernel2noop wait --for=condition=ready --timeout=1m pod -l app=nse-noop`) r.Run(`kubectl -n ns-sriov-kernel2noop exec deployments/nsc-kernel -- ping -c 4 172.16.1.100`) @@ -48,7 +48,7 @@ func (s *Suite) TestVfio2Noop() { r.Run(`kubectl -n ns-vfio2noop exec deployments/nse-vfio --container ponger -- /bin/bash -c '\` + "\n" + ` (sleep 10 && kill $(pgrep "pingpong")) 1>/dev/null 2>&1 & \` + "\n" + `'`) r.Run(`kubectl delete ns ns-vfio2noop`) }) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/use-cases/Vfio2Noop?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/use-cases/Vfio2Noop?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) r.Run(`kubectl -n ns-vfio2noop wait --for=condition=ready --timeout=1m pod -l app=nsc-vfio`) r.Run(`kubectl -n ns-vfio2noop wait --for=condition=ready --timeout=1m pod -l app=nse-vfio`) r.Run(`function dpdk_ping() {` + "\n" + ` err_file="$(mktemp)"` + "\n" + ` trap 'rm -f "${err_file}"' RETURN` + "\n" + `` + "\n" + ` client_mac="$1"` + "\n" + ` server_mac="$2"` + "\n" + `` + "\n" + ` command="/root/dpdk-pingpong/build/pingpong \` + "\n" + ` --no-huge \` + "\n" + ` -- \` + "\n" + ` -n 500 \` + "\n" + ` -c \` + "\n" + ` -C ${client_mac} \` + "\n" + ` -S ${server_mac}` + "\n" + ` "` + "\n" + ` out="$(kubectl -n ns-vfio2noop exec deployments/nsc-vfio --container pinger -- /bin/bash -c "${command}" 2>"${err_file}")"` + "\n" + `` + "\n" + ` if [[ "$?" != 0 ]]; then` + "\n" + ` echo "${out}"` + "\n" + ` cat "${err_file}" 1>&2` + "\n" + ` return 1` + "\n" + ` fi` + "\n" + `` + "\n" + ` if ! pong_packets="$(echo "${out}" | grep "rx .* pong packets" | sed -E 's/rx ([0-9]*) pong packets/\1/g')"; then` + "\n" + ` echo "${out}"` + "\n" + ` cat "${err_file}" 1>&2` + "\n" + ` return 1` + "\n" + ` fi` + "\n" + `` + "\n" + ` if [[ "${pong_packets}" == 0 ]]; then` + "\n" + ` echo "${out}"` + "\n" + ` cat "${err_file}" 1>&2` + "\n" + ` return 1` + "\n" + ` fi` + "\n" + `` + "\n" + ` echo "${out}"` + "\n" + ` return 0` + "\n" + `}`) diff --git a/suites/sriov_vlantag/suite.gen.go b/suites/sriov_vlantag/suite.gen.go index d0b3595f87..d855ddb1af 100755 --- a/suites/sriov_vlantag/suite.gen.go +++ b/suites/sriov_vlantag/suite.gen.go @@ -27,17 +27,17 @@ func (s *Suite) SetupSuite() { s.T().Cleanup(func() { r.Run(`kubectl delete mutatingwebhookconfiguration nsm-mutating-webhook` + "\n" + `kubectl delete ns nsm-system`) }) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/sriov?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/sriov?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) } func (s *Suite) TestSriovKernel2NoopVlanTag() { r := s.Runner("../deployments-k8s/examples/use-cases/SriovKernel2NoopVlanTag") s.T().Cleanup(func() { r.Run(`kubectl delete ns ns-sriov-kernel2noop-vlantag`) }) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/use-cases/SriovKernel2NoopVlanTag/ponger?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/use-cases/SriovKernel2NoopVlanTag/ponger?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) r.Run(`kubectl -n ns-sriov-kernel2noop-vlantag wait --for=condition=ready --timeout=1m pod -l app=ponger`) r.Run(`kubectl -n ns-sriov-kernel2noop-vlantag exec deploy/ponger -- ip a | grep "172.16.1.100"`) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/use-cases/SriovKernel2NoopVlanTag?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/use-cases/SriovKernel2NoopVlanTag?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) r.Run(`kubectl -n ns-sriov-kernel2noop-vlantag wait --for=condition=ready --timeout=1m pod -l app=nsc-kernel`) r.Run(`kubectl -n ns-sriov-kernel2noop-vlantag wait --for=condition=ready --timeout=1m pod -l app=nse-noop`) r.Run(`kubectl -n ns-sriov-kernel2noop-vlantag exec deployments/nsc-kernel -- ping -c 4 172.16.1.100`) @@ -48,7 +48,7 @@ func (s *Suite) TestVfio2NoopVlanTag() { r.Run(`kubectl -n ns-vfio2noop-vlantag exec deployments/nse-vfio --container ponger -- /bin/bash -c '\` + "\n" + ` (sleep 10 && kill $(pgrep "pingpong")) 1>/dev/null 2>&1 & \` + "\n" + `'`) r.Run(`kubectl delete ns ns-vfio2noop-vlantag`) }) - r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/use-cases/Vfio2NoopVlanTag?ref=427ab3a9282bc9ef9c98eb9788c04eb2fd70c0b2`) + r.Run(`kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/use-cases/Vfio2NoopVlanTag?ref=d07cec788258d07b1c7a1a79bffe89bb174ab732`) r.Run(`kubectl -n ns-vfio2noop-vlantag wait --for=condition=ready --timeout=1m pod -l app=nsc-vfio`) r.Run(`kubectl -n ns-vfio2noop-vlantag wait --for=condition=ready --timeout=1m pod -l app=nse-vfio`) r.Run(`function dpdk_ping() {` + "\n" + ` err_file="$(mktemp)"` + "\n" + ` trap 'rm -f "${err_file}"' RETURN` + "\n" + `` + "\n" + ` client_mac="$1"` + "\n" + ` server_mac="$2"` + "\n" + `` + "\n" + ` command="/root/dpdk-pingpong/build/pingpong \` + "\n" + ` --no-huge \` + "\n" + ` -- \` + "\n" + ` -n 500 \` + "\n" + ` -c \` + "\n" + ` -C ${client_mac} \` + "\n" + ` -S ${server_mac}` + "\n" + ` "` + "\n" + ` out="$(kubectl -n ns-vfio2noop-vlantag exec deployments/nsc-vfio --container pinger -- /bin/bash -c "${command}" 2>"${err_file}")"` + "\n" + `` + "\n" + ` if [[ "$?" != 0 ]]; then` + "\n" + ` echo "${out}"` + "\n" + ` cat "${err_file}" 1>&2` + "\n" + ` return 1` + "\n" + ` fi` + "\n" + `` + "\n" + ` if ! pong_packets="$(echo "${out}" | grep "rx .* pong packets" | sed -E 's/rx ([0-9]*) pong packets/\1/g')"; then` + "\n" + ` echo "${out}"` + "\n" + ` cat "${err_file}" 1>&2` + "\n" + ` return 1` + "\n" + ` fi` + "\n" + `` + "\n" + ` if [[ "${pong_packets}" == 0 ]]; then` + "\n" + ` echo "${out}"` + "\n" + ` cat "${err_file}" 1>&2` + "\n" + ` return 1` + "\n" + ` fi` + "\n" + `` + "\n" + ` echo "${out}"` + "\n" + ` return 0` + "\n" + `}`)