-
Notifications
You must be signed in to change notification settings - Fork 550
/
test_utils.go
51 lines (43 loc) · 1.09 KB
/
test_utils.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 events
import (
"github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core"
"github.com/flyteorg/flyte/flytepropeller/pkg/controller/config"
)
var inlineEventConfig = &config.EventConfig{
RawOutputPolicy: config.RawOutputPolicyInline,
}
var inlineEventConfigFallback = &config.EventConfig{
RawOutputPolicy: config.RawOutputPolicyInline,
FallbackToOutputReference: true,
}
var referenceEventConfig = &config.EventConfig{
RawOutputPolicy: config.RawOutputPolicyReference,
}
var referenceURI = "s3://foo/bar/outputs.pb"
var deckURI = "s3://foo/bar/deck.html"
var outputData = &core.LiteralMap{
Literals: map[string]*core.Literal{
"foo": {
Value: &core.Literal_Scalar{
Scalar: &core.Scalar{
Value: &core.Scalar_Primitive{
Primitive: &core.Primitive{
Value: &core.Primitive_Integer{
Integer: 4,
},
},
},
},
},
},
},
}
var workflowExecID = &core.WorkflowExecutionIdentifier{
Project: "p",
Domain: "d",
Name: "n",
}
var nodeExecID = &core.NodeExecutionIdentifier{
ExecutionId: workflowExecID,
NodeId: "node_id",
}