WebEOS CGI Testing
This project contains a set of files that are used for the okd4-install tests. To test webeos properly we need to:
-
Clone this repo to our
EOS
home directory (we can do this using lxplus, aiadm or cernbox desktop app); -
We head over to cernbox.cern.ch and now we will have to share the repo folder with the service account
a:wwweos
(for prod testing)a:eosautofstests
(for dev testing) -
Make sure that every thing under the folder
cgi-bin
is executable you can do this by runningchmod +x hello.*
-
Now we only need to create a
UserProvidedDirectory
CR withpath
pointing to the repo folder we have created.
apiVersion: webeos.webservices.cern.ch/v1alpha1
kind: UserProvidedDirectory
metadata:
name: <NAME>
spec:
...
eosPath: /eos/user/<CERN_ID_INITIAL>/<CERN_ID>/webeos-cgi-test
- To test that everything is working properly we can just access the website followed by
/cgi-bin/hello.pl
aHello, World!
message should appear in the browser.
Note: As of July 2020 PHP, Perl, Bash and Python work.