wiki:test

This page contains reports about manual/automated testing of Kea components:

kea-admin

Kea provides tool for manage databases. kea-admin component is able to: initialize new database, check version of existing database, and perform a database upgrade. It has two mandatory components: command and backend and needs specify database details like database name and password (e.g. ./kea-admin lease-init mysql --user user-name --password user-pass --name database-name)

kea-admin memfile mysql pgsql
lease-init NOT IMPLEMENTED IMPLEMENTED in Kea 0.9.1 NOT IMPLEMENTED
lease-version NOT IMPLEMENTED IMPLEMENTED in Kea 0.9.1 NOT IMPLEMENTED
lease-upgrade NOT IMPLEMENTED IMPLEMENTED in Kea 0.9.1 NOT IMPLEMENTED

Manual tests for MySQL support were performed in March 2015 with Kea 0.9.1-beta (see the release notes) and MySQL 5.5.41

Scenario no. Test conditions Command Result Expected Result Database result Test Status
1 MySQL server NOT installed lease-init Error Message kea_clean_install/sbin/kea-admin: mysql: not found no effect PASS
2 MySQL server NOT installed lease-version Error Message kea_clean_install/sbin/kea-admin: mysql: not found no effect PASS
3 MySQL server NOT installed lease-upgrade Error Message kea_clean_install/sbin/kea-admin: mysql: not found no effect PASS
4 MySQL server installed
user NOT created
lease-init Error Message ERROR 1045 (28000): Access denied for user 'keauser'@'localhost' (using password: YES) mysql returned status code 1 no effect PASS
5 MySQL server installed
user NOT created
lease-version Error Message ERROR 1045 (28000): Access denied for user 'keauser'@'localhost' (using password: YES) no effect PASS
6 MySQL server installed
user NOT created
lease-upgrade Error Message ERROR 1045 (28000): Access denied for user 'keauser'@'localhost' (using password: YES) This script upgrades 1.0 to 2.0. Reported version is . Skipping upgrade. no effect PASS
7 MySQL server installed
user created
without database
lease-init DB created Lease DB version reported after initialization: 2.0 new database created PASS
8 MySQL server installed
user created
without database
lease-version Error Message ERROR 1146 (42S02) at line 1: Table 'kea.schema_version' doesn't exist no effect PASS
9 MySQL server installed
user created
without database
lease-upgrade Error Message Lease DB version reported after upgrade: ERROR 1146 (42S02) at line 1: Table 'kea.schema_version' doesn't exist no effect PASS
10 MySQL server installed
user created
with database version 1.0
lease-init (using the same db name as existing one Error Message Checking if there is a database initialized already. Please ignore errors. ERROR/kea-admin: Expected empty database kea, but there are 4 tables:
lease4
lease6
lease6_types
schema_version. Aborting.
existing db not effected
new database not created
PASS
11 MySQL server installed
user created
with database version 1.0
lease-version It should return version number 1.0 1.0 no effect PASS
12 MySQL server installed
user created
with database version 1.0
lease-upgrade Upgrade database Lease DB version reported before upgrade: 1.0
Lease DB version reported after upgrade: 2.0
CHANGES APPLIED!
Database upgraded (new columns) PASS
13 MySQL server installed
user created
with database version 1.0
with working DHCP server
with leases in database
lease-init Error Message Checking if there is a database initialized already. Please ignore errors. ERROR/kea-admin: Expected empty database kea, but there are 4 tables:
lease4
lease6
lease6_types
schema_version. Aborting.
existing db not effected
new database not created
PASS
14 MySQL server installed
user created
with database version 1.0
with working DHCP server
with leases in database
lease-version It should return version number 1.0 1.0 no effect PASS
15 MySQL server installed
user created
with database version 1.0
with working DHCP server
with leases in database
lease-upgrade Upgrade database Lease DB version reported before upgrade: 1.0
Lease DB version reported after upgrade: 2.0
CHANGES APPLIED!
database schema and leases updated
dhcp server work not interrupted
PASS

keactrl

keactrl is a shell script which controls the startup, shutdown and reconfiguration of the Kea servers. Automated tests cover process of:

  • start
  • stop
  • reload
  • status

with default config file and option for overriding server selection on shells:

  • GNU bash, version 4.3.11(1)-release (x86_64-pc-linux-gnu)

kea configure options

Manual tests covered both buildin libtool options and Kea specific. Tests were performed in March 2015 with Kea 0.9.1-beta. See the release notes.

Buildin options:

Option Status Comment
-h, --help OK
--help=short OK
--help=recursive OK
-V, --version OK
-q, --quiet, --silent OK
--cache-file=FILE OK
-n, --no-create OK
--srcdir=DIR OK See ticket #3640
--prefix=PREFIX OK
--exec-prefix=EPREFIX OK
--bindir=DIR OK
--sbindir=DIR OK
--libexecdir=DIR OK
--sysconfdir=DIR OK
--sharedstatedir=DIR OK
--localstatedir=DIR OK
--libdir=DIR OK
--includedir=DIR OK
--oldincludedir=DIR OK
--datarootdir=DIR OK
--datadir=DIR OK
--infodir=DIR NOT APPLICABLE Not used in Kea
--localedir=DIR NOT APPLICABLE Not used in Kea
--mandir=DIR OK
--docdir=DIR OK
--htmldir=DIR OK
--dvidir=DIR NOT APPLICABLE Kea does not include dvi docs
--pdfdir=DIR NOT APPLICABLE Kea in default does not include pdf docs
pdf can be generated manually
--psdir=DIR NOT APPLICABLE Kea does not include ps docs
--program-prefix=PREFIX OK
--program-suffix=SUFFIX OK
--program-transform-name=PROGRAM OK
--build=BUILD OK
--host=HOST OK
--with-PACKAGE[=ARG] OK
--without-PACKAGE NOT APPLICABLE Right now Kea is not supporting partial compile
use of that option will resolve in configure error
--with-pic[=PKGS] NOT APPLICABLE Kea is not using pic_mode
--with-gnu-ld OK

Kea specific options

Option Status Comment
--disable-option-checking OK
--disable-FEATURE NOT APPLICABLE Right now Kea is not supporting partial compile
--enable-FEATURE[=ARG] NOT APPLICABLE Right now Kea is not supporting partial compile
--enable-silent-rules OK
--disable-silent-rules OK
--enable-dependency-tracking OK
--disable-dependency-tracking OK
--enable-debug NOT APPLICABLE Right now Kea is not using DEBUG_ENABLED / ENABLE_DEBUG
--enable-shared[=PKGS] OK Kea requires shared libraries to be built
--enable-static[=PKGS] OK --enable-static=yes
--enable-static=no
working correctly
--enable-fast-install[=PKGS] OK
--disable-libtool-lock OK
--disable-rpath FAIL See ticket #3738
--enable-static-link OK
--enable-generate-docs OK
--enable-logger-checks OK
--disable-install-configurations OK
--with-werror OK
--with-pythonpath=PATH OK
--with-gtest-source=PATH OK
--with-gtest=PATH OK
--with-lcov=PROGRAM OK
--with-openssl[=PATH] OK
--with-botan-config=PATH OK
--with-dhcp-mysql=PATH OK
--with-dhcp-pgsql=PATH OK
--with-log4cplus=PATH OK
--with-boost-include=PATH OK
--with-kea-config FAIL See ticket #3732
Last modified 2 years ago Last modified on Mar 16, 2015, 3:36:54 PM