Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Klaus Wölfel
slapos.core
Commits
b8d90b26
Commit
b8d90b26
authored
Oct 15, 2015
by
Alain Takoudjou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix firewall tests
parent
dc269566
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
slapos/tests/slapgrid.py
slapos/tests/slapgrid.py
+4
-3
No files found.
slapos/tests/slapgrid.py
View file @
b8d90b26
...
@@ -1977,9 +1977,9 @@ class TestSlapgridCPWithFirewall(MasterMixin, unittest.TestCase):
...
@@ -1977,9 +1977,9 @@ class TestSlapgridCPWithFirewall(MasterMixin, unittest.TestCase):
def
setFirewallConfig
(
self
,
source_ip
=
""
):
def
setFirewallConfig
(
self
,
source_ip
=
""
):
firewall_conf
=
dict
(
firewall_conf
=
dict
(
authorized_sources
=
source_ip
,
authorized_sources
=
source_ip
,
firewall_cmd
=
'/bin/
sh
echo'
,
firewall_cmd
=
'/bin/echo'
,
firewall_executable
=
'/bin/
sh
echo "service firewall started"'
,
firewall_executable
=
'/bin/echo "service firewall started"'
,
reload_config_cmd
=
'/bin/
sh
echo "Config reloaded."'
,
reload_config_cmd
=
'/bin/echo "Config reloaded."'
,
log_file
=
'fw-log.log'
,
log_file
=
'fw-log.log'
,
testing
=
True
,
testing
=
True
,
)
)
...
@@ -2032,6 +2032,7 @@ class TestSlapgridCPWithFirewall(MasterMixin, unittest.TestCase):
...
@@ -2032,6 +2032,7 @@ class TestSlapgridCPWithFirewall(MasterMixin, unittest.TestCase):
def
test_checkAddFirewallRules
(
self
):
def
test_checkAddFirewallRules
(
self
):
computer
=
ComputerForTest
(
self
.
software_root
,
self
.
instance_root
)
computer
=
ComputerForTest
(
self
.
software_root
,
self
.
instance_root
)
self
.
setFirewallConfig
()
self
.
setFirewallConfig
()
self
.
grid
.
firewall_conf
[
'firewall_cmd'
]
=
'/bin/echo "yes" #'
self
.
ip_address_list
=
computer
.
ip_address_list
self
.
ip_address_list
=
computer
.
ip_address_list
instance
=
computer
.
instance_list
[
0
]
instance
=
computer
.
instance_list
[
0
]
ip
=
instance
.
full_ip_list
[
0
][
1
]
ip
=
instance
.
full_ip_list
[
0
][
1
]
...
...
Write
Preview
Markdown
is supported
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