- Clone all 5 Zonemaster component repos (LDNS, Engine, CLI, Backend, GUI) - Dockerfile.backend: 8-stage multi-stage build LDNS→Engine→CLI→Backend - Dockerfile.gui: Astro static build served via nginx - docker-compose.yml: backend (internal) + frontend (port 5353) - nginx.conf: root redirects to /es/, /api/ proxied to backend - zonemaster-gui/config.ts: defaultLanguage set to 'es' (Spanish) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
42 lines
1.5 KiB
Perl
42 lines
1.5 KiB
Perl
use Test::More;
|
|
|
|
BEGIN {
|
|
use_ok( q{Zonemaster::Engine} );
|
|
use_ok( q{Zonemaster::Engine::Test::Syntax} );
|
|
use_ok( q{Zonemaster::Engine::Util} );
|
|
}
|
|
|
|
my $datafile = q{t/Test-syntax06-G.data};
|
|
|
|
if ( not $ENV{ZONEMASTER_RECORD} ) {
|
|
die q{Stored data file missing} if not -r $datafile;
|
|
Zonemaster::Engine::Nameserver->restore( $datafile );
|
|
Zonemaster::Engine->profile->set( q{no_network}, 1 );
|
|
}
|
|
|
|
Zonemaster::Engine->add_fake_delegation(
|
|
'g.syntax06.exempelvis.se' => {
|
|
'ns1.g.syntax06.exempelvis.se' => [ '46.21.97.97', '2a02:750:12:77::97' ],
|
|
'ns2.g.syntax06.exempelvis.se' => [ '194.18.226.122', '2001:2040:2b:1c13::53' ],
|
|
},
|
|
fill_in_empty_oob_glue => 0,
|
|
);
|
|
|
|
my $zone = Zonemaster::Engine->zone( q{g.syntax06.exempelvis.se} );
|
|
|
|
my %res = map { $_->tag => $_ } Zonemaster::Engine::Test::Syntax->syntax06( $zone );
|
|
|
|
ok( !$res{NO_RESPONSE}, q{should not emit NO_RESPONSE} );
|
|
ok( !$res{NO_RESPONSE_SOA_QUERY}, q{should not emit NO_RESPONSE_SOA_QUERY} );
|
|
ok( !$res{RNAME_RFC822_INVALID}, q{should not emit RNAME_RFC822_INVALID} );
|
|
ok( $res{RNAME_MAIL_DOMAIN_INVALID}, q{should emit RNAME_MAIL_DOMAIN_INVALID} );
|
|
ok( !$res{RNAME_RFC822_VALID}, q{should not emit RNAME_RFC822_VALID} );
|
|
ok( !$res{RNAME_MAIL_ILLEGAL_CNAME}, q{should not emit RNAME_MAIL_ILLEGAL_CNAME} );
|
|
ok( !$res{RNAME_MAIL_DOMAIN_LOCALHOST}, q{should not emit RNAME_MAIL_DOMAIN_LOCALHOST} );
|
|
|
|
if ( $ENV{ZONEMASTER_RECORD} ) {
|
|
Zonemaster::Engine::Nameserver->save( $datafile );
|
|
}
|
|
|
|
done_testing;
|