Skip to content

Commit d3160ce

Browse files
authored
Merge pull request certtools#2557 from sebix/tests-ubuntu-24
Fix Tests, compatibility with Ubuntu 24.04
2 parents 9bfe9bf + 5381990 commit d3160ce

File tree

3 files changed

+13
-12
lines changed

3 files changed

+13
-12
lines changed

.github/workflows/scripts/setup-full.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ if [ $python_version == '3.8' ]; then
2020
DEBIAN_FRONTEND="noninteractive" sudo -E apt install -y build-essential freetds-dev libssl-dev libkrb5-dev
2121
fi
2222
# for psql (used below)
23-
DEBIAN_FRONTEND="noninteractive" sudo -E apt install -y postgresql-client-14
23+
DEBIAN_FRONTEND="noninteractive" sudo -E apt install -y postgresql-client
2424

2525
# Install the dependencies of all the bots
2626
pip install wheel

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@
5353
- Install `psql` explicitly for workflow support on other platforms such as act (PR#2542 by Sebastian Wagner).
5454
- Create intelmq user & group if running privileged to allow dropping privileges (PR#2542 by Sebastian Wagner).
5555
- `intelmq.tests.lib.test_pipeline.TestAmqp.test_acknowledge`: Also skip on Python 3.11 besides on 3.8 when running on CI (PR#2542 by Sebastian Wagner).
56+
- Full pytest workflow: Version-independent install of postgres client, for Ubuntu 24.04 (default on GitHub now) test environment compatibility (PR#2557 by Sebastian Wagner).
5657

5758
### Tools
5859

intelmq/tests/bots/experts/gethostbyname/test_expert.py

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,15 @@
1313
from intelmq.bots.experts.gethostbyname.expert import GethostbynameExpertBot
1414

1515
EXAMPLE_INPUT = {"__type": "Event",
16-
"source.fqdn": "example.com",
17-
"destination.fqdn": "example.org",
16+
"source.fqdn": "iana.org",
17+
"destination.fqdn": "nic.at",
1818
"time.observation": "2015-01-01T00:00:00+00:00"
1919
}
2020
EXAMPLE_OUTPUT = {"__type": "Event",
21-
"source.fqdn": "example.com",
22-
"destination.fqdn": "example.org",
23-
"source.ip": "93.184.215.14",
24-
"destination.ip": "93.184.215.14",
21+
"source.fqdn": "iana.org",
22+
"destination.fqdn": "nic.at",
23+
"source.ip": "192.0.43.8",
24+
"destination.ip": "198.251.90.127",
2525
"time.observation": "2015-01-01T00:00:00+00:00"
2626
}
2727
NONEXISTING_INPUT = {"__type": "Event",
@@ -30,15 +30,15 @@
3030
"time.observation": "2015-01-01T00:00:00+00:00"
3131
}
3232
EXAMPLE_URL_INPUT = {"__type": "Event",
33-
"source.url": "http://example.com",
33+
"source.url": "http://iana.org",
3434
}
3535
EXAMPLE_URL_OUTPUT = {"__type": "Event",
36-
"source.url": "http://example.com",
37-
"source.ip": "93.184.215.14",
36+
"source.url": "http://iana.org",
37+
"source.ip": "192.0.43.8",
3838
}
3939
EXISITNG_INPUT = {"__type": "Event",
40-
"source.fqdn": "example.com",
41-
"destination.fqdn": "example.org",
40+
"source.fqdn": "iana.org",
41+
"destination.fqdn": "nic.at",
4242
"source.ip": "10.0.0.1",
4343
"destination.ip": "10.0.0.2",
4444
"time.observation": "2015-01-01T00:00:00+00:00"

0 commit comments

Comments
 (0)