[zanata/zanata-server] 5e50e4: Source File Upload Tests
GitHub
noreply at github.com
Fri Sep 13 04:08:07 UTC 2013
Branch: refs/heads/integration/master
Home: https://github.com/zanata/zanata-server
Commit: 5e50e44487b3fa288cd2b7d0557e1b55146b9d87
https://github.com/zanata/zanata-server/commit/5e50e44487b3fa288cd2b7d0557e1b55146b9d87
Author: Damian Jansen <djansen at redhat.com>
Date: 2013-09-09 (Mon, 09 Sep 2013)
Changed paths:
M functional-test/pom.xml
M functional-test/src/main/java/org/zanata/page/BasePage.java
A functional-test/src/main/java/org/zanata/page/projects/ProjectSourceDocumentsPage.java
M functional-test/src/main/java/org/zanata/page/projects/ProjectVersionPage.java
A functional-test/src/test/java/org/zanata/feature/document/UploadTest.java
M functional-test/src/test/java/org/zanata/util/DatabaseHelper.java
M functional-test/src/test/java/org/zanata/util/ResetDatabaseRule.java
M functional-test/src/test/resources/setup.properties
A functional-test/testdata/cancelFileUpload.txt
A functional-test/testdata/uploadedDocumentIsInFilesystem.txt
M zanata-war/src/main/webapp/iteration/source_files.xhtml
Log Message:
-----------
Source File Upload Tests
Add Uploaded source files testing. Handles success and error case.
Exception located in error cases, these tests are expect fail.
Added a 'Critical Error' check to BasePage and some hard defaults
for the document storage dir.
Added an action to delete the stored files on database reset.
Slight modification of ids in Source Documents pages.
Commit: 247fecd8f6b90ac26f62b695bdc7cecf14534ef1
https://github.com/zanata/zanata-server/commit/247fecd8f6b90ac26f62b695bdc7cecf14534ef1
Author: Damian Jansen <djansen at redhat.com>
Date: 2013-09-09 (Mon, 09 Sep 2013)
Changed paths:
M functional-test/src/test/java/org/zanata/feature/document/UploadTest.java
Log Message:
-----------
Add too-large upload file test
Test for files that are too large to upload.
Commit: 59906effedd8a709dcfddd586d8cbb736973e28c
https://github.com/zanata/zanata-server/commit/59906effedd8a709dcfddd586d8cbb736973e28c
Author: Damian Jansen <djansen at redhat.com>
Date: 2013-09-09 (Mon, 09 Sep 2013)
Changed paths:
M functional-test/src/main/java/org/zanata/page/BasePage.java
M functional-test/src/main/java/org/zanata/page/projects/ProjectSourceDocumentsPage.java
M functional-test/src/test/java/org/zanata/feature/document/UploadTest.java
M functional-test/src/test/java/org/zanata/util/DatabaseHelper.java
M functional-test/src/test/resources/setup.properties
Log Message:
-----------
Fix up code review issues in Source Upload testing
Mostly blank lines and readbility.
Commit: 1ad284d9f5ae4f0cb3fe00132c86fe8f5e63d206
https://github.com/zanata/zanata-server/commit/1ad284d9f5ae4f0cb3fe00132c86fe8f5e63d206
Author: Damian Jansen <djansen at redhat.com>
Date: 2013-09-09 (Mon, 09 Sep 2013)
Changed paths:
M functional-test/src/main/java/org/zanata/page/projects/ProjectSourceDocumentsPage.java
M functional-test/src/test/java/org/zanata/feature/document/UploadTest.java
Log Message:
-----------
Update UploadTest on review comments
Don't use globals for elements that may not exist.
Clear cached data between functions.
Wrong licence year.
Also added a test step for verifying the file is saved to the intended
location.
Commit: cef83a5d7092efb6adc6fbac485260f2aab1ee93
https://github.com/zanata/zanata-server/commit/cef83a5d7092efb6adc6fbac485260f2aab1ee93
Author: Damian Jansen <djansen at redhat.com>
Date: 2013-09-09 (Mon, 09 Sep 2013)
Changed paths:
M functional-test/pom.xml
M functional-test/src/main/java/org/zanata/page/projects/ProjectSourceDocumentsPage.java
A functional-test/src/main/java/org/zanata/util/TestFileGenerator.java
M functional-test/src/test/java/org/zanata/feature/document/UploadTest.java
M functional-test/src/test/resources/setup.properties
M zanata-war/src/main/webapp/iteration/source_files.xhtml
Log Message:
-----------
Use a generator instead of static files for testing
Rather than dumping a bunch of files in a dir, just use a generator
to create temp files.
Add a few more Upload tests to make use of this.
Commit: e97f4e5fc6f3c597775014995dcaf31d14996f75
https://github.com/zanata/zanata-server/commit/e97f4e5fc6f3c597775014995dcaf31d14996f75
Author: Damian Jansen <djansen at redhat.com>
Date: 2013-09-09 (Mon, 09 Sep 2013)
Changed paths:
M functional-test/src/test/java/org/zanata/util/DatabaseHelper.java
M functional-test/src/test/java/org/zanata/util/ResetDatabaseRule.java
Log Message:
-----------
Completely clear and rebuild the h2 database on reset
The sql backup procedure for the first run scenario writes the
sequence lines without the "if not exists" clause, so subsequent
runs can fail - especially after the user has executed some
tests manually.
Drop all items from the database and either restore a base from
the backup or a complete database with test data.
Commit: 11bfa44aef68b0440eafb6b08749ed12a2405256
https://github.com/zanata/zanata-server/commit/11bfa44aef68b0440eafb6b08749ed12a2405256
Author: Damian Jansen <djansen at redhat.com>
Date: 2013-09-09 (Mon, 09 Sep 2013)
Changed paths:
R functional-test/testdata/cancelFileUpload.txt
R functional-test/testdata/uploadedDocumentIsInFilesystem.txt
Log Message:
-----------
Remove leftover test files from previous commit
Commit: 82cc2c02746a48159e30104090f5230a5580f147
https://github.com/zanata/zanata-server/commit/82cc2c02746a48159e30104090f5230a5580f147
Author: Damian Jansen <djansen at redhat.com>
Date: 2013-09-09 (Mon, 09 Sep 2013)
Changed paths:
M functional-test/src/test/java/org/zanata/util/DatabaseHelper.java
M functional-test/src/test/resources/concordion/org/zanata/feature/zanata_with_data.sql
Log Message:
-----------
Update database table count and data generation script
Table count is now 81.
Two Transmemory _METADATA tables have been dropped.
Commit: c0840ff193e33c941fc8ccb634c9a6fb5e369880
https://github.com/zanata/zanata-server/commit/c0840ff193e33c941fc8ccb634c9a6fb5e369880
Author: Damian Jansen <djansen at redhat.com>
Date: 2013-09-09 (Mon, 09 Sep 2013)
Changed paths:
M functional-test/pom.xml
M functional-test/src/main/java/org/zanata/page/projects/ProjectSourceDocumentsPage.java
M functional-test/src/main/java/org/zanata/util/TestFileGenerator.java
M functional-test/src/test/java/org/zanata/feature/document/UploadTest.java
A functional-test/src/test/java/org/zanata/util/FunctionalTestHelper.java
Log Message:
-----------
Fix up the precondition assumptions.
Test setup failure causes exception, test behaviour failure asserts.
Also add commons-io dependency for test generator.
Commit: c906adc15fba5addf7dea7d1fdcc20784b1128f8
https://github.com/zanata/zanata-server/commit/c906adc15fba5addf7dea7d1fdcc20784b1128f8
Author: David Mason <dr.d.mason at gmail.com>
Date: 2013-09-12 (Thu, 12 Sep 2013)
Changed paths:
M functional-test/pom.xml
M functional-test/src/main/java/org/zanata/page/BasePage.java
A functional-test/src/main/java/org/zanata/page/projects/ProjectSourceDocumentsPage.java
M functional-test/src/main/java/org/zanata/page/projects/ProjectVersionPage.java
A functional-test/src/main/java/org/zanata/util/TestFileGenerator.java
A functional-test/src/test/java/org/zanata/feature/document/UploadTest.java
M functional-test/src/test/java/org/zanata/util/DatabaseHelper.java
A functional-test/src/test/java/org/zanata/util/FunctionalTestHelper.java
M functional-test/src/test/java/org/zanata/util/ResetDatabaseRule.java
M functional-test/src/test/resources/concordion/org/zanata/feature/zanata_with_data.sql
M functional-test/src/test/resources/setup.properties
M zanata-war/src/main/webapp/iteration/source_files.xhtml
Log Message:
-----------
Merge pull request #87 from zanata/document-upload-tests
Source File Upload Tests
Compare: https://github.com/zanata/zanata-server/compare/6a43a65f3680...c906adc15fba
More information about the zanata-commits
mailing list