@@ -440,15 +440,15 @@ func testBuildPod(t *testing.T, when spec.G, it spec.S) {
440440 assert .Contains (t ,
441441 pod .Spec .Volumes ,
442442 corev1.Volume {
443- Name : "service- binding-secret -database" ,
443+ Name : "binding-database" ,
444444 VolumeSource : corev1.VolumeSource {
445445 Secret : & corev1.SecretVolumeSource {
446446 SecretName : "database" ,
447447 },
448448 },
449449 },
450450 corev1.Volume {
451- Name : "service- binding-secret -apm" ,
451+ Name : "binding-apm" ,
452452 VolumeSource : corev1.VolumeSource {
453453 Secret : & corev1.SecretVolumeSource {
454454 SecretName : "apm" ,
@@ -461,12 +461,12 @@ func testBuildPod(t *testing.T, when spec.G, it spec.S) {
461461 assert .Contains (t ,
462462 pod .Spec .InitContainers [containerIdx ].VolumeMounts ,
463463 corev1.VolumeMount {
464- Name : "service- binding-secret -database" ,
464+ Name : "binding-database" ,
465465 MountPath : "/platform/bindings/database" ,
466466 ReadOnly : true ,
467467 },
468468 corev1.VolumeMount {
469- Name : "service- binding-secret -apm" ,
469+ Name : "binding-apm" ,
470470 MountPath : "/platform/bindings/apm" ,
471471 ReadOnly : true ,
472472 },
@@ -728,8 +728,8 @@ func testBuildPod(t *testing.T, when spec.G, it spec.S) {
728728 "layers-dir" ,
729729 "platform-dir" ,
730730 "workspace-dir" ,
731- "service- binding-secret -database" ,
732- "service- binding-secret -apm" ,
731+ "binding-database" ,
732+ "binding-apm" ,
733733 }, names (pod .Spec .InitContainers [2 ].VolumeMounts ))
734734 })
735735
@@ -843,8 +843,8 @@ func testBuildPod(t *testing.T, when spec.G, it spec.S) {
843843 "layers-dir" ,
844844 "platform-dir" ,
845845 "workspace-dir" ,
846- "service- binding-secret -database" ,
847- "service- binding-secret -apm" ,
846+ "binding-database" ,
847+ "binding-apm" ,
848848 }, names (pod .Spec .InitContainers [4 ].VolumeMounts ))
849849 })
850850
0 commit comments