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
Léo-Paul Géneau
slapos.core
Commits
23214a53
Commit
23214a53
authored
Sep 12, 2014
by
Cédric de Saint Martin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slapos.proxy: tests: remove useless supply.
parent
d7227ac8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
8 deletions
+0
-8
slapos/tests/slapproxy/__init__.py
slapos/tests/slapproxy/__init__.py
+0
-8
No files found.
slapos/tests/slapproxy/__init__.py
View file @
23214a53
...
...
@@ -929,11 +929,6 @@ database_uri = %(tempdir)s/lib/external_proxy.db
}
open
(
self
.
slapos_cfg
,
'w'
).
write
(
configuration
)
def
external_proxy_supply
(
self
,
url
,
computer_id
=
None
):
if
computer_id
is
None
:
computer_id
=
self
.
external_computer_id
self
.
external_proxy_slap
.
registerSupply
().
supply
(
url
,
computer_id
)
def
external_proxy_add_free_partition
(
self
,
partition_amount
,
computer_id
=
None
):
"""
Will simulate a slapformat first run
...
...
@@ -1045,7 +1040,6 @@ database_uri = %(tempdir)s/lib/external_proxy.db
dummy_parameter_dict
=
{
'foo'
:
'bar'
}
instance_reference
=
'MyFirstInstance'
self
.
add_free_partition
(
1
)
self
.
external_proxy_supply
(
self
.
external_software_release
)
self
.
external_proxy_add_free_partition
(
1
)
filter_kw
=
{
'master_url'
:
self
.
external_master_url
}
...
...
@@ -1064,7 +1058,6 @@ database_uri = %(tempdir)s/lib/external_proxy.db
proxy to refuse to forward if this master_url is not whitelisted
"""
self
.
add_free_partition
(
1
)
self
.
external_proxy_supply
(
self
.
external_software_release
)
self
.
external_proxy_add_free_partition
(
1
)
filter_kw
=
{
'master_url'
:
self
.
external_master_url
+
'bad'
}
...
...
@@ -1079,7 +1072,6 @@ database_uri = %(tempdir)s/lib/external_proxy.db
dummy_parameter_dict
=
{
'foo'
:
'bar'
}
instance_reference
=
'MyFirstInstance'
self
.
add_free_partition
(
1
)
self
.
external_proxy_supply
(
self
.
external_software_release
)
self
.
external_proxy_add_free_partition
(
1
)
partition
=
self
.
request
(
self
.
external_software_release
,
None
,
instance_reference
,
'slappart0'
,
...
...
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