Commit Graph

116 Commits

Author SHA1 Message Date
Maria Odea B. Ching 8fd13f6d0a merge -r1098897 from 1.3.x branch (MRM-1468: Fix XSS vulnerability in Archiva, patch submitted by Marc Jansen Tan Chua)
additional changes:
o added a factory for action validator manager since ObjectFactory.setObjectFactory(..) was removed in struts 2.1 so the unit tests for validation would work
o fixed conflicts

TODO:
o fix some failing selenium tests due to error 500


git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1099425 13f79535-47bb-0310-9956-ffa450edef68
2011-05-04 12:03:29 +00:00
Brett Porter 6566bcaa5e [MRM-1111] fix xpath after reverting to default freemarker templates
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1091636 13f79535-47bb-0310-9956-ffa450edef68
2011-04-13 03:28:45 +00:00
Brett Porter 51b1e5e8a3 cut-and-paste error
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1091634 13f79535-47bb-0310-9956-ffa450edef68
2011-04-13 03:19:27 +00:00
Brett Porter c2e2076916 [MRM-1111] fix xpath after reverting to default freemarker templates
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1091633 13f79535-47bb-0310-9956-ffa450edef68
2011-04-13 03:08:42 +00:00
Brett Porter 1b9d78a769 give Cargo some more memory to run the application
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1091632 13f79535-47bb-0310-9956-ffa450edef68
2011-04-13 03:05:17 +00:00
Brett Porter e064cd7f67 accidentally merged Selenium tests that test functionality no longer there
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1091631 13f79535-47bb-0310-9956-ffa450edef68
2011-04-13 03:03:54 +00:00
Brett Porter 58d905941b [MRM-1480]/[REDBACK-274] (CVE-2011-1026)
o upgrade to redback 1.2.8-SNAPSHOT
o configured struts2's token interceptor + use of <s:token> in affected actions to prevent CSRF issue
[MRM-1460] added selenium tests for CSRF fixes in affected pages
Merged: r1066067:1091313


git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1091315 13f79535-47bb-0310-9956-ffa450edef68
2011-04-12 07:16:34 +00:00
Brett Porter 8c5de76d3b Customise settings so that you can debug the cargo instance, and show tests to output as they progress
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1053778 13f79535-47bb-0310-9956-ffa450edef68
2010-12-30 01:05:58 +00:00
Brett Porter f56609efad [MRM-1330] refactor access around the concept of a "repository session". See Javadoc for some notes. This should be a single entry point for application users of either the metadata repository, resolution, or storage access. The session needs to be explicitly closed (and modifications saved) to facilitate some storage mechanisms.
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1053542 13f79535-47bb-0310-9956-ffa450edef68
2010-12-29 06:14:04 +00:00
Maria Odea B. Ching e82ce0f0b5 merged MRM-980 branch to trunk
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1002059 13f79535-47bb-0310-9956-ffa450edef68
2010-09-28 09:09:32 +00:00
Jevica Arianne B. Zurbano 8cfd3806cc [MRM-1394] - Replace the use of clickLinkWithText() with getSelenium().open() for accessing navigation menu pages
merge -r 960310:960311 from 1.3.x branch



git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@960322 13f79535-47bb-0310-9956-ffa450edef68
2010-07-04 11:27:10 +00:00
Maria Odea B. Ching a72aeb4d5e [MRM-1362] Add simple 'CRUD' pages for project-level metadata along with a "generic metadata" plugin
o do not show add property widget if user does not have repository manager role
o added selenium test for browsing metadata if user is not a repository manager


git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@953612 13f79535-47bb-0310-9956-ffa450edef68
2010-06-11 08:49:48 +00:00
Maria Odea B. Ching a15932eb45 [MRM-1362] Add simple 'CRUD' pages for project-level metadata along with a "generic metadata" plugin
o updated selenium test for deleting metadata
o added selenium tests for adding generic metadata property


git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@952174 13f79535-47bb-0310-9956-ffa450edef68
2010-06-07 09:56:57 +00:00
Jevica Arianne B. Zurbano 2ee860c6a0 [MRM-1362] Add simple 'CRUD' pages for project-level metadata along with a "generic metadata" plugin
* added mailingLists, licenses, and dependency in test artifact's pom
* added Selenium test for delete of metadata properties (mailing list, dependency, and license)



git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@948793 13f79535-47bb-0310-9956-ffa450edef68
2010-05-27 11:54:24 +00:00
Jevica Arianne B. Zurbano 8d7216a00e added selenium test to check the artifact page tabs
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@947039 13f79535-47bb-0310-9956-ffa450edef68
2010-05-21 15:29:49 +00:00
Jevica Arianne B. Zurbano 71f252b734 [MRM-1125] - default search should be AND not OR for multiple keywords
* applied patch
* added additional unit and selenium tests for quick search

