Skip to content

Commit

Permalink
Merge pull request #401 from networkservicemesh/refactor-parallel-pac…
Browse files Browse the repository at this point in the history
…kage

Refactor 'parallel' package.
  • Loading branch information
denis-tingaikin authored Apr 2, 2024
2 parents f15104d + 4f779ad commit 8a72863
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 5 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module github.com/networkservicemesh/integration-k8s-packet
go 1.20

require (
github.com/networkservicemesh/integration-tests v0.0.0-20240307141021-83f3cb0a8719
github.com/networkservicemesh/integration-tests v0.0.0-20240328125113-c4e9473ac173
github.com/stretchr/testify v1.8.4
)

Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY=
github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE=
github.com/networkservicemesh/gotestmd v0.0.0-20220628095933-eabbdc09e0dc h1:1L/OisEFsOyhwaqeJpYmM1nlJ2dBusUMiszPDBlUip0=
github.com/networkservicemesh/gotestmd v0.0.0-20220628095933-eabbdc09e0dc/go.mod h1:8EWnekTRNX+NxBdTFE24WqUoM7SgJHbiafDBrIIdOmQ=
github.com/networkservicemesh/integration-tests v0.0.0-20240307141021-83f3cb0a8719 h1:0TlXNQ7skuAE0QtSgmIfwEO2FCOkvLk7maSJvlxhn94=
github.com/networkservicemesh/integration-tests v0.0.0-20240307141021-83f3cb0a8719/go.mod h1:WLpOEldvahZQkJSdU3kspIS4tB1x1hDnWP08B/nCTjM=
github.com/networkservicemesh/integration-tests v0.0.0-20240328125113-c4e9473ac173 h1:QQglbOmjw/Eh46jd6miAf4M4uFO58bE22xKT3luI7x8=
github.com/networkservicemesh/integration-tests v0.0.0-20240328125113-c4e9473ac173/go.mod h1:cT5l2gQd8TEjjgoxLEEF9oR2DB4AH/KlLQEeNvba4U4=
github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
Expand Down
10 changes: 9 additions & 1 deletion test/calico-vpp/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
//
// Copyright (c) 2023-2024 Cisco and/or its affiliates.
//
// Copyright (c) 2024 Pragmagic Inc. and/or its affiliates.
//
// SPDX-License-Identifier: Apache-2.0
//
// Licensed under the Apache License, Version 2.0 (the "License");
Expand Down Expand Up @@ -65,5 +67,11 @@ func (s *featuresSuite) BeforeTest(suiteName, testName string) {
}

func TestRunFeatureSuiteCalico(t *testing.T) {
parallel.Run(t, new(featuresSuite), "TestVl3_basic", "TestVl3_dns", "TestScale_from_zero", "TestVl3_scale_from_zero", "TestSelect_forwarder")
featSuite := new(featuresSuite)
parallel.Run(t, featSuite,
parallel.WithRunningTestsSynchronously(
featSuite.TestVl3_dns,
featSuite.TestVl3_scale_from_zero,
featSuite.TestScale_from_zero,
featSuite.TestSelect_forwarder))
}
12 changes: 11 additions & 1 deletion test/default/feature_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
// Copyright (c) 2024 Cisco and/or its affiliates.
//
// Copyright (c) 2024 Pragmagic Inc. and/or its affiliates.
//
// SPDX-License-Identifier: Apache-2.0
//
// Licensed under the Apache License, Version 2.0 (the "License");
Expand All @@ -24,5 +26,13 @@ import (
)

func TestFeatureSuite(t *testing.T) {
parallel.Run(t, new(features.Suite), "TestVl3_ipv6", "TestVl3_dns", "TestVl3_lb", "TestVl3_scale_from_zero", "TestScale_from_zero", "TestSelect_forwarder")
featuresSuite := new(features.Suite)
parallel.Run(t, featuresSuite,
parallel.WithRunningTestsSynchronously(
featuresSuite.TestVl3_ipv6,
featuresSuite.TestVl3_dns,
featuresSuite.TestVl3_lb,
featuresSuite.TestVl3_scale_from_zero,
featuresSuite.TestScale_from_zero,
featuresSuite.TestSelect_forwarder))
}

0 comments on commit 8a72863

Please sign in to comment.