Skip to content

Commit 1fd60b6

Browse files
authored
Merge pull request #661 from aabidsofi19/add-identification-support
add test-case for oci detection
2 parents be631d9 + ca08cd8 commit 1fd60b6

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed
6.5 KB
Binary file not shown.

files/tests/sanitization_test.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,13 @@ func TestSanitizeFile(t *testing.T) {
7575
expectedExt: ".yml",
7676
expectedType: core.IacFileTypes.MESHERY_DESIGN,
7777
},
78+
79+
{
80+
name: "Can Identify Designs packaged as OCI images",
81+
filePath: "./samples/valid-design-oci.tar",
82+
expectedExt: ".tar",
83+
expectedType: core.IacFileTypes.MESHERY_DESIGN,
84+
},
7885
{
7986
name: "Can Identify Kubernetes Manifest",
8087
filePath: "./samples/valid_manifest.yml",

0 commit comments

Comments
 (0)