Submitted by: Gwen Harold Autencio



git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@944632 13f79535-47bb-0310-9956-ffa450edef68
2010-05-15 12:56:34 +00:00
Maria Odea B. Ching ced10f5fa5 [MRM-1353] Build number is always 1 for SNAPSHOT artifacts uploaded via web upload form
merge -c 930528 from 1.3.x branch with some tweaks in the unit and selenium tests


git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@940163 13f79535-47bb-0310-9956-ffa450edef68
2010-05-02 06:13:08 +00:00
Marecor M. Baclay 45db0bf072 [MRM-1276] Selenium tests need a clean up
- removed the unnecessary commented out lines
- modified LoginTest to use the methods in abstract class



git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@933824 13f79535-47bb-0310-9956-ffa450edef68
2010-04-14 01:02:19 +00:00
Maria Odea B. Ching dda469036d [MRM-1372] Outdated instruction for Maven and JUnit still in ReadMe.txt for selenium tests
submitted by Patti Arachchige Eshan Sudharaka
o remove instruction for running pom in src/test/it


git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@933495 13f79535-47bb-0310-9956-ffa450edef68
2010-04-13 06:55:01 +00:00
Marecor M. Baclay 713c937982 [MRM-1276] Selenium tests need a clean up
- added license to AbstractArtifactManagementTest class



git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@931478 13f79535-47bb-0310-9956-ffa450edef68
2010-04-07 09:29:51 +00:00
Marecor M. Baclay ddeaa798b6 [MRM-1276] Selenium tests need a clean up
- fixed poor formatting in the source code (tabs, etc) following the Maven Code Style



git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@931475 13f79535-47bb-0310-9956-ffa450edef68
2010-04-07 09:27:05 +00:00
Marecor M. Baclay 45100a8806 [MRM-1276] Selenium tests need a clean up
- used getSelenium().open() instead of clickLinkWithText



git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@931081 13f79535-47bb-0310-9956-ffa450edef68
2010-04-06 10:48:51 +00:00
Marecor M. Baclay b60226f360 [MRM-1276] Selenium tests need a clean up
- removed it.properties in src/test/resources
- updated the path in property file and some classes for the changes made in r.928992



git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@929005 13f79535-47bb-0310-9956-ffa450edef68
2010-03-30 06:16:30 +00:00
Marecor M. Baclay edf2cd3a40 [MRM-1276] Selenium tests need a clean up
-transferred the contents of src/test/it-resources to src/test/resources



git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@928992 13f79535-47bb-0310-9956-ffa450edef68
2010-03-30 05:23:07 +00:00
Marecor M. Baclay 286a4ee97e - replaced the missed hardcoded value with the value in the property file
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@925151 13f79535-47bb-0310-9956-ffa450edef68
2010-03-19 09:20:14 +00:00
Marecor M. Baclay 8d9c3f7613 - modified the scripts to use a property file(testng.properties) for dotnet artifact's groupId, artifactId and version
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@925149 13f79535-47bb-0310-9956-ffa450edef68
2010-03-19 09:13:31 +00:00
Marecor M. Baclay ac57eadd48 [MRM-1323] archiva webapp tests failed to run in internet explorer
Submitted by: Gwen Harold Autencio



git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@924673 13f79535-47bb-0310-9956-ffa450edef68
2010-03-18 09:25:09 +00:00
Brett Porter a7238c5eb0 [MRM-1361] add support for NPanday artifact types. Currently requires some hard coding into webapp and tests, but removing the plugin from the webapp would safely disable the functionality.
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@921687 13f79535-47bb-0310-9956-ffa450edef68
2010-03-11 04:43:23 +00:00
Maria Odea B. Ching 3deb0ee356 o update artifact groupId/artifactId to not use "test" term for uploaded artifacts not used for search test
o added note in readme file to avoid using the term "test" in artifact namespace when writining new add/upload artifact test


