mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Merge from SEAMIST3
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@10718 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -0,0 +1,39 @@
|
|||||||
|
<?xml version="1.0" encoding='utf-8'?>
|
||||||
|
<service xmlns="http://www.w3.org/2007/app" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:cmis="http://www.cmis.org/CMIS/1.0">
|
||||||
|
<workspace cmis:id="${server.id}">
|
||||||
|
<atom:title>${server.name}</atom:title>
|
||||||
|
|
||||||
|
<cmis:repository_info>
|
||||||
|
<cmis:vendorName>Alfresco</cmis:vendorName>
|
||||||
|
<cmis:productName>Alfresco Repository (${server.edition})</cmis:productName>
|
||||||
|
<cmis:productVersion>${server.version}</cmis:productVersion>
|
||||||
|
<cmis:capabilities>
|
||||||
|
<cmis:capabilityMultifiling>true</cmis:capabilityMultifiling>
|
||||||
|
<cmis:capabilityAllVersionsSearchable>false</cmis:capabilityAllVersionsSearchable>
|
||||||
|
<cmis:capabilityPWCUpdatable>true</cmis:capabilityPWCUpdatable>
|
||||||
|
</cmis:capabilities>
|
||||||
|
<cmis:description></cmis:description>
|
||||||
|
<cmis:repositoryInfo></cmis:repositoryInfo>
|
||||||
|
</cmis:repository_info>
|
||||||
|
|
||||||
|
<#-- TODO: cmis:id on collection elements - are they required by cmis? -->
|
||||||
|
<#-- TODO: collection resources -->
|
||||||
|
|
||||||
|
<collection href="http://example.org/cmis/main" cmis:collectionType="root">
|
||||||
|
<atom:title>CMIS root folder</atom:title>
|
||||||
|
</collection>
|
||||||
|
<collection href="http://example.org/cmis/main?checkedout" cmis:collectionType="checkedout">
|
||||||
|
<atom:title>CMIS checked-out documents</atom:title>
|
||||||
|
</collection>
|
||||||
|
<collection href="http://example.org/cmis/main?types" cmis:collectionType="types">
|
||||||
|
<atom:title>CMIS Types</atom:title>
|
||||||
|
</collection>
|
||||||
|
|
||||||
|
<#-- NOTE: alfresco does not support notion of unfiled...
|
||||||
|
<collection href="http://example.org/cmis/main?unfiled" cmis:collectionType="unfiled">
|
||||||
|
<atom:title>CMIS unfiled documents</atom:title>
|
||||||
|
</collection>
|
||||||
|
-->
|
||||||
|
|
||||||
|
</workspace>
|
||||||
|
</service>
|
@@ -0,0 +1,7 @@
|
|||||||
|
<webscript>
|
||||||
|
<shortname>Repository AtomPub Service Document</shortname>
|
||||||
|
<description>Repository ATOM Publishing Service Document (with CMIS extensions)</description>
|
||||||
|
<url>/api/repository</url>
|
||||||
|
<format default="atom"/>
|
||||||
|
<authentication>none</authentication>
|
||||||
|
</webscript>
|
@@ -157,7 +157,7 @@ public class RepositoryContainer extends AbstractRuntimeContainer implements Ten
|
|||||||
*/
|
*/
|
||||||
public ServerModel getDescription()
|
public ServerModel getDescription()
|
||||||
{
|
{
|
||||||
return new RepositoryServerModel(descriptorService.getServerDescriptor());
|
return new RepositoryServerModel(descriptorService.getCurrentRepositoryDescriptor());
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
/* (non-Javadoc)
|
||||||
|
@@ -55,6 +55,22 @@ public class RepositoryServerModel implements ServerModel
|
|||||||
return "Repository";
|
return "Repository";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*(non-Javadoc)
|
||||||
|
* @see org.alfresco.web.scripts.ServerModel#getId()
|
||||||
|
*/
|
||||||
|
public String getId()
|
||||||
|
{
|
||||||
|
return serverDescriptor.getId();
|
||||||
|
}
|
||||||
|
|
||||||
|
/* (non-Javadoc)
|
||||||
|
* @see org.alfresco.web.scripts.ServerModel#getName()
|
||||||
|
*/
|
||||||
|
public String getName()
|
||||||
|
{
|
||||||
|
return serverDescriptor.getName();
|
||||||
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
/* (non-Javadoc)
|
||||||
* @see org.alfresco.web.scripts.ServerModel#getVersionMajor()
|
* @see org.alfresco.web.scripts.ServerModel#getVersionMajor()
|
||||||
*/
|
*/
|
||||||
|
33
source/test/apptest/apptest.readme.txt
Normal file
33
source/test/apptest/apptest.readme.txt
Normal file
@@ -0,0 +1,33 @@
|
|||||||
|
AppClientTest is a tool for testing an AtomPub Service.
|
||||||
|
|
||||||
|
http://code.google.com/p/feedvalidator/wiki/AppClientTest
|
||||||
|
|
||||||
|
1) To install and test installation...
|
||||||
|
|
||||||
|
$ svn co http://feedvalidator.googlecode.com/svn/trunk/apptestsuite/client/validator/ validator
|
||||||
|
$ python validator/appclienttest.py --output=results.html "http://bitworking.org/projects/apptestsite/app.cgi/service/;service_document"
|
||||||
|
$ firefox results.html
|
||||||
|
|
||||||
|
The above has been encapsulated in...
|
||||||
|
|
||||||
|
/projects/remote-api/source/test/apptest/install.sh
|
||||||
|
|
||||||
|
2) To execute appclienttest against Alfresco
|
||||||
|
|
||||||
|
/projects/remote-api/source/test/apptest/test.sh
|
||||||
|
|
||||||
|
|
||||||
|
3) Note: appclienttest.py arguments...
|
||||||
|
|
||||||
|
-h, --help show this help message and exit
|
||||||
|
--credentials=FILE FILE that contains a name and password on separate lines
|
||||||
|
with an optional third line with the authentication type
|
||||||
|
of 'ClientLogin <service>'.
|
||||||
|
--output=FILE FILE to store test results
|
||||||
|
--verbose Print extra information while running.
|
||||||
|
--quiet Do not print anything while running.
|
||||||
|
--debug Print low level HTTP information while running.
|
||||||
|
--html Output is formatted in HTML
|
||||||
|
--record=DIR Record all the responses to be used later in playback
|
||||||
|
mode.
|
||||||
|
--playback=DIR Playback responses stored from a previous run.
|
5
source/test/apptest/install.sh
Executable file
5
source/test/apptest/install.sh
Executable file
@@ -0,0 +1,5 @@
|
|||||||
|
# ! /bin/sh
|
||||||
|
|
||||||
|
svn co http://feedvalidator.googlecode.com/svn/trunk/apptestsuite/client/validator/ validator
|
||||||
|
python validator/appclienttest.py --html --verbose --output=results.html "http://bitworking.org/projects/apptestsite/app.cgi/service/;service_document"
|
||||||
|
open results.html
|
126
source/test/apptest/results.html
Normal file
126
source/test/apptest/results.html
Normal file
@@ -0,0 +1,126 @@
|
|||||||
|
<!DOCTYPE HTML>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta http-equiv="content-type" content="text/html; charset=utf-8">
|
||||||
|
<link href="validator/res/base.css" type="text/css" rel="stylesheet">
|
||||||
|
<script type="text/javascript" src="validator/res/jquery-1.2.3.js"></script>
|
||||||
|
<script type="text/javascript" src="validator/res/report.js" ></script>
|
||||||
|
<link href="validator/res/prettify.css" type="text/css" rel="stylesheet" />
|
||||||
|
<script type="text/javascript" src="validator/res/prettify.js"></script>
|
||||||
|
<title>AppClientTest - Results</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h1>Test Report</h1>
|
||||||
|
<dl>
|
||||||
|
<dt>Date</dt>
|
||||||
|
<dd>Thu May 1 16:48:30 2008</dd>
|
||||||
|
</dl>
|
||||||
|
<div class='legend'>
|
||||||
|
<h3>Legend</h3>
|
||||||
|
<dl>
|
||||||
|
<dt><img src='validator/res/info.gif'> Informational</dt>
|
||||||
|
<dd>Information on what was being tested.</dd>
|
||||||
|
<dt><img src='validator/res/warning.gif'> Warning</dt>
|
||||||
|
<dd>Warnings indicate behavior that, while legal, may cause<br/>
|
||||||
|
either performance or interoperability problems in the field.</dd>
|
||||||
|
<dt><img src='validator/res/error.gif'> Error</dt>
|
||||||
|
<dd>Errors are violations of either the Atom, AtomPub<br/> or HTTP specifications.</dd>
|
||||||
|
<dt><img src='validator/res/log.gif'> Log</dt>
|
||||||
|
<dd>Detailed information on the transaction to help you<br/> debug your service.</dd>
|
||||||
|
<dt><img src='validator/res/success.gif'> Success</dt>
|
||||||
|
<dd>A specific sub-test has been passed successfully.</dd>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<h2>Entry Collection</h2><p>Find the first entry collection listed in an Introspection document and run the Entry collection tests against it.</p>
|
||||||
|
<ol>
|
||||||
|
<li class='Log'><img src='validator/res/log.gif'> Request <span class='Log'><pre><code>
|
||||||
|
GET http://localhost:8080/alfresco/service/api/repository
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</code></pre>
|
||||||
|
<pre><code class='prettyprint'></code></pre></span></li>
|
||||||
|
<li class='Log'><img src='validator/res/log.gif'> Response <span class='Log'><pre><code>
|
||||||
|
|
||||||
|
status: 200
|
||||||
|
content-location: http://localhost:8080/alfresco/service/api/repository
|
||||||
|
transfer-encoding: chunked
|
||||||
|
server: Apache-Coyote/1.1
|
||||||
|
pragma: no-cache
|
||||||
|
cache-control: no-cache
|
||||||
|
date: Thu, 01 May 2008 15:48:26 GMT
|
||||||
|
content-type: application/atom+xml;charset=UTF-8
|
||||||
|
|
||||||
|
|
||||||
|
</code></pre>
|
||||||
|
<pre><code class='prettyprint'><?xml version="1.0" ?><service xmlns="http://www.w3.org/2007/app" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:cmis="http://www.cmis.org/CMIS/1.0">
|
||||||
|
<workspace cmis:id="63dbba8b-1224-11dd-bee8-852083ea779d">
|
||||||
|
<atom:title>Main Repository</atom:title>
|
||||||
|
|
||||||
|
<cmis:repository_info>
|
||||||
|
<cmis:vendorName>Alfresco</cmis:vendorName>
|
||||||
|
<cmis:productName>Alfresco Repository (Community Network)</cmis:productName>
|
||||||
|
<cmis:productVersion>3.0.0 (dev @build-number@)</cmis:productVersion>
|
||||||
|
<cmis:capabilities>
|
||||||
|
<cmis:capabilityMultifiling>true</cmis:capabilityMultifiling>
|
||||||
|
<cmis:capabilityAllVersionsSearchable>false</cmis:capabilityAllVersionsSearchable>
|
||||||
|
<cmis:capabilityPWCUpdatable>true</cmis:capabilityPWCUpdatable>
|
||||||
|
</cmis:capabilities>
|
||||||
|
<cmis:description/>
|
||||||
|
<cmis:repositoryInfo/>
|
||||||
|
</cmis:repository_info>
|
||||||
|
|
||||||
|
|
||||||
|
<collection cmis:collectionType="root" href="http://example.org/cmis/main">
|
||||||
|
<atom:title>CMIS root folder</atom:title>
|
||||||
|
</collection>
|
||||||
|
<collection cmis:collectionType="checkedout" href="http://example.org/cmis/main?checkedout">
|
||||||
|
<atom:title>CMIS checked-out documents</atom:title>
|
||||||
|
</collection>
|
||||||
|
<collection cmis:collectionType="types" href="http://example.org/cmis/main?types">
|
||||||
|
<atom:title>CMIS Types</atom:title>
|
||||||
|
</collection>
|
||||||
|
|
||||||
|
|
||||||
|
</workspace>
|
||||||
|
</service></code></pre></span></li>
|
||||||
|
<li class='Warning'><img src='validator/res/warning.gif'> <a href='http://tools.ietf.org/html/rfc2616#section-13.3.4'>[RFC2616] Section 13.3.4</a> <span class='Warning'>No ETag: header was sent with the response.</span></li>
|
||||||
|
<li class='Warning'><img src='validator/res/warning.gif'> <a href='http://tools.ietf.org/html/rfc2616#section-13.3.4'>[RFC2616] Section 13.3.4</a> <span class='Warning'>No Last-Modified: header was sent with the response.</span></li>
|
||||||
|
<li class='Warning'><img src='validator/res/warning.gif'> [RFC4287] <span class='Warning'>line 2, column 0: Use of unknown namespace: http://www.cmis.org/CMIS/1.0</span></li>
|
||||||
|
<li class='Info'><img src='validator/res/info.gif'> <span class='Info'>line 4, column 4: atom_title should contain a xml:lang element (4 occurrences)</span></li>
|
||||||
|
</ol>
|
||||||
|
<h2>Basic Entry Manipulation</h2><p>Add and remove three entries to the collection</p>
|
||||||
|
<ol>
|
||||||
|
<li class='Info'><img src='validator/res/info.gif'> <span class='Info'>Service Document: http://example.org/cmis/main</span></li>
|
||||||
|
<li class='Log'><img src='validator/res/log.gif'> Request <span class='Log'><pre><code>
|
||||||
|
GET http://example.org/cmis/main
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</code></pre>
|
||||||
|
<pre><code class='prettyprint'></code></pre></span></li>
|
||||||
|
<li class='Log'><img src='validator/res/log.gif'> Response <span class='Log'><pre><code>
|
||||||
|
|
||||||
|
status: 404
|
||||||
|
content-length: 283
|
||||||
|
server: Apache/2.2.3 (CentOS)
|
||||||
|
connection: close
|
||||||
|
date: Thu, 01 May 2008 15:48:30 GMT
|
||||||
|
content-type: text/html; charset=iso-8859-1
|
||||||
|
|
||||||
|
|
||||||
|
</code></pre>
|
||||||
|
<pre><code class='prettyprint'><!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
|
||||||
|
<html><head>
|
||||||
|
<title>404 Not Found</title>
|
||||||
|
</head><body>
|
||||||
|
<h1>Not Found</h1>
|
||||||
|
<p>The requested URL /cmis/main was not found on this server.</p>
|
||||||
|
<hr>
|
||||||
|
<address>Apache/2.2.3 (CentOS) Server at example.org Port 80</address>
|
||||||
|
</body></html>
|
||||||
|
</code></pre></span></li>
|
||||||
|
<li class='Error'><img src='validator/res/error.gif'> <a href='http://tools.ietf.org/html/rfc2616#section-10.2.1'>[RFC2616] Section 10.2.1</a> <span class='Error'>Could not successfully retrieve the document. Got a status code of: 404</span></li>
|
||||||
|
<li class='Info'><img src='validator/res/info.gif'> <span class='Info'>Didn't find any Media Collections that would accept GIF images</span></li>
|
||||||
|
</ol>
|
||||||
|
|
6
source/test/apptest/test.sh
Executable file
6
source/test/apptest/test.sh
Executable file
@@ -0,0 +1,6 @@
|
|||||||
|
# ! /bin/sh
|
||||||
|
|
||||||
|
# TODO: change url to Alfresco root service document
|
||||||
|
|
||||||
|
python validator/appclienttest.py --html --verbose --output=results.html "http://localhost:8080/alfresco/service/api/repository"
|
||||||
|
open results.html
|
Reference in New Issue
Block a user