test
This commit is contained in:
parent
68ccdcb394
commit
2dfa0ee7d2
|
@ -32,6 +32,10 @@ i_am_root() {
|
||||||
[ $(id -u) -eq 0 ]
|
[ $(id -u) -eq 0 ]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
i_am_xbian() {
|
||||||
|
[[ "$USER" == "xbian" ]]
|
||||||
|
}
|
||||||
|
|
||||||
i_should_install() {
|
i_should_install() {
|
||||||
[[ ! -f ~/.zen/secret.june ]]
|
[[ ! -f ~/.zen/secret.june ]]
|
||||||
}
|
}
|
||||||
|
|
|
@ -35,7 +35,7 @@ check_jaklis
|
||||||
echo "Sécurisation DEFCON SUDOERS FAIL2BAN"
|
echo "Sécurisation DEFCON SUDOERS FAIL2BAN"
|
||||||
## XBIAN fail2ban ERROR correction ##
|
## XBIAN fail2ban ERROR correction ##
|
||||||
#[....] Starting authentication failure monitor: fail2ban No file(s) found for glob /var/log/auth.log
|
#[....] Starting authentication failure monitor: fail2ban No file(s) found for glob /var/log/auth.log
|
||||||
[[ "$USER" == "xbian" ]] && sudo sed -i "s/auth.log/faillog/g" /etc/fail2ban/paths-common.conf
|
i_am_xbian && sudo sed -i "s/auth.log/faillog/g" /etc/fail2ban/paths-common.conf
|
||||||
# NODE activates fail2ban IN zen/ipfs_SWARM_refresh.sh
|
# NODE activates fail2ban IN zen/ipfs_SWARM_refresh.sh
|
||||||
|
|
||||||
### MODIFIYING /etc/sudoers ###
|
### MODIFIYING /etc/sudoers ###
|
||||||
|
|
|
@ -3,6 +3,21 @@
|
||||||
Describe 'AstrXbian'
|
Describe 'AstrXbian'
|
||||||
Describe 'install()'
|
Describe 'install()'
|
||||||
Include ./include.sh
|
Include ./include.sh
|
||||||
|
It 'should check IPFS, but not tested'
|
||||||
|
Pending "You should implement check_ipfs tests"
|
||||||
|
When call check_ipfs
|
||||||
|
The status should be success
|
||||||
|
End
|
||||||
|
It 'should check Jaklis, but not tested'
|
||||||
|
Pending "You should implement check_jaklis tests"
|
||||||
|
When call check_jaklis
|
||||||
|
The status should be success
|
||||||
|
End
|
||||||
|
It 'should check requirements, but not tested'
|
||||||
|
Pending "You should implement check_requirements tests"
|
||||||
|
When call check_requirements
|
||||||
|
The status should be success
|
||||||
|
End
|
||||||
It 'should be me'
|
It 'should be me'
|
||||||
When call i_am
|
When call i_am
|
||||||
The output should eq 'v0.4'
|
The output should eq 'v0.4'
|
||||||
|
@ -11,13 +26,12 @@ Describe 'AstrXbian'
|
||||||
When call i_am_root
|
When call i_am_root
|
||||||
The status should not be success
|
The status should not be success
|
||||||
End
|
End
|
||||||
It 'should install AstrXbian'
|
It 'should be xbian'
|
||||||
When call i_should_install
|
When call i_am_xbian
|
||||||
The status should be success
|
The status should be success
|
||||||
End
|
End
|
||||||
It 'should check requirements, but not tested'
|
It 'should install AstrXbian'
|
||||||
Pending "You should implement check_requirements tests"
|
When call i_should_install
|
||||||
When call check_requirements
|
|
||||||
The status should be success
|
The status should be success
|
||||||
End
|
End
|
||||||
It 'should import AstrXbian, but not tested'
|
It 'should import AstrXbian, but not tested'
|
||||||
|
@ -30,15 +44,5 @@ Describe 'AstrXbian'
|
||||||
When call import_kodi
|
When call import_kodi
|
||||||
The status should be success
|
The status should be success
|
||||||
End
|
End
|
||||||
It 'should check IPFS, but not tested'
|
|
||||||
Pending "You should implement check_ipfs tests"
|
|
||||||
When call check_ipfs
|
|
||||||
The status should be success
|
|
||||||
End
|
|
||||||
It 'should check Jaklis, but not tested'
|
|
||||||
Pending "You should implement check_jaklis tests"
|
|
||||||
When call check_jaklis
|
|
||||||
The status should be success
|
|
||||||
End
|
|
||||||
End
|
End
|
||||||
End
|
End
|
||||||
|
|
Loading…
Reference in New Issue