mirror of
https://github.com/bakito/adguardhome-sync.git
synced 2024-09-20 06:46:12 +08:00
fix e2e test for newes agh version (#364)
This commit is contained in:
parent
0af476ac8e
commit
9af8c00bca
2
.dockerignore
Normal file
2
.dockerignore
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
dist
|
||||||
|
bin
|
|
@ -1,4 +1,4 @@
|
||||||
FROM golang:1.22-bullseye as builder
|
FROM golang:1.22-bullseye AS builder
|
||||||
|
|
||||||
WORKDIR /go/src/app
|
WORKDIR /go/src/app
|
||||||
|
|
||||||
|
|
4
go.mod
4
go.mod
|
@ -1,8 +1,6 @@
|
||||||
module github.com/bakito/adguardhome-sync
|
module github.com/bakito/adguardhome-sync
|
||||||
|
|
||||||
go 1.22.0
|
go 1.22.4
|
||||||
|
|
||||||
toolchain go1.22.2
|
|
||||||
|
|
||||||
require (
|
require (
|
||||||
github.com/caarlos0/env/v10 v10.0.0
|
github.com/caarlos0/env/v10 v10.0.0
|
||||||
|
|
1
testdata/e2e/bin/install-chart.sh
vendored
1
testdata/e2e/bin/install-chart.sh
vendored
|
@ -7,3 +7,4 @@ if [[ $(helm list --no-headers -n agh-e2e | grep agh-e2e | wc -l) == "1" ]]; the
|
||||||
helm delete agh-e2e -n agh-e2e --wait
|
helm delete agh-e2e -n agh-e2e --wait
|
||||||
fi
|
fi
|
||||||
helm install agh-e2e testdata/e2e -n agh-e2e --create-namespace --set mode=${1}
|
helm install agh-e2e testdata/e2e -n agh-e2e --create-namespace --set mode=${1}
|
||||||
|
|
||||||
|
|
42
testdata/e2e/resources/AdGuardHome.yaml
vendored
42
testdata/e2e/resources/AdGuardHome.yaml
vendored
|
@ -18,19 +18,18 @@ dns:
|
||||||
port: 53
|
port: 53
|
||||||
anonymize_client_ip: false
|
anonymize_client_ip: false
|
||||||
ratelimit: 20
|
ratelimit: 20
|
||||||
ratelimit_whitelist: [ ]
|
ratelimit_whitelist: []
|
||||||
refuse_any: true
|
refuse_any: true
|
||||||
upstream_dns:
|
upstream_dns:
|
||||||
- https://dns10.quad9.net/dns-query
|
- https://dns10.quad9.net/dns-query
|
||||||
upstream_dns_file: ""
|
upstream_dns_file: ""
|
||||||
bootstrap_dns:
|
bootstrap_dns:
|
||||||
- 1.1.1.1:53
|
- 1.1.1.1:53
|
||||||
fallback_dns: [ ]
|
fallback_dns: []
|
||||||
all_servers: false
|
upstream_mode: load_balance
|
||||||
fastest_addr: false
|
|
||||||
fastest_timeout: 1s
|
fastest_timeout: 1s
|
||||||
allowed_clients: [ ]
|
allowed_clients: []
|
||||||
disallowed_clients: [ ]
|
disallowed_clients: []
|
||||||
blocked_hosts:
|
blocked_hosts:
|
||||||
- version.bind
|
- version.bind
|
||||||
- id.server
|
- id.server
|
||||||
|
@ -42,7 +41,7 @@ dns:
|
||||||
cache_ttl_min: 0
|
cache_ttl_min: 0
|
||||||
cache_ttl_max: 0
|
cache_ttl_max: 0
|
||||||
cache_optimistic: true
|
cache_optimistic: true
|
||||||
bogus_nxdomain: [ ]
|
bogus_nxdomain: []
|
||||||
aaaa_disabled: false
|
aaaa_disabled: false
|
||||||
enable_dnssec: false
|
enable_dnssec: false
|
||||||
edns_client_subnet:
|
edns_client_subnet:
|
||||||
|
@ -51,17 +50,19 @@ dns:
|
||||||
use_custom: false
|
use_custom: false
|
||||||
max_goroutines: 300
|
max_goroutines: 300
|
||||||
handle_ddr: true
|
handle_ddr: true
|
||||||
ipset: [ ]
|
ipset: []
|
||||||
ipset_file: ""
|
ipset_file: ""
|
||||||
bootstrap_prefer_ipv6: false
|
bootstrap_prefer_ipv6: false
|
||||||
upstream_timeout: 10s
|
upstream_timeout: 10s
|
||||||
private_networks: [ ]
|
private_networks: []
|
||||||
use_private_ptr_resolvers: true
|
use_private_ptr_resolvers: true
|
||||||
local_ptr_upstreams: [ ]
|
local_ptr_upstreams: []
|
||||||
use_dns64: false
|
use_dns64: false
|
||||||
dns64_prefixes: [ ]
|
dns64_prefixes: []
|
||||||
serve_http3: false
|
serve_http3: false
|
||||||
use_http3_upstreams: false
|
use_http3_upstreams: false
|
||||||
|
serve_plain_dns: true
|
||||||
|
hostsfile_enabled: true
|
||||||
tls:
|
tls:
|
||||||
enabled: false
|
enabled: false
|
||||||
server_name: ""
|
server_name: ""
|
||||||
|
@ -78,13 +79,15 @@ tls:
|
||||||
private_key_path: ""
|
private_key_path: ""
|
||||||
strict_sni_check: false
|
strict_sni_check: false
|
||||||
querylog:
|
querylog:
|
||||||
ignored: [ ]
|
dir_path: ""
|
||||||
|
ignored: []
|
||||||
interval: 6h
|
interval: 6h
|
||||||
size_memory: 1000
|
size_memory: 1000
|
||||||
enabled: true
|
enabled: true
|
||||||
file_enabled: true
|
file_enabled: true
|
||||||
statistics:
|
statistics:
|
||||||
ignored: [ ]
|
dir_path: ""
|
||||||
|
ignored: []
|
||||||
interval: 24h
|
interval: 24h
|
||||||
enabled: true
|
enabled: true
|
||||||
filters:
|
filters:
|
||||||
|
@ -96,7 +99,7 @@ filters:
|
||||||
url: https://adaway.org/hosts.txt
|
url: https://adaway.org/hosts.txt
|
||||||
name: AdAway Default Blocklist
|
name: AdAway Default Blocklist
|
||||||
id: 2
|
id: 2
|
||||||
whitelist_filters: [ ]
|
whitelist_filters: []
|
||||||
user_rules:
|
user_rules:
|
||||||
- '||metrics2.data.hicloud.com^$important'
|
- '||metrics2.data.hicloud.com^$important'
|
||||||
- '||www.curiouscorrespondence.com^$important'
|
- '||www.curiouscorrespondence.com^$important'
|
||||||
|
@ -113,7 +116,7 @@ dhcp:
|
||||||
range_end: 1.2.3.56
|
range_end: 1.2.3.56
|
||||||
lease_duration: 86400
|
lease_duration: 86400
|
||||||
icmp_timeout_msec: 1000
|
icmp_timeout_msec: 1000
|
||||||
options: [ ]
|
options: []
|
||||||
dhcpv6:
|
dhcpv6:
|
||||||
range_start: ""
|
range_start: ""
|
||||||
lease_duration: 86400
|
lease_duration: 86400
|
||||||
|
@ -150,7 +153,7 @@ filtering:
|
||||||
blocking_mode: default
|
blocking_mode: default
|
||||||
parental_block_host: family-block.dns.adguard.com
|
parental_block_host: family-block.dns.adguard.com
|
||||||
safebrowsing_block_host: standard-block.dns.adguard.com
|
safebrowsing_block_host: standard-block.dns.adguard.com
|
||||||
rewrites: [ ]
|
rewrites: []
|
||||||
safebrowsing_cache_size: 1048576
|
safebrowsing_cache_size: 1048576
|
||||||
safesearch_cache_size: 1048576
|
safesearch_cache_size: 1048576
|
||||||
parental_cache_size: 1048576
|
parental_cache_size: 1048576
|
||||||
|
@ -170,8 +173,6 @@ clients:
|
||||||
hosts: true
|
hosts: true
|
||||||
persistent:
|
persistent:
|
||||||
- name: Device 1
|
- name: Device 1
|
||||||
tags:
|
|
||||||
- device_1
|
|
||||||
ids:
|
ids:
|
||||||
- 2.2.2.2
|
- 2.2.2.2
|
||||||
blocked_services:
|
blocked_services:
|
||||||
|
@ -183,7 +184,7 @@ clients:
|
||||||
- qq
|
- qq
|
||||||
- vk
|
- vk
|
||||||
- ok
|
- ok
|
||||||
upstreams: [ ]
|
upstreams: []
|
||||||
use_global_settings: true
|
use_global_settings: true
|
||||||
filtering_enabled: false
|
filtering_enabled: false
|
||||||
parental_enabled: false
|
parental_enabled: false
|
||||||
|
@ -192,6 +193,7 @@ clients:
|
||||||
ignore_querylog: false
|
ignore_querylog: false
|
||||||
ignore_statistics: false
|
ignore_statistics: false
|
||||||
log:
|
log:
|
||||||
|
enabled: true
|
||||||
file: ""
|
file: ""
|
||||||
max_backups: 0
|
max_backups: 0
|
||||||
max_size: 100
|
max_size: 100
|
||||||
|
@ -203,4 +205,4 @@ os:
|
||||||
group: ""
|
group: ""
|
||||||
user: ""
|
user: ""
|
||||||
rlimit_nofile: 0
|
rlimit_nofile: 0
|
||||||
schema_version: 27
|
schema_version: 28
|
||||||
|
|
2
testdata/e2e/values.yaml
vendored
2
testdata/e2e/values.yaml
vendored
|
@ -8,4 +8,4 @@ mode: env
|
||||||
|
|
||||||
kubectl:
|
kubectl:
|
||||||
repository: bitnami/kubectl
|
repository: bitnami/kubectl
|
||||||
tag: 1.27
|
tag: "1.30"
|
||||||
|
|
Loading…
Reference in a new issue