[Skabacca-developer] SF.net SVN: skabacca:[17] trunk
Status: Pre-Alpha
Brought to you by:
triathlon98
|
From: <tri...@us...> - 2010-01-24 20:26:26
|
Revision: 17
http://skabacca.svn.sourceforge.net/skabacca/?rev=17&view=rev
Author: triathlon98
Date: 2010-01-24 20:26:17 +0000 (Sun, 24 Jan 2010)
Log Message:
-----------
test should create some users with some gui rights
Modified Paths:
--------------
trunk/gui/src/main/webapp/WEB-INF/web.xml
trunk/test/pom.xml
Added Paths:
-----------
trunk/test/src/test/resources/organizations.import.txt
Modified: trunk/gui/src/main/webapp/WEB-INF/web.xml
===================================================================
--- trunk/gui/src/main/webapp/WEB-INF/web.xml 2010-01-22 19:48:21 UTC (rev 16)
+++ trunk/gui/src/main/webapp/WEB-INF/web.xml 2010-01-24 20:26:17 UTC (rev 17)
@@ -18,13 +18,12 @@
<url-pattern>/*</url-pattern>
</filter-mapping>
- <!--
<servlet>
<servlet-name>import</servlet-name>
<servlet-class>org.equanda.ymport.Servlet</servlet-class>
<init-param>
<param-name>DatabaseMap</param-name>
- <param-value>be.synergetics.ca.ymport.DatabaseMap</param-value>
+ <param-value>org.skabacca.ymport.DatabaseMap</param-value>
</init-param>
</servlet>
@@ -32,7 +31,6 @@
<servlet-name>import</servlet-name>
<url-pattern>/import</url-pattern>
</servlet-mapping>
- -->
<security-constraint>
<web-resource-collection>
@@ -45,7 +43,6 @@
</user-data-constraint>
</security-constraint>
- <!--
<security-constraint>
<web-resource-collection>
<web-resource-name>Secured Content</web-resource-name>
@@ -75,5 +72,4 @@
<description>Administrator</description>
<role-name>LocalAdmin</role-name>
</security-role>
- -->
</web-app>
Modified: trunk/test/pom.xml
===================================================================
--- trunk/test/pom.xml 2010-01-22 19:48:21 UTC (rev 16)
+++ trunk/test/pom.xml 2010-01-24 20:26:17 UTC (rev 17)
@@ -95,11 +95,19 @@
<artifactId>equanda-maven-plugin</artifactId>
<version>${equanda-version}</version>
<configuration>
+ <!-- ddltool configuration -->
<database>${skabacca.db.url}</database>
<dblogin>${skabacca.db.login}</dblogin>
<dbpassword>${skabacca.db.password}</dbpassword>
<dbmap>org.skabacca.ddltool.EquandaMap</dbmap>
<ddltargets>update defaults</ddltargets>
+ <!-- import configuration, defined here as this is where maven retrieves it from -->
+ <url>https://localhost:8443/skabacca/import</url>
+ <login>local</login>
+ <password>local</password>
+ <locations>
+ <location>organizations.import.txt</location>
+ </locations>
</configuration>
<executions>
<execution>
@@ -135,7 +143,7 @@
<deployable>
<artifactId>ear</artifactId>
<type>ear</type>
- <pingURL>http://${skabacca.jboss.host}:${skabacca.jboss.port}/ca/gui/start
+ <pingURL>http://${skabacca.jboss.host}:${skabacca.jboss.port}/skabacca/gui/start
</pingURL>
</deployable>
</deployables>
@@ -160,6 +168,22 @@
</execution>
</executions>
</plugin>
+ <plugin>
+ <groupId>org.equanda</groupId>
+ <artifactId>equanda-maven-plugin</artifactId>
+ <configuration>
+ <!-- maven uses the configuration defined above -->
+ </configuration>
+ <executions>
+ <execution>
+ <id>import</id>
+ <phase>process-test-classes</phase>
+ <goals>
+ <goal>import</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
</plugins>
</build>
</profile>
Added: trunk/test/src/test/resources/organizations.import.txt
===================================================================
--- trunk/test/src/test/resources/organizations.import.txt (rev 0)
+++ trunk/test/src/test/resources/organizations.import.txt 2010-01-24 20:26:17 UTC (rev 17)
@@ -0,0 +1,60 @@
+:table:Organization/Reference:Reference,Name
+"TEST","Test Organization"
+"DUMMY","Dummy second organization"
+"WS","ws test organization"
+"MATCH","matcher test organization"
+"PROCAR","for Prolix testing"
+
+:table:EquandaRole/Role:RoleName,GuiAdministrator,AuthAndConfig
+"normal"
+"User",,"field.Artifact.Description=RWL\nfield.Artifact.Title=RWL\nfield.Artifact.Organization=RW\nfield.Artifact.Reference=RWLP\n\nfield.Competency.Description=RWL\nfield.Competency.Inactive=RW\nfield.Competency.Organizations=H\nfield.Competency.Reference=RWLPS\nfield.Competency.Title=RWLPS\nfield.CompetencyPlan.Assignments=RW\nfield.CompetencyPlan.Description=RWL\nfield.CompetencyPlan.Inactive=RWL\nfield.CompetencyPlan.MatchProfile=RW\nfield.CompetencyPlan.Organization=H\nfield.CompetencyPlan.Reference=RWLPS\nfield.CompetencyPlan.Title=RWLPS\nfield.CompetencyPlanAssignment.Persons=RWLS\nfield.CompetencyPlanAssignment.Plan=RWLPS\nfield.CompetencyPlanAssignment.Task=RWLS\nfield.Organization.Name=RL\nfield.Organization.Reference=RL\ngroup.Artifact.Assignments=RW\ngroup.Artifact.Content=RW\ngroup.Artifact.PersonInfo=RW\npage.Artifact.ALL=RW\npage.Artifact.default=RW\npage.Commitment.ALL=RW\npage.Commitment.default=RW\npage.Competency.ALL=RW\npage.Competency.default=RW\npage.Organization.ALL=R\npage.Organization.default=H\ntable.Artifact=RWD\ntable.Commitment=RW\ntable.Competency=RWD\ntable.CompetencyPlan=RWD\ntable.CompetencyPlanAssignment=RWD\ntable.ConfidenceScale=RWD\ntable.ConfidenceScore=RWD\ntable.Context=RWD\ntable.Criterion=RWD\ntable.CriterionScore=RWD\ntable.DeltaProficiencyCompetency=RWD\ntable.Organization=R"
+"guiAdmin",true,"table.EquandaRole=RWD\ntable.EquandaUser=RWD"
+
+:table:User/UserName:UserName,Password,Organization/Reference,Roles/Role
+"test","test","TEST",[["User"]]
+"dummy","dummy", "DUMMY",[["normal"]]
+"guiAdmin","guiAdmin",,[["guiAdmin",["User"]]
+"admin","admin",,[["guiAdmin",["User"]]
+"ws","ws","WS"
+"match","match","MATCH"
+
+:table:AssessmentMethod/Reference:Reference,Name,Organizations/Reference,Description,ConfidenceLevelDefault
+"SELF", "Self-Assessment", [["TEST"]], "Indicates that the person determined the competencies him/herself.", 0.4
+"SELF", "Self-Assessment", [["WS"]], "Indicates that the person determined the competencies him/herself.", 0.4
+"SELF", "Self-Assessment", [["DUMMY"]], "Indicates that the person determined the competencies him/herself.", 0.4
+"SELF", "Self-Assessment", [["MATCH"]], "Indicates that the person determined the competencies him/herself.", 0.4
+"SELF", "Self-Assessment", [["TEST","WS","DUMMY","MATCH"]], "Indicates that the person determined the competencies him/herself.", 0.4
+"AM0","DefaultAssessmentMethod",["MATCH"],,0.6
+
+:table:Organization/Reference:Reference,SelfAssessmentMethod/Reference
+"TEST","SELF"
+
+:table:Context/Reference:Organizations/Reference,Reference,Title,Ontology
+["TEST"], "TEST", "Test Context", "dogma://PROLIX/BT/1.0"
+
+:table:Competency/Reference:Organizations/Reference,Reference,Title
+[["TEST"]], "CT1", "Leadership"
+[["TEST"]], "CT2", "Conceptual thinking"
+[["TEST"]], "CT3", "Technical insight"
+
+:table:Commitment/Reference:Reference,Competency/Reference,Context/Reference,Title
+"CT1", "CT1", "TEST", "Leadership"
+"CT2", "CT2", "TEST", "Conceptual thinking"
+"CT3", "CT3", "TEST", "Technical insight"
+
+:table:TaskArtifact/Reference:Reference,Organization/Reference,Title,RequiredCompetencies[[Competency/Reference,ProficiencyLevel]]
+"TTASK1", "TEST", "Group Leading", [ [ "CT1", 0.9 ] ]
+"TTASK2", "TEST", "Innovation lead", [ [ "CT2", 0.8 ], [ "CT3", 1.0 ] ]
+
+:table:LearningArtifact/Reference:Reference,Organization/Reference,Title,LearningCompetencies[[Competency/Reference,PrerequisiteLevel,ObjectiveLevel]], Description
+"LEAD-COURSE", "TEST", "Leadership course", [ [ "CT1", 0, 1 ] ], "Extensive leadership course, based on the psychology of suppressing people :-)"
+
+:table:PersonArtifact/Reference:Reference,Title,Organization/Reference,AssignedRoles/Reference
+"TEST","Test person","TEST",[[TTASK1],[TTASK2]]
+"TRIATHLON98", "triathlon98","TEST"
+
+:table:CompetencyPlan/Reference:Reference,Title,Organization/Reference,Description
+"TEST","Test plan","TEST","Competency Plan for testing"
+:table:CompetencyPlanAssignment:Plan/Reference,Task/Reference,Persons/Reference
+"TEST", TTASK1, [[TEST],[TRIATHLON98]]
+"TEST", TTASK2, [[TEST]]
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|