Skip to content

Commit

Permalink
test: add more test cases for CPF merge
Browse files Browse the repository at this point in the history
  • Loading branch information
isc-shuliu committed Jan 15, 2025
1 parent 2d3eac7 commit 65bddb7
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 5 deletions.
9 changes: 7 additions & 2 deletions tests/integration_tests/Test/PM/Integration/CPFMerge.cls
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,13 @@ Method TestCPFMerge()
Do $$$AssertEquals(packageMap.Database, "USER")

// Test role
// Somehow the role cannot be created. Something's wrong with create-roles.cpf
Do $$$AssertTrue(##class(Security.Roles).Exists("MyTestRole", .role))
Do $$$AssertTrue(##class(Security.Roles).Exists("MyTestRole"))

// Test Resource
Do $$$AssertTrue(##class(Security.Resources).Exists("MyTestResource"))

// Test Web Application
Do $$$AssertTrue(##class(Security.Applications).Exists("/csp/my-test-webapp"))
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[Actions]
CreateRole:Name=MyTestRole
CreateResource:Name=MyTestResource,PublicPermission=R
CreateApplication:Name=/csp/my-test-webapp

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<Version>0.0.1</Version>
<Packaging>module</Packaging>
<CPF Name="config-globals.cpf"/>
<CPF Name="create-roles.cpf" Directory="custom-cpf-directory"/>
<CPF Name="actions.cpf" Directory="custom-cpf-directory"/>
<CPF Name="package-mapping.cpf"/>
</Module>
</Document>
Expand Down

0 comments on commit 65bddb7

Please sign in to comment.