-
Notifications
You must be signed in to change notification settings - Fork 10
/
types.go
51 lines (36 loc) · 1.6 KB
/
types.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
42
43
44
45
46
47
48
49
50
51
package maestro
import (
"errors"
"time"
"github.com/flomesh-io/fsm/pkg/logger"
)
const (
// TestsPassed is used for tests that passed.
TestsPassed = "passed"
// TestsFailed is used for tests that failed.
TestsFailed = "failed"
// TestsTimedOut is used for tests that timed out.
TestsTimedOut = "timedout"
// FSMNamespaceEnvVar is the environment variable for the FSM namespace.
FSMNamespaceEnvVar = "K8S_NAMESPACE"
// BookbuyerNamespaceEnvVar is the environment variable for the Bookbuyer namespace.
BookbuyerNamespaceEnvVar = "BOOKBUYER_NAMESPACE"
// BookthiefNamespaceEnvVar is the environment variable for the Bookbuyer namespace.
BookthiefNamespaceEnvVar = "BOOKTHIEF_NAMESPACE"
// BookstoreNamespaceEnvVar is the environment variable for the Bookbuyer namespace.
BookstoreNamespaceEnvVar = "BOOKSTORE_NAMESPACE"
// WaitForPodTimeSecondsEnvVar is the environment variable for the time we will wait on the pod to be ready.
WaitForPodTimeSecondsEnvVar = "CI_MAX_WAIT_FOR_POD_TIME_SECONDS"
// WaitForOKSecondsEnvVar is the environment variable for the time to wait till a success is returned by the server.
WaitForOKSecondsEnvVar = "CI_WAIT_FOR_OK_SECONDS"
)
var (
// WaitForPod is the time we wait for a pod to become ready
WaitForPod = 5 * time.Second
// PollLogsFromTimeSince is the interval we go back in time to get pod logs
PollLogsFromTimeSince = 2 * time.Second
// FailureLogsFromTimeSince is the interval we go back in time to get pod logs
FailureLogsFromTimeSince = 10 * time.Minute
log = logger.NewPretty("ci/maestro")
errNoPodsFound = errors.New("no pods found")
)