Skip to content

Commit 6f6a4e8

Browse files
authored
Merge pull request #109 from EmperorYP7/ctest-full2
test: Added RBAC, Role Manager and removed MS Unit Tests
2 parents 5fc6caa + 70efa6f commit 6f6a4e8

37 files changed

+1526
-3541
lines changed

azure-pipelines.yml

Lines changed: 0 additions & 35 deletions
This file was deleted.

casbin.sln

Lines changed: 0 additions & 44 deletions
This file was deleted.

casbin/abac_data.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ namespace casbin {
3636
* Key's type is std::string and value's type can be one of std::string, int32_t, and float only
3737
* @return Pointer to casbin::ABACData entity
3838
*/
39-
static const std::shared_ptr<ABACData> GetData(const ABACData::VariantMap& attribs) {
39+
const std::shared_ptr<ABACData> GetData(const ABACData::VariantMap& attribs) {
4040
return std::make_shared<ABACData>(attribs);
4141
}
4242

casbin/abac_data.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ class ABACData {
104104
// Casbin ABAC entity type
105105
typedef ABACData ABACData;
106106

107+
const std::shared_ptr<ABACData> GetData(const ABACData::VariantMap& attribs);
107108
}
108109

109110
#endif

casbin/casbin.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,5 @@
2424
#include "persist.h"
2525
#include "util.h"
2626
#include "exception.h"
27+
#include "rbac.h"
28+
#include "abac_data.h"

0 commit comments

Comments
 (0)