testing: Move collector.db in tnc/tnccs-20-ev-pt-tls scenario to /etc/db.d
Also move initialization to the pretest script (it's way faster in the in-memory database).
This commit is contained in:
@@ -3,8 +3,3 @@
|
||||
charon {
|
||||
load = sha1 sha2 md5 aes des hmac pem pkcs1 x509 revocation constraints curve25519 pubkey gmp random nonce curl kernel-netlink socket-default updown stroke vici
|
||||
}
|
||||
|
||||
sw-collector {
|
||||
database = sqlite:///etc/pts/collector.db
|
||||
history = /var/log/apt/history.log
|
||||
}
|
||||
|
||||
@@ -3,8 +3,3 @@
|
||||
charon {
|
||||
load = sha1 sha2 md5 aes des hmac pem pkcs1 x509 revocation constraints curve25519 pubkey gmp random nonce curl kernel-netlink socket-default updown stroke vici
|
||||
}
|
||||
|
||||
sw-collector {
|
||||
database = sqlite:///etc/pts/collector.db
|
||||
history = /var/log/apt/history.log
|
||||
}
|
||||
|
||||
@@ -3,8 +3,3 @@
|
||||
charon {
|
||||
load = sha1 sha2 md5 aes des hmac pem pkcs1 x509 revocation constraints curve25519 pubkey gmp random nonce curl kernel-netlink socket-default updown stroke vici
|
||||
}
|
||||
|
||||
sw-collector {
|
||||
database = sqlite:///etc/pts/collector.db
|
||||
history = /var/log/apt/history.log
|
||||
}
|
||||
|
||||
@@ -3,8 +3,3 @@
|
||||
charon {
|
||||
load = sha1 sha2 md5 aes des hmac pem pkcs1 x509 revocation constraints curve25519 pubkey gmp random nonce curl kernel-netlink socket-default updown stroke vici
|
||||
}
|
||||
|
||||
sw-collector {
|
||||
database = sqlite:///etc/pts/collector.db
|
||||
history = /var/log/apt/history.log
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#! /bin/sh
|
||||
|
||||
cat /usr/local/share/strongswan/templates/database/sw-collector/sw_collector_tables.sql | sqlite3 /etc/pts/collector.db
|
||||
cat /usr/local/share/strongswan/templates/database/sw-collector/sw_collector_tables.sql | sqlite3 /etc/db.d/collector.db
|
||||
LEAK_DETECTIVE_DISABLE=1 /usr/local/sbin/sw-collector
|
||||
|
||||
@@ -3,8 +3,3 @@
|
||||
charon {
|
||||
load = sha1 sha2 md5 aes des hmac pem pkcs1 x509 revocation constraints curve25519 pubkey gmp random nonce curl kernel-netlink socket-default updown stroke vici
|
||||
}
|
||||
|
||||
sw-collector {
|
||||
database = sqlite:///etc/pts/collector.db
|
||||
history = /var/log/apt/history.log
|
||||
}
|
||||
|
||||
@@ -3,8 +3,3 @@
|
||||
charon {
|
||||
load = sha1 sha2 md5 aes des hmac pem pkcs1 x509 revocation constraints curve25519 pubkey gmp random nonce curl kernel-netlink socket-default updown stroke vici
|
||||
}
|
||||
|
||||
sw-collector {
|
||||
database = sqlite:///etc/pts/collector.db
|
||||
history = /var/log/apt/history.log
|
||||
}
|
||||
|
||||
@@ -3,8 +3,3 @@
|
||||
charon {
|
||||
load = sha1 sha2 md5 aes des hmac pem pkcs1 x509 revocation constraints curve25519 pubkey gmp random nonce curl kernel-netlink socket-default updown stroke vici
|
||||
}
|
||||
|
||||
sw-collector {
|
||||
database = sqlite:///etc/pts/collector.db
|
||||
history = /var/log/apt/history.log
|
||||
}
|
||||
|
||||
@@ -3,8 +3,3 @@
|
||||
pki {
|
||||
load = random pem sha1 sha2 sha3 pkcs1 pkcs8 pem gmp mgf1 bliss curve25519 x509
|
||||
}
|
||||
|
||||
sw-collector {
|
||||
database = sqlite:///etc/pts/collector.db
|
||||
history = /var/log/apt/history.log
|
||||
}
|
||||
|
||||
@@ -50,10 +50,6 @@ do
|
||||
execute_chroot "ldconfig" 0
|
||||
execute "mkdir $LOOPDIR/etc/pts" 0
|
||||
|
||||
if [ "$host" = "carol" ]
|
||||
then
|
||||
execute_chroot "/usr/local/bin/init_collector" 0
|
||||
fi
|
||||
if [ "$host" = "alice" ]
|
||||
then
|
||||
execute "mkdir $LOOPDIR/var/log/apache2/tnc" 0
|
||||
|
||||
@@ -51,6 +51,7 @@ do_on_exit umount $LOOPDIR/root/strongswan
|
||||
|
||||
log_action "Remove SWID tags of previous versions"
|
||||
execute_chroot 'find /usr/local/share/regid.2004-03.org.strongswan -name *.swidtag -delete'
|
||||
execute_chroot 'find /usr/local/share/strongswan -name *.swidtag -delete'
|
||||
|
||||
echo "Building and installing strongSwan"
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ libtls {
|
||||
libimcv {
|
||||
plugins {
|
||||
imc-swima {
|
||||
swid_database = sqlite:///etc/pts/collector.db
|
||||
swid_database = sqlite:///etc/db.d/collector.db
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -20,6 +20,7 @@ winnetou::ip route add 10.1.0.0/16 via 192.168.0.1
|
||||
dave::ip route add 10.1.0.0/16 via 192.168.0.1
|
||||
dave::cat /etc/pts/options
|
||||
dave::/usr/local/bin/pt-tls-client --optionsfrom /etc/pts/options
|
||||
carol::/usr/local/bin/init_collector
|
||||
carol::ip route add 10.1.0.0/16 via 192.168.0.1
|
||||
carol::cat /etc/pts/options
|
||||
carol::/usr/local/bin/pt-tls-client --optionsfrom /etc/pts/options
|
||||
|
||||
@@ -22,7 +22,7 @@ IPSECHOSTS="carol moon dave alice"
|
||||
|
||||
# Guest instances on which databases are used
|
||||
#
|
||||
DBHOSTS="alice"
|
||||
DBHOSTS="alice carol"
|
||||
|
||||
# charon controlled by swanctl
|
||||
#
|
||||
|
||||
Reference in New Issue
Block a user