forked from konflux-ci/e2e-tests
-
Notifications
You must be signed in to change notification settings - Fork 0
/
recommended.tmpl
45 lines (36 loc) · 1.33 KB
/
recommended.tmpl
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
42
43
44
45
package {{ .CustomData.PackageName }}
/* This was generated from a template file. Please feel free to update as necessary!
a couple things to note:
- Remember to implement specific logic of the service/domain you are trying to test if it not already there in the pkg/
- To include the tests as part of the E2E Test suite:
- Update the pkg/framework/describe.go to include the `Describe func` of this new test suite, If you haven't already done so.
- Import this new package into the cmd/e2e_test.go
*/
import (
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
"fmt"
"strings"
"time"
"encoding/json"
"context"
"github.com/konflux-ci/e2e-tests/pkg/framework"
//framework imports edit as required
"github.com/konflux-ci/e2e-tests/pkg/constants"
"github.com/konflux-ci/e2e-tests/pkg/utils"
)
{{ range .CustomData.Outline }}
var _ = framework.{{ .Name }}("{{ .Text }}", {{range .Labels }}Label("{{.}}"), {{ end }} func() {
defer GinkgoRecover()
var err error
var f *framework.Framework
// use 'f' to access common controllers or the specific service controllers within the framework
BeforeAll(func() {
// Initialize the tests controllers
f, err = framework.NewFramework()
Expect(err).NotTo(HaveOccurred())
})
// Generated specs:
{{ template "specs" . }}
})
{{ end }}