Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Sympl
Sympl
Commits
039eb5d9
Commit
039eb5d9
authored
Feb 18, 2022
by
Paul Cammish
Browse files
Add extra delay to enabling/disabling TLS
parent
fede2b35
Changes
1
Pipelines
6
Hide whitespace changes
Inline
Side-by-side
ftp/test.d/tc_ftp.rb
View file @
039eb5d9
...
...
@@ -19,14 +19,14 @@ class TestFTP < Test::Unit::TestCase
@domain
.
create
()
# Hack to disable TLS enforcement, as the ruby lib doesnt support it
system
'echo 1 > /etc/pure-ftpd/conf/TLS ; service pure-ftpd restart ; sleep 3'
system
'echo 1 > /etc/pure-ftpd/conf/TLS ;
sleep 3 ;
service pure-ftpd restart ; sleep 3'
end
def
teardown
# Re-enable TLS enforcement
system
'echo 2 > /etc/pure-ftpd/conf/TLS ; service pure-ftpd restart ; sleep 3'
system
'echo 2 > /etc/pure-ftpd/conf/TLS ;
sleep 3 ;
service pure-ftpd restart ; sleep 3'
#
# Delete the temporary domain
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment