-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: add test cases for oras tag conversion
- Loading branch information
1 parent
3d28451
commit ab8a5b4
Showing
3 changed files
with
56 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
Class Test.PM.Integration.OrasTag Extends Test.PM.Integration.Base | ||
{ | ||
|
||
Parameter TargetModuleName As STRING = "oras-tag"; | ||
|
||
Method TestOrasTagConversion() | ||
{ | ||
Set tModuleDir = ..GetModuleDir(..#TargetModuleName) | ||
|
||
Set tSC = ##class(%IPM.Main).Shell("load -verbose " _ tModuleDir) | ||
Do $$$AssertStatusOK(tSC,"Loaded module successfully") | ||
|
||
Set tSC = ##class(%IPM.Main).Shell("repo -delete-all") | ||
Do $$$AssertStatusOK(tSC,"Deleted repos successfully") | ||
|
||
Set tSC = ##class(%IPM.Main).Shell("repo -o -name oras -url http://oras:5000 -publish 1") | ||
Do $$$AssertStatusOK(tSC,"Set up oras module successfully") | ||
|
||
Set tSC = ##class(%IPM.Main).Shell("publish oras-tag -r oras -verbose") | ||
Do $$$AssertStatusOK(tSC,"Published module successfully") | ||
|
||
Set tSC = ##class(%IPM.Main).Shell("uninstall oras-tag") | ||
Do $$$AssertStatusOK(tSC,"Uninstalled module successfully") | ||
|
||
Set tSC = ##class(%IPM.Main).Shell("install oras-tag") | ||
Do $$$AssertStatusOK(tSC,"Installed module from ORAS registry successfully") | ||
|
||
Set tSC = ##class(%IPM.Main).Shell("repo -delete-all") | ||
Do $$$AssertStatusOK(tSC,"Deleted repos successfully") | ||
|
||
Set tSC = ##class(%IPM.Main).Shell("repo -reset-defaults") | ||
Do $$$AssertStatusOK(tSC,"Reset repos to default successfully") | ||
} | ||
|
||
} |
12 changes: 12 additions & 0 deletions
12
tests/integration_tests/Test/PM/Integration/_data/oras-tag/module.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<Export generator="Cache" version="25"> | ||
<Document name="oras-tag.ZPM"> | ||
<Module> | ||
<Name>oras-tag</Name> | ||
<Version>0.0.1-beta.1+build</Version> | ||
<Packaging>module</Packaging> | ||
<SourcesRoot>src</SourcesRoot> | ||
<Resource Name="OrasTag.Main.CLS"/> | ||
</Module> | ||
</Document> | ||
</Export> |
9 changes: 9 additions & 0 deletions
9
tests/integration_tests/Test/PM/Integration/_data/oras-tag/src/OrasTag/Main.cls
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
Class OrasTag.Main | ||
{ | ||
|
||
ClassMethod Main() | ||
{ | ||
Write "This is OrasTag.main" | ||
} | ||
|
||
} |