simple_access-tests.c revision c8119652b17229a5aca9b110365c310a6afdce30
/*
SSSD
Simple access module -- Tests
Authors:
Sumit Bose <sbose@redhat.com>
Copyright (C) 2010 Red Hat
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include <stdlib.h>
#include <popt.h>
#include <check.h>
#include "providers/simple/simple_access.h"
void setup_simple(void)
{
}
void teardown_simple(void)
{
int ret;
}
{
int ret;
bool access_granted = false;
"while both lists are empty.");
}
{
int ret;
bool access_granted = true;
"while user is in deny list.");
"while user is not in deny list.");
}
{
int ret;
bool access_granted = false;
"while user is in allow list.");
"while user is not in allow list.");
}
{
int ret;
bool access_granted = false;
"while user is in deny list.");
"while user is not in allow list.");
}
{
int ret;
bool access_granted = false;
"for user with different case "
"in case-sensitive domain");
"for user with different case "
"in case-insensitive domain");
}
Suite *access_simple_suite (void)
{
return s;
}
{
int opt;
int number_failed;
struct poptOption long_options[] = {
};
/* Set debug level to invalid value so we can deside if -d 0 was used. */
switch(opt) {
default:
return 1;
}
}
Suite *s = access_simple_suite();
}