-
Notifications
You must be signed in to change notification settings - Fork 506
/
Copy pathdnsmasq.py
50 lines (48 loc) · 1.64 KB
/
dnsmasq.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# Copyright (C) 2021 Intel Corporation
# SPDX-License-Identifier: GPL-3.0-or-later
mapping_test_data = [
{"product": "dnsmasq", "version": "2.79", "version_strings": ["dnsmasq-2.79"]},
{"product": "dnsmasq", "version": "2.84", "version_strings": ["dnsmasq-2.84"]},
{
"product": "dnsmasq",
"version": "2.80",
"version_strings": ["2.80\nDnsmasq version %s"],
},
{"product": "dnsmasq", "version": "2.84", "version_strings": ["dnsmasq-gen_2.84"]},
{
"product": "dnsmasq",
"version": "2.84",
"version_strings": ["Dnsmasq version %s %s\n2.84"],
},
{
"product": "dnsmasq",
"version": "2.85",
"version_strings": ["2.85\nstarted, version %s DNS disabled"],
},
]
package_test_data = [
{
"url": "http://mirror.centos.org/centos/8/AppStream/aarch64/os/Packages/",
"package_name": "dnsmasq-2.79-13.el8_3.1.aarch64.rpm",
"product": "dnsmasq",
"version": "2.79",
},
{
"url": "https://download-ib01.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/aarch64/os/Packages/d/",
"package_name": "dnsmasq-2.84-1.fc34.aarch64.rpm",
"product": "dnsmasq",
"version": "2.84",
},
{
"url": "http://ftp.debian.org/debian/pool/main/d/dnsmasq/",
"package_name": "dnsmasq-base_2.72-3+deb8u2_amd64.deb",
"product": "dnsmasq",
"version": "2.72",
},
{
"url": "https://downloads.openwrt.org/releases/packages-19.07/x86_64/base/",
"package_name": "dnsmasq_2.80-16.3_x86_64.ipk",
"product": "dnsmasq",
"version": "2.80",
},
]