Skip to content

Commit 9eb5c3b

Browse files
committed
Remove unrelevant unit test case
Signed-off-by: Hasan Turken <[email protected]>
1 parent c925b7f commit 9eb5c3b

File tree

1 file changed

+1
-27
lines changed

1 file changed

+1
-27
lines changed

fn_test.go

Lines changed: 1 addition & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,9 @@ import (
77
"github.com/google/go-cmp/cmp"
88
"github.com/google/go-cmp/cmp/cmpopts"
99
"google.golang.org/protobuf/testing/protocmp"
10-
"google.golang.org/protobuf/types/known/durationpb"
1110

1211
"github.com/crossplane/crossplane-runtime/pkg/logging"
1312
fnv1beta1 "github.com/crossplane/function-sdk-go/proto/v1beta1"
14-
"github.com/crossplane/function-sdk-go/resource"
15-
"github.com/crossplane/function-sdk-go/response"
1613
)
1714

1815
func TestRunFunction(t *testing.T) {
@@ -31,30 +28,7 @@ func TestRunFunction(t *testing.T) {
3128
args args
3229
want want
3330
}{
34-
"ResponseIsReturned": {
35-
reason: "The Function should return a fatal result if no input was specified",
36-
args: args{
37-
req: &fnv1beta1.RunFunctionRequest{
38-
Meta: &fnv1beta1.RequestMeta{Tag: "hello"},
39-
Input: resource.MustStructJSON(`{
40-
"apiVersion": "template.fn.crossplane.io/v1beta1",
41-
"kind": "Input",
42-
"example": "Hello, world"
43-
}`),
44-
},
45-
},
46-
want: want{
47-
rsp: &fnv1beta1.RunFunctionResponse{
48-
Meta: &fnv1beta1.ResponseMeta{Tag: "hello", Ttl: durationpb.New(response.DefaultTTL)},
49-
Results: []*fnv1beta1.Result{
50-
{
51-
Severity: fnv1beta1.Severity_SEVERITY_NORMAL,
52-
Message: "I was run with input \"Hello, world\"!",
53-
},
54-
},
55-
},
56-
},
57-
},
31+
// TODO: Add test cases.
5832
}
5933

6034
for name, tc := range cases {

0 commit comments

Comments
 (0)