diff options
author | Marcin Siodelski <marcin@isc.org> | 2016-08-17 13:16:48 +0200 |
---|---|---|
committer | Marcin Siodelski <marcin@isc.org> | 2016-08-17 13:16:48 +0200 |
commit | 540f6ebe8c343495d54ba7afa03fe8db3662cd5c (patch) | |
tree | 9133b8ebc46ec2b4d6e9448e3e4e0f5345d17e5c /src/lib | |
parent | [4489] Addressed review comments. (diff) | |
download | kea-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.cc | 2 | ||||
-rw-r--r-- | src/lib/dhcpsrv/testutils/schema.cc | 1 | ||||
-rw-r--r-- | src/lib/dhcpsrv/testutils/schema.h | 1 |
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; |