start with tests for base.plugin
parent
10ea42dc75
commit
839cf4429a
|
|
@ -0,0 +1,19 @@
|
||||||
|
#!/usr/bin/env bats
|
||||||
|
|
||||||
|
load ../test_helper
|
||||||
|
load ../../lib/composure
|
||||||
|
load ../../plugins/available/base.plugin
|
||||||
|
|
||||||
|
@test 'plugins base: ips()' {
|
||||||
|
declare -r localhost='127.0.0.1'
|
||||||
|
run ips
|
||||||
|
assert_success
|
||||||
|
assert_line $localhost
|
||||||
|
}
|
||||||
|
|
||||||
|
@test 'plugins base: myip()' {
|
||||||
|
run myip
|
||||||
|
assert_success
|
||||||
|
declare -r mask_ip=$(echo $output | tr -s '[0-9]' '?')
|
||||||
|
[[ $mask_ip == 'Your public IP is: ?.?.?.?' ]]
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue