Leosac  0.8.0
Open Source Access Control
Leosac::Test::AuthFileMapperTest Class Reference

Test the mapping of wiegand-card to user from a file. More...

+ Inheritance diagram for Leosac::Test::AuthFileMapperTest:
+ Collaboration diagram for Leosac::Test::AuthFileMapperTest:

Public Member Functions

 AuthFileMapperTest ()
 
 ~AuthFileMapperTest ()
 
bool is_in_group (const std::string &user_name, const std::string &group_name, IAuthSourceMapper *mapper)
 

Public Attributes

std::chrono::system_clock::time_point date_monday_12_00
 
std::chrono::system_clock::time_point date_monday_16_31
 
std::chrono::system_clock::time_point date_sunday_18_50
 
std::chrono::system_clock::time_point date_wednesday_23_42
 
std::chrono::system_clock::time_point date_thursday_14_00
 
AuthTargetPtr doorA_
 
AuthTargetPtr doorB_
 
AuthTargetPtr doorC_
 
IAuthSourceMappermapper_
 
IAuthSourceMappermapper2_
 
IAuthSourceMappermapper3_
 
IAuthSourceMappermapper4_
 
IAuthSourceMappermapper5_
 
IAuthSourceMappermapper6_
 
IAuthSourceMappermapper7_
 
Cred::RFIDCardPtr my_card_
 
Cred::RFIDCardPtr my_card2_
 
Cred::RFIDCardPtr unknown_card_
 
Cred::PinCodePtr my_pin_
 
Cred::RFIDCardPinPtr card_and_pin_
 

Detailed Description

Test the mapping of wiegand-card to user from a file.

Note
This test suite use the AuthFile-*.xml files.

Definition at line 56 of file AuthFile.cpp.

Constructor & Destructor Documentation

◆ AuthFileMapperTest()

Leosac::Test::AuthFileMapperTest::AuthFileMapperTest ( )
inline

Definition at line 59 of file AuthFile.cpp.

◆ ~AuthFileMapperTest()

Leosac::Test::AuthFileMapperTest::~AuthFileMapperTest ( )
inline

Definition at line 138 of file AuthFile.cpp.

Member Function Documentation

◆ is_in_group()

bool Leosac::Test::AuthFileMapperTest::is_in_group ( const std::string &  user_name,
const std::string &  group_name,
IAuthSourceMapper mapper 
)
inline

Definition at line 149 of file AuthFile.cpp.

Member Data Documentation

◆ card_and_pin_

Cred::RFIDCardPinPtr Leosac::Test::AuthFileMapperTest::card_and_pin_

Definition at line 191 of file AuthFile.cpp.

◆ date_monday_12_00

std::chrono::system_clock::time_point Leosac::Test::AuthFileMapperTest::date_monday_12_00

Definition at line 167 of file AuthFile.cpp.

◆ date_monday_16_31

std::chrono::system_clock::time_point Leosac::Test::AuthFileMapperTest::date_monday_16_31

Definition at line 168 of file AuthFile.cpp.

◆ date_sunday_18_50

std::chrono::system_clock::time_point Leosac::Test::AuthFileMapperTest::date_sunday_18_50

Definition at line 169 of file AuthFile.cpp.

◆ date_thursday_14_00

std::chrono::system_clock::time_point Leosac::Test::AuthFileMapperTest::date_thursday_14_00

Definition at line 171 of file AuthFile.cpp.

◆ date_wednesday_23_42

std::chrono::system_clock::time_point Leosac::Test::AuthFileMapperTest::date_wednesday_23_42

Definition at line 170 of file AuthFile.cpp.

◆ doorA_

AuthTargetPtr Leosac::Test::AuthFileMapperTest::doorA_

Definition at line 172 of file AuthFile.cpp.

◆ doorB_

AuthTargetPtr Leosac::Test::AuthFileMapperTest::doorB_

Definition at line 173 of file AuthFile.cpp.

◆ doorC_

AuthTargetPtr Leosac::Test::AuthFileMapperTest::doorC_

Definition at line 174 of file AuthFile.cpp.

◆ mapper2_

IAuthSourceMapper* Leosac::Test::AuthFileMapperTest::mapper2_

Definition at line 177 of file AuthFile.cpp.

◆ mapper3_

IAuthSourceMapper* Leosac::Test::AuthFileMapperTest::mapper3_

Definition at line 178 of file AuthFile.cpp.

◆ mapper4_

IAuthSourceMapper* Leosac::Test::AuthFileMapperTest::mapper4_

Definition at line 180 of file AuthFile.cpp.

◆ mapper5_

IAuthSourceMapper* Leosac::Test::AuthFileMapperTest::mapper5_

Definition at line 182 of file AuthFile.cpp.

◆ mapper6_

IAuthSourceMapper* Leosac::Test::AuthFileMapperTest::mapper6_

Definition at line 184 of file AuthFile.cpp.

◆ mapper7_

IAuthSourceMapper* Leosac::Test::AuthFileMapperTest::mapper7_

Definition at line 186 of file AuthFile.cpp.

◆ mapper_

IAuthSourceMapper* Leosac::Test::AuthFileMapperTest::mapper_

Definition at line 175 of file AuthFile.cpp.

◆ my_card2_

Cred::RFIDCardPtr Leosac::Test::AuthFileMapperTest::my_card2_

Definition at line 188 of file AuthFile.cpp.

◆ my_card_

Cred::RFIDCardPtr Leosac::Test::AuthFileMapperTest::my_card_

Definition at line 187 of file AuthFile.cpp.

◆ my_pin_

Cred::PinCodePtr Leosac::Test::AuthFileMapperTest::my_pin_

Definition at line 190 of file AuthFile.cpp.

◆ unknown_card_

Cred::RFIDCardPtr Leosac::Test::AuthFileMapperTest::unknown_card_

Definition at line 189 of file AuthFile.cpp.


The documentation for this class was generated from the following file: