common_dom.c revision 9cb46bc62f22e0104f1b41a423b014c281ef5fc2
/*
Authors:
Jakub Hrozek <jhrozek@redhat.com>
Copyright (C) 2013 Red Hat
SSSD tests: Common utilities for tests that exercise domains
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 <talloc.h>
#include <errno.h>
struct sss_test_ctx *
const char *tests_path,
const char *confdb_path,
const char *sysdb_path,
const char *domain_name,
const char *id_provider,
struct sss_test_conf_param *params)
{
struct sss_test_ctx *test_ctx;
char *conf_db;
size_t i;
const char *val[2];
char *dompath;
goto fail;
}
goto fail;
}
/* Connect to the conf db */
goto fail;
}
val[0] = domain_name;
goto fail;
}
goto fail;
}
val[0] = id_provider;
goto fail;
}
if (params) {
val);
goto fail;
}
}
}
goto fail;
}
return test_ctx;
fail:
return NULL;
}
void test_dom_suite_setup(const char *tests_path)
{
/* Create tests directory if it doesn't exist */
/* (relative to current dir) */
("Could not create test directory\n"));
}
}
void test_dom_suite_cleanup(const char *tests_path,
const char *confdb_path,
const char *sysdb_path)
{
char *conf_db;
char *sys_db;
("Could not construct db paths\n"));
}
errno = 0;
("Could not delete the test config ldb file (%d) (%s)\n",
}
errno = 0;
("Could not delete the test ldb file (%d) (%s)\n",
}
}