This repository has been archived by the owner on Aug 26, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 28
/
Copy pathsuite.go
41 lines (37 loc) · 1.42 KB
/
suite.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
// Copyright (C) 2020-2022 Red Hat, Inc.
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License along
// with this program; if not, write to the Free Software Foundation, Inc.,
// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
package generic
import (
"github.com/onsi/ginkgo/v2"
"github.com/test-network-function/test-network-function/pkg/config"
"github.com/test-network-function/test-network-function/pkg/tnf/testcases"
"github.com/test-network-function/test-network-function/test-network-function/results"
)
const (
testsKey = "generic"
)
// Runs the "generic" CNF test cases.
var _ = ginkgo.Describe(testsKey, func() {
conf, _ := ginkgo.GinkgoConfiguration()
if testcases.IsInFocus(conf.FocusStrings, testsKey) {
env := config.GetTestEnvironment()
ginkgo.BeforeEach(func() {
env.LoadAndRefresh()
})
ginkgo.ReportAfterEach(results.RecordResult)
ginkgo.AfterEach(env.CloseLocalShellContext)
}
})