testing: Install a package via apt-get to get a second SWIMA software event

This installs tmux and its two dependencies libevent-2.0-5 and libutempter0.
For the tnc/tnccs-20-ev-pt-tls test scenario older, apparently replaced
versions of these packages are entered to the collector.db database, so that
dummy SWID tags for these packages can be requested via SWIMA.
This commit is contained in:
Tobias Brunner
2018-11-21 14:33:29 +01:00
parent b217bdf75f
commit 7511a6fd9c
4 changed files with 47 additions and 1 deletions
@@ -0,0 +1,39 @@
/* SW Identifiers */
INSERT INTO sw_identifiers (
name, package, version, source, installed
) VALUES (
'strongswan.org__Debian_DEBIAN_VERSION-x86_64-libutempter0-1.1.5', 'libutempter0', '1.1.5', 1, 0
);
INSERT INTO sw_identifiers (
name, package, version, source, installed
) VALUES (
'strongswan.org__Debian_DEBIAN_VERSION-x86_64-libevent-2.0-5-2.0.20', 'libevent-2.0-5', '2.0.20', 1, 0
);
INSERT INTO sw_identifiers (
name, package, version, source, installed
) VALUES (
'strongswan.org__Debian_DEBIAN_VERSION-x86_64-tmux-2.2', 'tmux', '2.2', 1, 0
);
/* SW Events */
INSERT INTO sw_events (
eid, sw_id, action
) VALUES (
2, 1, 2
);
INSERT INTO sw_events (
eid, sw_id, action
) VALUES (
2, 2, 2
);
INSERT INTO sw_events (
eid, sw_id, action
) VALUES (
2, 3, 2
);
@@ -1,6 +1,7 @@
carol::ip route del 10.1.0.0/16 via 192.168.0.1
dave::ip route del 10.1.0.0/16 via 192.168.0.1
winnetou::ip route del 10.1.0.0/16 via 192.168.0.1
carol::rm /etc/pts/collector.sql
alice::systemctl stop strongswan-swanctl
alice::systemctl stop apache2
alice::rm /etc/swanctl/rsa/aaaKey.pem