summaryrefslogtreecommitdiffstats
path: root/src/lib
diff options
context:
space:
mode:
authorMarcin Siodelski <marcin@isc.org>2016-08-17 13:16:48 +0200
committerMarcin Siodelski <marcin@isc.org>2016-08-17 13:16:48 +0200
commit540f6ebe8c343495d54ba7afa03fe8db3662cd5c (patch)
tree9133b8ebc46ec2b4d6e9448e3e4e0f5345d17e5c /src/lib
parent[4489] Addressed review comments. (diff)
downloadkea-540f6ebe8c343495d54ba7afa03fe8db3662cd5c.tar.xz
kea-540f6ebe8c343495d54ba7afa03fe8db3662cd5c.zip
[4489] Using keatest_readonly db user for read only mode tests.
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/dhcpsrv/tests/generic_host_data_source_unittest.cc2
-rw-r--r--src/lib/dhcpsrv/testutils/schema.cc1
-rw-r--r--src/lib/dhcpsrv/testutils/schema.h1
3 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/dhcpsrv/tests/generic_host_data_source_unittest.cc b/src/lib/dhcpsrv/tests/generic_host_data_source_unittest.cc
index fe4560a40b..0eb683ef81 100644
--- a/src/lib/dhcpsrv/tests/generic_host_data_source_unittest.cc
+++ b/src/lib/dhcpsrv/tests/generic_host_data_source_unittest.cc
@@ -534,7 +534,7 @@ GenericHostDataSourceTest::testReadOnlyDatabase(const char* valid_db_type) {
HostDataSourceFactory::create(connectionString(valid_db_type,
VALID_NAME,
VALID_HOST,
- VALID_USER,
+ VALID_READONLY_USER,
VALID_PASSWORD,
VALID_READONLY_DB));
diff --git a/src/lib/dhcpsrv/testutils/schema.cc b/src/lib/dhcpsrv/testutils/schema.cc
index f782f27f34..b373363dc7 100644
--- a/src/lib/dhcpsrv/testutils/schema.cc
+++ b/src/lib/dhcpsrv/testutils/schema.cc
@@ -25,6 +25,7 @@ const char* INVALID_NAME = "name=invalidname";
const char* VALID_HOST = "host=localhost";
const char* INVALID_HOST = "host=invalidhost";
const char* VALID_USER = "user=keatest";
+const char* VALID_READONLY_USER = "user=keatest_readonly";
const char* INVALID_USER = "user=invaliduser";
const char* VALID_PASSWORD = "password=keatest";
const char* INVALID_PASSWORD = "password=invalid";
diff --git a/src/lib/dhcpsrv/testutils/schema.h b/src/lib/dhcpsrv/testutils/schema.h
index 97c4627f1b..14d04abb6e 100644
--- a/src/lib/dhcpsrv/testutils/schema.h
+++ b/src/lib/dhcpsrv/testutils/schema.h
@@ -21,6 +21,7 @@ extern const char* INVALID_NAME;
extern const char* VALID_HOST;
extern const char* INVALID_HOST;
extern const char* VALID_USER;
+extern const char* VALID_READONLY_USER;
extern const char* INVALID_USER;
extern const char* VALID_PASSWORD;
extern const char* INVALID_PASSWORD;