@@ -24,7 +24,6 @@ import (
24
24
v1 "github.com/devfile/api/v2/pkg/apis/workspaces/v1alpha2"
25
25
"github.com/devfile/api/v2/pkg/attributes"
26
26
"github.com/golang/mock/gomock"
27
- "github.com/hashicorp/go-multierror"
28
27
buildv1 "github.com/openshift/api/build/v1"
29
28
"github.com/stretchr/testify/assert"
30
29
corev1 "k8s.io/api/core/v1"
@@ -33,9 +32,10 @@ import (
33
32
"k8s.io/apimachinery/pkg/util/intstr"
34
33
"k8s.io/utils/pointer"
35
34
35
+ "github.com/devfile/library/v2/pkg/devfile/parser/data/v2/common"
36
+
36
37
"github.com/devfile/library/v2/pkg/devfile/parser"
37
38
"github.com/devfile/library/v2/pkg/devfile/parser/data"
38
- "github.com/devfile/library/v2/pkg/devfile/parser/data/v2/common"
39
39
"github.com/devfile/library/v2/pkg/testingutil"
40
40
)
41
41
@@ -1809,7 +1809,7 @@ func Test_containerOverridesHandler(t *testing.T) {
1809
1809
comp : v1.Component {
1810
1810
Name : "component2" ,
1811
1811
Attributes : attributes.Attributes {
1812
- ContainerOverridesAttribute : apiextensionsv1.JSON {Raw : []byte ("{\" name\" : \" othername\" ,\" image\" : \" quay.io/other/image\" , \" command\" : \" echo\" , \" args\" : [\" hello world\" ], \" ports\" : [{\" containerPort\" : \" 9090\" }], \" env\" : [{\" name\" :\" somename\" , \" value\" :\" somevalue\" }], \" volumeMounts\" : [{\" name\" :\" volume1\" ,\" mountPath\" :\" /var/www\" }]}" )}},
1812
+ ContainerOverridesAttribute : apiextensionsv1.JSON {Raw : []byte ("{\" name\" : \" othername\" ,\" image\" : \" quay.io/other/image\" , \" command\" : [ \" echo\" ] , \" args\" : [\" hello world\" ], \" ports\" : [{\" containerPort\" :9090}], \" env\" : [{\" name\" :\" somename\" , \" value\" :\" somevalue\" }], \" volumeMounts\" : [{\" name\" :\" volume1\" ,\" mountPath\" :\" /var/www\" }]}" )}},
1813
1813
},
1814
1814
container : getContainer (containerParams {Name : name , Image : image , Command : command , Args : argsSlice }),
1815
1815
},
0 commit comments