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
ed6c77d5
Commit
ed6c77d5
authored
Mar 19, 2019
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test: fix a strange assertion on test_slapproxy
This test was probably asserting that initial state was OK
parent
3483561d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
slapos/tests/test_slapproxy.py
slapos/tests/test_slapproxy.py
+4
-3
No files found.
slapos/tests/test_slapproxy.py
View file @
ed6c77d5
...
...
@@ -1387,9 +1387,10 @@ class TestMigrateVersion10To12(TestInformation, TestRequest, TestSlaveRequest, T
self
.
db
.
commit
()
def
test_automatic_migration
(
self
):
table_list
=
(
'software12'
,
'computer12'
,
'partition12'
,
'slave12'
,
'partition_network12'
)
for
table
in
table_list
:
self
.
assertRaises
(
sqlite3
.
OperationalError
,
self
.
db
.
execute
,
"SELECT name FROM computer12"
)
# Make sure that in the initial state we only have version 10 of the tables.
table_list
=
self
.
db
.
execute
(
"SELECT name FROM sqlite_master WHERE type='table' ORDER BY name"
).
fetchall
()
self
.
assertEqual
(
table_list
,
[(
'computer10'
,
),
(
'partition10'
,
),
(
'partition_network10'
,
),
(
'slave10'
,
),
(
'software10'
,
)])
# Run a dummy request to cause migration
self
.
app
.
get
(
'/getComputerInformation?computer_id=computer'
)
...
...
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