|
|
@@ -29,10 +29,12 @@ function setup() {
|
|
|
echo 'dbuser=test-5285_dbuser' >> /tmp/hestia-test-env.sh
|
|
|
fi
|
|
|
|
|
|
+ source /tmp/hestia-le-env.sh
|
|
|
source /tmp/hestia-test-env.sh
|
|
|
source $HESTIA/func/main.sh
|
|
|
source $HESTIA/conf/hestia.conf
|
|
|
source $HESTIA/func/ip.sh
|
|
|
+
|
|
|
}
|
|
|
|
|
|
@test "Prepare for tests" {
|
|
|
@@ -44,6 +46,13 @@ function setup() {
|
|
|
run v-update-web-templates
|
|
|
}
|
|
|
|
|
|
+@test "[ IPV6 ] Add IPV6 address" {
|
|
|
+ # Remove IPV6 Address to be removed when merged with main
|
|
|
+ run v-add-sys-ip $ipv6 "/64"
|
|
|
+ assert_success
|
|
|
+ refute_output
|
|
|
+}
|
|
|
+
|
|
|
@test "Setup Test domain" {
|
|
|
run v-add-user $user $user $user@hestiacp.com default "Super Test"
|
|
|
assert_success
|
|
|
@@ -88,3 +97,10 @@ function setup() {
|
|
|
assert_success
|
|
|
refute_output
|
|
|
}
|
|
|
+
|
|
|
+@test "[ IPV6 ] Delete IPV6 address" {
|
|
|
+ # Remove IPV6 Address to be removed when merged with main
|
|
|
+ run v-delete-sys-ip $ipv6
|
|
|
+ assert_success
|
|
|
+ refute_output
|
|
|
+}
|