diff options
author | Tobias Brunner <tobias@strongswan.org> | 2014-10-07 12:01:05 +0200 |
---|---|---|
committer | Tobias Brunner <tobias@strongswan.org> | 2014-10-07 12:18:25 +0200 |
commit | 8f9016b1e21beea947479de812541f32c60c4159 (patch) | |
tree | 7cd02120caf82c12a67b4bb4bdc0718206691986 /testing/tests/tnc/tnccs-11-radius-pts | |
parent | 93fac61da535d9329e37567cc8d07bd5305020a5 (diff) | |
download | strongswan-8f9016b1e21beea947479de812541f32c60c4159.tar.bz2 strongswan-8f9016b1e21beea947479de812541f32c60c4159.tar.xz |
testing: Make TNC scenarios agnostic to the actual Debian version
The scenarios will work with new or old base images as long as the version
in use is included as product in the master data (src/libimcv/imv/data.sql).
Diffstat (limited to 'testing/tests/tnc/tnccs-11-radius-pts')
-rw-r--r-- | testing/tests/tnc/tnccs-11-radius-pts/hosts/alice/etc/pts/data1.sql | 8 | ||||
-rw-r--r-- | testing/tests/tnc/tnccs-11-radius-pts/pretest.dat | 1 |
2 files changed, 5 insertions, 4 deletions
diff --git a/testing/tests/tnc/tnccs-11-radius-pts/hosts/alice/etc/pts/data1.sql b/testing/tests/tnc/tnccs-11-radius-pts/hosts/alice/etc/pts/data1.sql index 8b36df5e3..d87b5e7f9 100644 --- a/testing/tests/tnc/tnccs-11-radius-pts/hosts/alice/etc/pts/data1.sql +++ b/testing/tests/tnc/tnccs-11-radius-pts/hosts/alice/etc/pts/data1.sql @@ -1,10 +1,10 @@ /* Devices */ INSERT INTO devices ( /* 1 */ - value, product, created -) VALUES ( - 'aabbccddeeff11223344556677889900', 42, 1372330615 -); + value, product, created +) +SELECT 'aabbccddeeff11223344556677889900', id, 1372330615 +FROM products WHERE name = 'Debian DEBIAN_VERSION x86_64'; /* Groups Members */ diff --git a/testing/tests/tnc/tnccs-11-radius-pts/pretest.dat b/testing/tests/tnc/tnccs-11-radius-pts/pretest.dat index 7541a2adb..03b24747e 100644 --- a/testing/tests/tnc/tnccs-11-radius-pts/pretest.dat +++ b/testing/tests/tnc/tnccs-11-radius-pts/pretest.dat @@ -5,6 +5,7 @@ carol::echo 0 > /proc/sys/net/ipv4/ip_forward dave::echo aabbccddeeff11223344556677889900 > /var/lib/dbus/machine-id alice::ln -s /etc/freeradius/sites-available/inner-tunnel-second /etc/freeradius/sites-enabled/inner-tunnel-second alice::cat /etc/freeradius/sites-enabled/inner-tunnel-second +alice::sed -i "s:DEBIAN_VERSION:\`cat /etc/debian_version\`:" /etc/pts/data1.sql alice::cd /usr/local/share/strongswan/templates/database/imv; cat tables.sql data.sql /etc/pts/data1.sql | sqlite3 /etc/pts/config.db alice::LEAK_DETECTIVE_DISABLE=1 LOG4CXX_CONFIGURATION=/etc/tnc/log4cxx.properties radiusd alice::cat /etc/tnc_config |