OpenACS 4 Examples


Here are some test files that can be run against existing OpenACS 4 installations: openacs4tests.

They can be run like that:

tils@tp:~/tclwebtest$ ./tclwebtest openacs4tests/

Below is the output that the call above produces. Note that the two wp-slim tests fail, since this package is not ported yet. They work on a Classic ACS installation though, when the package is mounted as assumed.

Don't interpret too much meaning into the individual .test files - in part they were written before some API additions or changes and afterwards simply tweaked to work again.

----- START: openacs4tests/cookies.test at [20/Aug/2001:16:21:31] -----
--- do_request for http://lari/
http status: >>200<<
--- do_request for http://lari/register/user-login
http status: >>302<<
following a redirect to: http://lari/
--- do_request for http://lari/
http status: >>200<<
ad_user_login {expires {Fri, 01-Jan-2035 01:00:00 GMT} persistent_p 1 value 1750%20%7b824%200%209B682DAB3D79E9A4751117A11ADA71D55877307C%7d name ad_user_login full {ad_user_login=1750%20%7b824%200%209B682DAB3D79E9A4751117A11ADA71D55877307C%7d; Path=/; Expires=Fri, 01-Jan-2035 01:00:00 GMT}}
--- do_request for http://lari/pvt/home
http status: >>200<<
--- do_request for http://lari/register/logout
http status: >>302<<
following a redirect to: http://lari/
--- do_request for http://lari/
http status: >>200<<
----- SUCCESS: openacs4tests/cookies.test (took 2s)               -----


----- START: openacs4tests/doc.test at [20/Aug/2001:16:21:33] -----
DEBUG: openacs4_admin_session called for the first time, logging in
--- do_request for http://lari/
http status: >>200<<
--- do_request for http://lari/register/user-login
http status: >>302<<
following a redirect to: http://lari/
--- do_request for http://lari/
http status: >>200<<
--- do_request for http://lari/doc
http status: >>302<<
following a redirect to: http://lari/doc/
--- do_request for http://lari/doc/
http status: >>200<<
DEBUG: checking /doc/acs-templating/
--- do_request for http://lari/doc/acs-templating/
http status: >>200<<
DEBUG: checking /doc/acs-content-repository/
--- do_request for http://lari/doc/acs-content-repository/
http status: >>200<<
DEBUG: checking /doc/acs-mail/
--- do_request for http://lari/doc/acs-mail/
http status: >>200<<
DEBUG: checking /doc/acs-messaging/
--- do_request for http://lari/doc/acs-messaging/
http status: >>200<<
DEBUG: checking /doc/acs-subsite/
--- do_request for http://lari/doc/acs-subsite/
http status: >>200<<
DEBUG: checking /doc/skin/
--- do_request for http://lari/doc/skin/
http status: >>200<<
----- SUCCESS: openacs4tests/doc.test (took 1s)               -----


----- START: openacs4tests/helloworld.test at [20/Aug/2001:16:21:34] -----
--- do_request for http://lari
http status: >>200<<
----- SUCCESS: openacs4tests/helloworld.test (took 1s)               -----


----- START: openacs4tests/notes_mount.test at [20/Aug/2001:16:21:35] -----
DEBUG: openacs4_admin_session called subsequently, setting cookies
--- do_request for http://lari/admin/site-map
http status: >>302<<
following a redirect to: http://lari/admin/site-map/
--- do_request for http://lari/admin/site-map/
http status: >>200<<
--- do_request for http://lari/admin/site-map/.?expand=1746&root%5fid=1746&node%5fid=1746&new_parent=1746&new_type=folder
http status: >>302<<
following a redirect to: http://lari/admin/site-map/?expand=1746&root%5fid=1746&node%5fid=1746&new_parent=1746&new_type=folder
--- do_request for http://lari/admin/site-map/?expand=1746&root%5fid=1746&node%5fid=1746&new_parent=1746&new_type=folder
http status: >>200<<
--- do_request for http://lari/admin/site-map/new
http status: >>302<<
following a redirect to: http://lari/admin/site-map/.?expand=1746&root%5fid=1746
--- do_request for http://lari/admin/site-map/.?expand=1746&root%5fid=1746
http status: >>302<<
following a redirect to: http://lari/admin/site-map/?expand=1746&root%5fid=1746
--- do_request for http://lari/admin/site-map/?expand=1746&root%5fid=1746
http status: >>200<<
--- do_request for http://lari/admin/site-map/.?expand=1746&root_id=1838
http status: >>302<<
following a redirect to: http://lari/admin/site-map/?expand=1746&root_id=1838
--- do_request for http://lari/admin/site-map/?expand=1746&root_id=1838
http status: >>200<<
--- do_request for http://lari/admin/site-map/.?expand=1746&root%5fid=1838&new_application=1838
http status: >>302<<
following a redirect to: http://lari/admin/site-map/?expand=1746&root%5fid=1838&new_application=1838
--- do_request for http://lari/admin/site-map/?expand=1746&root%5fid=1838&new_application=1838
http status: >>200<<
--- do_request for http://lari/admin/site-map/package-new
http status: >>302<<
following a redirect to: http://lari/admin/site-map/.?expand=1746&root%5fid=1838
--- do_request for http://lari/admin/site-map/.?expand=1746&root%5fid=1838
http status: >>302<<
following a redirect to: http://lari/admin/site-map/?expand=1746&root%5fid=1838
--- do_request for http://lari/admin/site-map/?expand=1746&root%5fid=1838
http status: >>200<<
--- do_request for http://lari/notes_test/
http status: >>200<<
--- do_request for http://lari/notes_test/add-edit
http status: >>200<<
--- do_request for http://lari/notes_test/add-edit
http status: >>302<<
following a redirect to: http://lari/notes_test/
--- do_request for http://lari/notes_test/
http status: >>200<<
----- SUCCESS: openacs4tests/notes_mount.test (took 9s)               -----


----- START: openacs4tests/persistent_login.test at [20/Aug/2001:16:21:44] -----
----- SUCCESS: openacs4tests/persistent_login.test (took 0s)               -----


----- START: openacs4tests/sessions.test at [20/Aug/2001:16:21:44] -----
DEBUG: openacs4_admin_session called subsequently, setting cookies
--- do_request for http://lari/
http status: >>200<<
--- do_request for http://lari/
http status: >>200<<
--- do_request for http://lari/api-doc/
http status: >>200<<
--- do_request for http://lari/api-doc/package-view?version_id=177&public_p=1
http status: >>200<<
--- do_request for http://lari/api-doc/package-view?version_id=326&public_p=1
http status: >>200<<
--- do_request for http://lari/api-doc/package-view?version_id=177
http status: >>200<<
--- do_request for http://lari/api-doc/package-view?version_id=177&public_p=0
http status: >>200<<
--- do_request for http://lari/api-doc/package-view?version_id=326
http status: >>200<<
--- do_request for http://lari/api-doc/package-view?version_id=326&public_p=0
http status: >>200<<
--- do_request for http://lari/pvt/home
http status: >>200<<
--- do_request for http://lari/register/logout
http status: >>302<<
following a redirect to: http://lari/
--- do_request for http://lari/
http status: >>200<<
----- SUCCESS: openacs4tests/sessions.test (took 4s)               -----


----- START: openacs4tests/sitemap.test at [20/Aug/2001:16:21:48] -----
DEBUG: openacs4_admin_session called subsequently, setting cookies
--- do_request for http://lari/admin/site-map
http status: >>302<<
following a redirect to: http://lari/admin/site-map/
--- do_request for http://lari/admin/site-map/
http status: >>200<<
--- do_request for http://lari/admin/site-map/.?expand=1746&root%5fid=1746&node%5fid=1746&new_parent=1746&new_type=folder
http status: >>302<<
following a redirect to: http://lari/admin/site-map/?expand=1746&root%5fid=1746&node%5fid=1746&new_parent=1746&new_type=folder
--- do_request for http://lari/admin/site-map/?expand=1746&root%5fid=1746&node%5fid=1746&new_parent=1746&new_type=folder
http status: >>200<<
--- do_request for http://lari/admin/site-map/new
http status: >>302<<
following a redirect to: http://lari/admin/site-map/.?expand=1746&root%5fid=1746
--- do_request for http://lari/admin/site-map/.?expand=1746&root%5fid=1746
http status: >>302<<
following a redirect to: http://lari/admin/site-map/?expand=1746&root%5fid=1746
--- do_request for http://lari/admin/site-map/?expand=1746&root%5fid=1746
http status: >>200<<
--- do_request for http://lari/admin/site-map/.?expand=1746&root_id=1842
http status: >>302<<
following a redirect to: http://lari/admin/site-map/?expand=1746&root_id=1842
--- do_request for http://lari/admin/site-map/?expand=1746&root_id=1842
http status: >>200<<
--- do_request for http://lari/admin/site-map/.?expand=1746&root%5fid=1842&node%5fid=1842&new_parent=1842&new_type=folder
http status: >>302<<
following a redirect to: http://lari/admin/site-map/?expand=1746&root%5fid=1842&node%5fid=1842&new_parent=1842&new_type=folder
--- do_request for http://lari/admin/site-map/?expand=1746&root%5fid=1842&node%5fid=1842&new_parent=1842&new_type=folder
http status: >>200<<
--- do_request for http://lari/admin/site-map/new
http status: >>302<<
following a redirect to: http://lari/admin/site-map/.?expand=1746&expand=1842&root%5fid=1842
--- do_request for http://lari/admin/site-map/.?expand=1746&expand=1842&root%5fid=1842
http status: >>302<<
following a redirect to: http://lari/admin/site-map/?expand=1746&expand=1842&root%5fid=1842
--- do_request for http://lari/admin/site-map/?expand=1746&expand=1842&root%5fid=1842
http status: >>200<<
--- do_request for http://lari/admin/site-map/.?expand=1746&expand=1842&root_id=1843
http status: >>302<<
following a redirect to: http://lari/admin/site-map/?expand=1746&expand=1842&root_id=1843
--- do_request for http://lari/admin/site-map/?expand=1746&expand=1842&root_id=1843
http status: >>200<<
--- do_request for http://lari/admin/site-map/delete?expand=1746&expand=1842&root%5fid=1843&node%5fid=1843
http status: >>302<<
following a redirect to: http://lari/admin/site-map/.?expand=1746&expand=1842&root%5fid=1842
--- do_request for http://lari/admin/site-map/.?expand=1746&expand=1842&root%5fid=1842
http status: >>302<<
following a redirect to: http://lari/admin/site-map/?expand=1746&expand=1842&root%5fid=1842
--- do_request for http://lari/admin/site-map/?expand=1746&expand=1842&root%5fid=1842
http status: >>200<<
--- do_request for http://lari/admin/site-map/delete?expand=1746&expand=1842&root%5fid=1842&node%5fid=1842
http status: >>302<<
following a redirect to: http://lari/admin/site-map/.?expand=1746&expand=1842&root%5fid=1746
--- do_request for http://lari/admin/site-map/.?expand=1746&expand=1842&root%5fid=1746
http status: >>302<<
following a redirect to: http://lari/admin/site-map/?expand=1746&expand=1842&root%5fid=1746
--- do_request for http://lari/admin/site-map/?expand=1746&expand=1842&root%5fid=1746
http status: >>200<<
----- SUCCESS: openacs4tests/sitemap.test (took 10s)               -----


----- START: openacs4tests/templating.test at [20/Aug/2001:16:21:58] -----
--- do_request for http://lari/
http status: >>200<<
--- do_request for http://lari/register/user-login
http status: >>302<<
following a redirect to: http://lari/
--- do_request for http://lari/
http status: >>200<<
--- do_request for http://lari/doc/acs-templating/demo/hello
http status: >>200<<
--- do_request for http://lari/doc/acs-templating/demo/include
http status: >>200<<
--- do_request for http://lari/doc/acs-templating/demo/slave
http status: >>200<<
--- do_request for http://lari/doc/acs-templating/demo/slave-default
http status: >>200<<
--- do_request for http://lari/doc/acs-templating/demo/skin?skin=
http status: >>200<<
--- do_request for http://lari/doc/acs-templating/demo/skin?skin=fancy
http status: >>200<<
--- do_request for http://lari/doc/acs-templating/demo/skin?skin=plain
http status: >>200<<
--- do_request for http://lari/doc/acs-templating/demo/fibo-start?m=7
http status: >>200<<
--- do_request for http://lari/doc/acs-templating/demo/if
http status: >>200<<
--- do_request for http://lari/doc/acs-templating/demo/implicit_escape
http status: >>200<<
--- do_request for http://lari/doc/acs-templating/demo/explicit_escape
http status: >>200<<
--- do_request for http://lari/doc/acs-templating/demo/embed_escape
http status: >>200<<
--- do_request for http://lari/doc/acs-templating/demo/puts
http status: >>200<<
--- do_request for http://lari/doc/acs-templating/demo/contract-2?count=2&noun=goose&plural=geese
http status: >>200<<
--- do_request for http://lari/doc/acs-templating/demo/contract-2?count=13&noun=goose&plural=geese
http status: >>200<<
--- do_request for http://lari/doc/acs-templating/demo/sandwich?form:id=sandwich&grid=&nickname=yummyfood&protein=bacon&sauce=mayo
http status: >>200<<
--- do_request for http://lari/doc/acs-templating/demo/select?form:id=car_opts&grid=&extras=windows&payment=atm
http status: >>200<<
--- do_request for http://lari/doc/acs-templating/demo/bind?user_id=1
http status: >>200<<
--- do_request for http://lari/doc/acs-templating/demo/legacy
http status: >>200<<
--- do_request for http://lari/doc/acs-templating/demo/comment
http status: >>200<<
--- do_request for http://lari/doc/acs-templating/demo/multiple
http status: >>200<<
--- do_request for http://lari/doc/acs-templating/demo/group
http status: >>200<<
--- do_request for http://lari/doc/acs-templating/demo/list
http status: >>200<<
--- do_request for http://lari/doc/acs-templating/demo/list
http status: >>200<<
--- do_request for http://lari/doc/acs-templating/demo/show.tcl?file=hello.tcl
http status: >>200<<
--- do_request for http://lari/doc/acs-templating/demo/compile.tcl?file=hello.tcl
http status: >>200<<
----- SUCCESS: openacs4tests/templating.test (took 4s)               -----


----- START: openacs4tests/wp-slim-delete-all.test at [20/Aug/2001:16:22:02] -----
--- do_request for http://lari/
http status: >>200<<
--- do_request for http://lari/register/user-login
http status: >>302<<
following a redirect to: http://lari/register/user-new?email=tobi%40tils%2enet&persistent%5fcookie%5fp=1&return%5furl=%2f
--- do_request for http://lari/register/user-new?email=tobi%40tils%2enet&persistent%5fcookie%5fp=1&return%5furl=%2f
http status: >>200<<
--- do_request for http://lari/wp/
http status: >>404<<

No link found that matches 'edit'
in "openacs4tests/wp-slim-delete-all.test" line 7:
common_login

do_request "http://$SERVER/wp/"

while 1 {

-----  FAILED: openacs4tests/wp-slim-delete-all.test (took 1s)               -----


----- START: openacs4tests/wp-slim.test at [20/Aug/2001:16:22:03] -----
--- do_request for http://lari/
http status: >>200<<
--- do_request for http://lari/register/user-login
http status: >>302<<
following a redirect to: http://lari/register/user-new?email=tobi%40tils%2enet&persistent%5fcookie%5fp=1&return%5furl=%2f
--- do_request for http://lari/register/user-new?email=tobi%40tils%2enet&persistent%5fcookie%5fp=1&return%5furl=%2f
http status: >>200<<
--- do_request for http://lari/wp/
http status: >>404<<

No link found that matches '~u create-presentation'
in "openacs4tests/wp-slim.test" line 18:


do_request "http://$WIMPY_URL/"

link follow ~u "create-presentation"

-----  FAILED: openacs4tests/wp-slim.test (took 1s)               -----

DURATION: 33
2 of 10 tests FAILED:
openacs4tests/wp-slim-delete-all.test
openacs4tests/wp-slim.test


Tilmann Singer
Last modified: Mon Aug 20 16:28:35 CEST 2001