@@ -10,7 +10,7 @@ import (
1010 "archive/zip"
1111 "github.com/meshery/meshkit/errors"
1212 "github.com/meshery/meshkit/files"
13- coreV1 "github.com/meshery/schemas/models/core"
13+ "github.com/meshery/schemas/models/core"
1414 "github.com/stretchr/testify/assert"
1515)
1616
@@ -22,7 +22,7 @@ func TestSanitizeFile(t *testing.T) {
2222 expectError bool
2323 expectedErrCode string
2424 expectedContent map [string ]interface {}
25- expectedType coreV1 .IaCFileTypes
25+ expectedType core .IaCFileTypes
2626 }{
2727 {
2828 name : "Valid JSON" ,
@@ -77,59 +77,59 @@ func TestSanitizeFile(t *testing.T) {
7777 name : "Can Identify Design" ,
7878 filePath : "./samples/valid_design.yml" ,
7979 expectedExt : ".yml" ,
80- expectedType : coreV1 .MesheryDesign ,
80+ expectedType : core .MesheryDesign ,
8181 },
8282
8383 {
8484 name : "Can Identify Designs packaged as OCI images" ,
8585 filePath : "./samples/valid-design-oci.tar" ,
8686 expectedExt : ".tar" ,
87- expectedType : coreV1 .MesheryDesign ,
87+ expectedType : core .MesheryDesign ,
8888 },
8989 {
9090 name : "Can Identify Kubernetes Manifest" ,
9191 filePath : "./samples/valid_manifest.yml" ,
9292 expectedExt : ".yml" ,
93- expectedType : coreV1 .K8sManifest ,
93+ expectedType : core .K8sManifest ,
9494 },
9595
9696 {
9797 name : "Can Identify Kubernetes Manifest With Crds" ,
9898 filePath : "./samples/manifest-with-crds.yml" ,
9999 expectedExt : ".yml" ,
100- expectedType : coreV1 .K8sManifest ,
100+ expectedType : core .K8sManifest ,
101101 },
102102
103103 {
104104 name : "Can Identify HelmChart" ,
105105 filePath : "./samples/valid-helm.tgz" ,
106106 expectedExt : ".tgz" ,
107- expectedType : coreV1 .HelmChart ,
107+ expectedType : core .HelmChart ,
108108 },
109109 {
110110 name : "Can Identify Kustomize archive (tar.gz)" ,
111111 filePath : "./samples/wordpress-kustomize.tar.gz" ,
112112 expectedExt : ".gz" ,
113- expectedType : coreV1 .K8sKustomize ,
113+ expectedType : core .K8sKustomize ,
114114 },
115115 {
116116 name : "Can Identify Kustomize archive (zip)" ,
117117 filePath : "./samples/wordpress-kustomize.zip" ,
118118 expectedExt : ".zip" ,
119- expectedType : coreV1 .K8sKustomize ,
119+ expectedType : core .K8sKustomize ,
120120 },
121121 {
122122 name : "Can Identify Docker Compose" ,
123123 filePath : "./samples/valid-docker-compose.yml" ,
124124 expectedExt : ".yml" ,
125- expectedType : coreV1 .DockerCompose ,
125+ expectedType : core .DockerCompose ,
126126 },
127127
128128 {
129129 name : "Can Identify Docker Compose v2" ,
130130 filePath : "./samples/valid-compose-2.yml" ,
131131 expectedExt : ".yml" ,
132- expectedType : coreV1 .DockerCompose ,
132+ expectedType : core .DockerCompose ,
133133 },
134134
135135 // {
0 commit comments