Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
openbis
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
sispub
openbis
Commits
5f2945b0
Commit
5f2945b0
authored
17 years ago
by
tpylak
Browse files
Options
Downloads
Patches
Plain Diff
minor: migration tests fixes
SVN: 4532
parent
b977dcc8
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dbmigration/sourceTest/java/ch/systemsx/cisd/dbmigration/postgresql/DumpPreparatorTest.java
+12
-13
12 additions, 13 deletions
...temsx/cisd/dbmigration/postgresql/DumpPreparatorTest.java
with
12 additions
and
13 deletions
dbmigration/sourceTest/java/ch/systemsx/cisd/dbmigration/postgresql/DumpPreparatorTest.java
+
12
−
13
View file @
5f2945b0
...
...
@@ -110,23 +110,22 @@ public class DumpPreparatorTest
public
void
test
()
throws
IOException
{
StringReader
reader
=
new
StringReader
(
EXAMPLE
);
DumpPreparator
.
createUploadFiles
(
reader
,
TEST_FOLDER
);
File
folder
=
new
File
(
TEST_FOLDER
,
"011"
);
folder
.
mkdir
();
assertEquals
(
true
,
folder
.
exists
());
DumpPreparator
.
createUploadFiles
(
reader
,
folder
);
assertEquals
(
true
,
folder
.
isDirectory
());
assertEquals
(
"SET standard_conforming_strings = off;\n\n"
,
FileUtilities
.
loadToString
(
new
File
(
folder
,
"schema-011.sql"
)));
assertEquals
(
"1\tVARCHAR\tVariable length character\n"
+
"2\tINTEGER\tInteger\n"
+
"3\tREAL\tReal number, i.e. an inexact, variable-precision numeric type\n"
,
FileUtilities
.
loadToString
(
new
File
(
folder
,
"002=data_types.tsv"
)));
assertEquals
(
"SET standard_conforming_strings = off;\n\n"
,
FileUtilities
.
loadToString
(
new
File
(
folder
,
"schema-011.sql"
)));
assertEquals
(
"1\tVARCHAR\tVariable length character\n"
+
"2\tINTEGER\tInteger\n"
+
"3\tREAL\tReal number, i.e. an inexact, variable-precision numeric type\n"
,
FileUtilities
.
loadToString
(
new
File
(
folder
,
"002=data_types.tsv"
)));
assertEquals
(
"011\tsource/sql/postgresql/010/schema-010.sql\tSUCCESS 2007-11-22 08:46:04.25\n"
+
"010\tsource/sql/postgresql/010/data-010.sql\tSUCCESS 2007-11-22 08:46:04.53\n"
,
FileUtilities
.
loadToString
(
new
File
(
folder
,
"004=database_version_logs.tsv"
)));
assertEquals
(
"ALTER TABLE ONLY data\n"
+
" ADD CONSTRAINT data_pk PRIMARY KEY (id);\n\n"
,
FileUtilities
.
loadToString
(
new
File
(
folder
,
"finish-011.sql"
)));
+
"010\tsource/sql/postgresql/010/data-010.sql\tSUCCESS 2007-11-22 08:46:04.53\n"
,
FileUtilities
.
loadToString
(
new
File
(
folder
,
"004=database_version_logs.tsv"
)));
assertEquals
(
"ALTER TABLE ONLY data\n"
+
" ADD CONSTRAINT data_pk PRIMARY KEY (id);\n\n"
,
FileUtilities
.
loadToString
(
new
File
(
folder
,
"finish-011.sql"
)));
assertEquals
(
4
,
folder
.
listFiles
().
length
);
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment