- #include "backend.h" to get right prototypes
authorAleš Křenek <ljocha@ics.muni.cz>
Mon, 1 Aug 2005 12:57:36 +0000 (12:57 +0000)
committerAleš Křenek <ljocha@ics.muni.cz>
Mon, 1 Aug 2005 12:57:36 +0000 (12:57 +0000)
- initial (incomplete) test description

org.glite.jp.primary/examples/README.test [new file with mode: 0644]
org.glite.jp.primary/src/tags_plugin.c

diff --git a/org.glite.jp.primary/examples/README.test b/org.glite.jp.primary/examples/README.test
new file mode 100644 (file)
index 0000000..6bfe1d8
--- /dev/null
@@ -0,0 +1,40 @@
+Create database:
+----------------
+
+$ mysqladmin -u root -p create jpps 
+$ mysql -u root -p
+mysql> grant all privileges on jpps.* to jpps@localhost identified by '';
+
+$ mysql -p -u jpps jpps <config/glite-jp-primary-dbsetup.sql
+
+
+Start server:
+-------------
+
+$ glite-jp-primarystoraged -P .libs/glite-jp-tags.so -BI,/INTERNAL/PATH -BE,ftp://`hostname`/EXT/PREFIX -a trusted_peers
+
+/INTENAL/PATH points to the directory where JP files are stored
+
+/EXT/PREFIX prefix in URLs to manipulate with these files -- ftp should be
+configured to map ftp://`hostname`/EXT/PREFIX/file to 
+
+trusted_peers  line-by-line list of X509 subjects to be considered "trusted",
+       i.e. services (like LB) we accept data from
+
+
+
+Register job:
+-------------
+
+$ jpps-test RegisterJob JOBID OWNER
+
+Returns:
+- OK 
+- File exists (Job already registered)
+- Operation not permitted (you are not a trusted peer)
+
+
+Record JP tag:
+--------------
+
+$ jpps-test RecordTag JPBID TagA 1 blah
index 95dabd8..877201d 100644 (file)
@@ -9,6 +9,7 @@
 
 #include "file_plugin.h"
 #include "builtin_plugins.h"
+#include "backend.h"
 
 static int tagappend(void *,void *,int,...);
 static int tagopen(void *,void *,const char *uri,void **);