Skip to content

Commit fb87401

Browse files
committed
fix: client
1 parent 0ef8ad5 commit fb87401

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

apis/tests/v3/test_conversion.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ func (src *Test) ConvertTo(dstRaw conversion.Hub) error {
5252
if src.Spec.Content != nil {
5353
dst.Spec.Content = &testkubev2.TestContent{
5454
Data: src.Spec.Content.Data,
55-
Type_: src.Spec.Content.Type_,
55+
Type_: string(src.Spec.Content.Type_),
5656
Uri: src.Spec.Content.Uri,
5757
}
5858
}
@@ -112,7 +112,7 @@ func (dst *Test) ConvertFrom(srcRaw conversion.Hub) error {
112112
if src.Spec.Content != nil {
113113
dst.Spec.Content = &TestContent{
114114
Data: src.Spec.Content.Data,
115-
Type_: src.Spec.Content.Type_,
115+
Type_: TestContentType(src.Spec.Content.Type_),
116116
Uri: src.Spec.Content.Uri,
117117
}
118118
}

apis/testsuite/v2/testsuite_conversion.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ func (src *TestSuite) ConvertTo(dstRaw conversion.Hub) error {
5858
for i := range stepType.Source {
5959
value := stepType.Source[i]
6060
step := testkubev1.TestSuiteStepSpec{
61-
Type: value.Type,
61+
Type: string(value.Type),
6262
}
6363

6464
if value.Delay != nil {
@@ -132,7 +132,7 @@ func (dst *TestSuite) ConvertFrom(srcRaw conversion.Hub) error {
132132
for i := range stepType.source {
133133
value := stepType.source[i]
134134
step := TestSuiteStepSpec{
135-
Type: value.Type,
135+
Type: TestSuiteStepType(value.Type),
136136
}
137137

138138
if value.Delay != nil {

0 commit comments

Comments
 (0)