git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@920773 13f79535-47bb-0310-9956-ffa450edef68
2010-03-09 10:23:57 +00:00
Brett Porter 62b97751fb always output the HTML anyway
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@919326 13f79535-47bb-0310-9956-ffa450edef68
2010-03-05 07:59:47 +00:00
Brett Porter 6418e7926c another note about Windows
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@918764 13f79535-47bb-0310-9956-ffa450edef68
2010-03-03 23:21:12 +00:00
Brett Porter 76fa406159 add a note about popup blockers
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@918759 13f79535-47bb-0310-9956-ffa450edef68
2010-03-03 23:10:29 +00:00
Brett Porter 3b18981b51 [MRM-1323] run tests with applet disabled to avoid warnings popping up
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@918745 13f79535-47bb-0310-9956-ffa450edef68
2010-03-03 22:42:46 +00:00
Brett Porter 1dc20b01ac update readme
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@918712 13f79535-47bb-0310-9956-ffa450edef68
2010-03-03 21:51:41 +00:00
Brett Porter b0bf4f1689 correct test due to changed behaviour in audit log
git-svn-id: https://svn.apache.org/repos/asf/archiva/branches/MRM-1025@910393 13f79535-47bb-0310-9956-ffa450edef68
2010-02-16 04:27:33 +00:00
Brett Porter 23de2a49fb check user is logged in at end of test
git-svn-id: https://svn.apache.org/repos/asf/archiva/branches/MRM-1025@910389 13f79535-47bb-0310-9956-ffa450edef68
2010-02-16 03:57:37 +00:00
Brett Porter 4903f8dd2d Merged /archiva/trunk:r909071-909464
git-svn-id: https://svn.apache.org/repos/asf/archiva/branches/MRM-1025@909470 13f79535-47bb-0310-9956-ffa450edef68
2010-02-12 15:53:49 +00:00
Brett Porter 20c60cb1c1 [MRM-1304] Query using Group ID field in audit log report uses '/' as a separator instead of '.'
Submitted by: Adelita L. Padilla (applied with modifications to test)


git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@909454 13f79535-47bb-0310-9956-ffa450edef68
2010-02-12 15:20:38 +00:00
Brett Porter 5bb1dbf6f2 merge -r909422:909434 from trunk to fix Selenium tests
git-svn-id: https://svn.apache.org/repos/asf/archiva/branches/MRM-1025@909436 13f79535-47bb-0310-9956-ffa450edef68
2010-02-12 14:47:09 +00:00
Brett Porter be5981bf16 fix the audit log tests
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@909433 13f79535-47bb-0310-9956-ffa450edef68
2010-02-12 14:42:33 +00:00
Brett Porter 951639dec3 ensure delete tests continue working if earlier ones have failed
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@909423 13f79535-47bb-0310-9956-ffa450edef68
2010-02-12 14:21:45 +00:00
Brett Porter 531994a74c use correct path
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@909422 13f79535-47bb-0310-9956-ffa450edef68
2010-02-12 14:18:59 +00:00
Brett Porter e295629858 merge -r909353:909402 from MRM-1025 branch, fixes for Selenium tests
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@909410 13f79535-47bb-0310-9956-ffa450edef68
2010-02-12 13:47:29 +00:00
Brett Porter 378090d198 make sure we always use a valid path in the upload form
git-svn-id: https://svn.apache.org/repos/asf/archiva/branches/MRM-1025@909402 13f79535-47bb-0310-9956-ffa450edef68
2010-02-12 13:36:08 +00:00
Brett Porter d9f7a94c04 fix adjusted value
git-svn-id: https://svn.apache.org/repos/asf/archiva/branches/MRM-1025@909394 13f79535-47bb-0310-9956-ffa450edef68
2010-02-12 13:13:03 +00:00
Brett Porter 1e4e84e15e make paths work on windows
git-svn-id: https://svn.apache.org/repos/asf/archiva/branches/MRM-1025@909393 13f79535-47bb-0310-9956-ffa450edef68
2010-02-12 13:12:13 +00:00
Brett Porter c63e762e55 avoid black screenshots
git-svn-id: https://svn.apache.org/repos/asf/archiva/branches/MRM-1025@909376 13f79535-47bb-0310-9956-ffa450edef68
2010-02-12 12:04:36 +00:00
Brett Porter b8cee9b0ef move to using a non-suite-xml as it's the only way to run the exclusion without making multiple copies
git-svn-id: https://svn.apache.org/repos/asf/archiva/branches/MRM-1025@909372 13f79535-47bb-0310-9956-ffa450edef68
2010-02-12 11:57:15 +00:00
Brett Porter 21a6867fd6 remove comments no longer relevant
git-svn-id: https://svn.apache.org/repos/asf/archiva/branches/MRM-1025@909356 13f79535-47bb-0310-9956-ffa450edef68
2010-02-12 11:05:24 +00:00
Brett Porter b5ebb3a6d3 enable tests that only work on firefox, conditional on the firefox profile
git-svn-id: https://svn.apache.org/repos/asf/archiva/branches/MRM-1025@909354 13f79535-47bb-0310-9956-ffa450edef68
2010-02-12 11:02:02 +00:00