Leosac
0.8.0
Open Source Access Control
|
#include "core/auth/Interfaces/IAuthSourceMapper.hpp"
#include "core/auth/User.hpp"
#include "core/credentials/PinCode.hpp"
#include "core/credentials/RFIDCard.hpp"
#include "core/credentials/RFIDCardPin.hpp"
#include "modules/auth/auth-file/FileAuthSourceMapper.hpp"
#include "tools/unixshellscript.hpp"
#include <chrono>
#include <exception/moduleexception.hpp>
#include <gtest/gtest.h>
Go to the source code of this file.
Classes | |
class | Leosac::Test::AuthFileMapperTest |
Test the mapping of wiegand-card to user from a file. More... | |
Namespaces | |
Leosac | |
This is the header file for a generated source file, GitSHA1.cpp. | |
Leosac::Test | |
Unit test live in this namespace. | |
Functions | |
Leosac::Test::TEST_F (AuthFileMapperTest, SimpleMapping) | |
Successful mapping. More... | |
Leosac::Test::TEST_F (AuthFileMapperTest, TimeFrameMapping) | |
Test that time frame for access a properly loaded and that the AccessProfile is coherent with the configuration file. More... | |
Leosac::Test::TEST_F (AuthFileMapperTest, TimeFrameMapping2) | |
Test time frame with default_schedule param. More... | |
Leosac::Test::TEST_F (AuthFileMapperTest, NotFoundMapping) | |
Card ID doesn't exist in the file. More... | |
Leosac::Test::TEST_F (AuthFileMapperTest, InvalidFile) | |
File is not accessible. More... | |
Leosac::Test::TEST_F (AuthFileMapperTest, InvalidFileContent) | |
AuthFile-2.xml has invalid content. More... | |
Leosac::Test::TEST_F (AuthFileMapperTest, TestGroupMapping) | |
Leosac::Test::TEST_F (AuthFileMapperTest, TestMultiGroupMapping) | |
Leosac::Test::TEST_F (AuthFileMapperTest, TestGroupPermission) | |
Test that group permission applies to user. More... | |
Leosac::Test::TEST_F (AuthFileMapperTest, TestMultiGroupPermission) | |
Tests that permissions from multiple groups are added together. More... | |
Leosac::Test::TEST_F (AuthFileMapperTest, TestGroupAndUserPermission) | |
Tests that single-user permission and group permission works well together. More... | |
Leosac::Test::TEST_F (AuthFileMapperTest, UnkownCardId) | |
Leosac::Test::TEST_F (AuthFileMapperTest, TestWiegandCardAndPin) | |
Leosac::Test::TEST_F (AuthFileMapperTest, TestUserValidityLimit) | |
Leosac::Test::TEST_F (AuthFileMapperTest, TestCredentialsValidityLimit) | |
Leosac::Test::TEST_F (AuthFileMapperTest, TestCredentialSchedule) | |
Leosac::Test::TEST_F (AuthFileMapperTest, TestReservedUserID) | |
UserID UNKNOWN_USER is reserved to prevent confusion in the log file. More... | |
int | main (int argc, char **argv) |
This file contains unit test suite related to the AuthFile module.
Definition in file AuthFile.cpp.
int main | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 535 of file AuthFile.cpp.