summaryrefslogtreecommitdiff
path: root/src/tests
diff options
context:
space:
mode:
authorSimo Sorce <simo@redhat.com>2013-01-08 01:09:54 -0500
committerJakub Hrozek <jhrozek@redhat.com>2013-01-15 10:53:03 +0100
commit965428847850f1b154130e249f2d942c6065e88d (patch)
treee075b1f0766fb2087dd8719a3a642cceddf51e3a /src/tests
parent681742138b2afbbefa7f14de937beb438409208e (diff)
downloadsssd-965428847850f1b154130e249f2d942c6065e88d.tar.gz
sssd-965428847850f1b154130e249f2d942c6065e88d.tar.bz2
sssd-965428847850f1b154130e249f2d942c6065e88d.zip
Add domain arguments to sysdb ssh functions
Diffstat (limited to 'src/tests')
-rw-r--r--src/tests/sysdb_ssh-tests.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/tests/sysdb_ssh-tests.c b/src/tests/sysdb_ssh-tests.c
index 013a1d43..c6990163 100644
--- a/src/tests/sysdb_ssh-tests.c
+++ b/src/tests/sysdb_ssh-tests.c
@@ -173,6 +173,7 @@ static int test_sysdb_store_ssh_host(struct test_data *data)
time_t now = time(NULL);
ret = sysdb_store_ssh_host(data->ctx->sysdb,
+ data->ctx->domain,
data->hostname,
data->alias,
now,
@@ -184,7 +185,8 @@ static int test_sysdb_delete_ssh_host(struct test_data *data)
{
int ret;
- ret = sysdb_delete_ssh_host(data->ctx->sysdb, data->hostname);
+ ret = sysdb_delete_ssh_host(data->ctx->sysdb,
+ data->ctx->domain, data->hostname);
return ret;
}
@@ -194,7 +196,7 @@ static int test_sysdb_get_ssh_host(struct test_data *data)
const char *attrs[] = { SYSDB_NAME, NULL };
ret = sysdb_get_ssh_host(data->ctx, data->ctx->sysdb,
- data->hostname, attrs,
+ data->ctx->domain, data->hostname, attrs,
&data->host);
return ret;