This is an automated email from the ASF dual-hosted git repository.
lburgazzoli pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel-k.git
The following commit(s) were added to refs/heads/master by this push:
new 267b2c1 chore(trait): fix classpath_test after migrating to knative
0.7.1
267b2c1 is described below
commit 267b2c15259581cc3346e39e0e80dfaf5b21057a
Author: lburgazzoli <[email protected]>
AuthorDate: Tue Jul 23 08:28:42 2019 +0200
chore(trait): fix classpath_test after migrating to knative 0.7.1
---
pkg/trait/classpath_test.go | 16 +++++++---------
1 file changed, 7 insertions(+), 9 deletions(-)
diff --git a/pkg/trait/classpath_test.go b/pkg/trait/classpath_test.go
index 8f5d5d1..a9412df 100644
--- a/pkg/trait/classpath_test.go
+++ b/pkg/trait/classpath_test.go
@@ -139,15 +139,13 @@ func TestConfigureClasspathTraitWithKNativeResource(t
*testing.T) {
VolumeMounts: []corev1.VolumeMount{{MountPath: "/mount/path"}},
}
- s := serving.Service{
- Spec: serving.ServiceSpec{
- RunLatest: &serving.RunLatestType{
- Configuration: serving.ConfigurationSpec{
- RevisionTemplate:
serving.RevisionTemplateSpec{
- Spec: serving.RevisionSpec{
- Container: container,
- },
- },
+ s := serving.Service{}
+ s.Spec.ConfigurationSpec.Template = &serving.RevisionTemplateSpec{}
+ s.Spec.ConfigurationSpec.Template.Spec.Containers = []corev1.Container{
+ {
+ VolumeMounts: []corev1.VolumeMount{
+ {
+ MountPath: "/mount/path",
},
},
},