tests: add test file for whois.

This commit is contained in:
Alexandre Pujol 2025-07-12 20:07:33 +02:00
parent 97d5fe3f68
commit a2a402d8a9
No known key found for this signature in database
GPG key ID: C5469996F0DF68EC

View file

@ -0,0 +1,19 @@
#!/usr/bin/env bats
# apparmor.d - Full set of apparmor profiles
# Copyright (C) 2025 Alexandre Pujol <alexandre@pujol.io>
# SPDX-License-Identifier: GPL-2.0-only
load common
@test "whois: Get information about a domain name" {
whois google.fr
}
@test "whois: Get information about an IP address" {
whois 8.8.8.8
}
@test "whois: Get abuse contact for an IP address" {
whois -b 8.8.8.8
}