Difference: Cream_blah_testsuites (5 vs. 6)

Revision 62012-11-07 - SaraBertocco

Line: 1 to 1
 
META TOPICPARENT name="TestingCreamDgas"

Cream regression, BLAH functionality and regression testsuites installation, configuration and use

Line: 23 to 23
 cream_test testsuite installation, configuration and use instructions are available here.

Set italiangrid repository

Added:
>
>
Repository Not Available now.
 

Install cream_blah_testsuite

Added:
>
>
Get the last cream_blah_testsuites rpm availablehere and install it with:
yum install cream_blah_testsuites-X.Y-Z.noarch.rpm 
 
Changed:
<
<

cream_blah_testsuite configuration

>
>
Note: EMI UI and cream_test must be already installed to be able to install cream_blah_testsuites.
 

Set SSH keys authentication

Added:
>
>
Since cream_test 1.8 it is provided a script to semi-automate the process, check in cream_test installation and documentation.

Tha manual procedure is the standard procedure to grant ssh key access in linux:

  • From EMI UI where testsuites are installed create an ssh rsa key pair for host validation, here's how:
         my-ui:~# ssh-keygen -t rsa
       

  • Now you need to copy the public key to the CREAM CE to be tested (do NOT copy the private key), obviously use scp to do this
         my-ui:~# scp ~/.ssh/id_rsa.pub my-ce:~
       

  • Connect to the CREAM CE (my-ce):
         my-ui:~# ssh root@my-ce
       

  • Check out .ssh stuff, if .ssh dir doesn't exist you need to create it
         my-ce ~ # ls -la ~/.ssh
         ls: cannot access /root/.ssh: No such file or directory
         my-ce ~ # mkdir .ssh
         my-ce ~ # chmod 700 .ssh
       

  • Now copy your ssh public key into authorized keys file and delete it when finished:
         my-ce ~ # cat ~/id_rsa.pub >> .ssh/authorized_keys
         my-ce ~ # chmod 600 .ssh/authorized_keys
         my-ce ~ # rm id_rsa.pub
       

  • Test if the setup is correct. You must be able to copy or to connect to the CREAM CE from the EMI UI without supplying passwd:

Note:

Sometimes additional configurations are requested on remote ssh daemon, this may vary from basic security configuration. If final test failed you probably have PublicAuthentication or RSA disabled. In this case you need to change them (it doesn't affect or lower your current security). Tipically this change is done by editing /etc/ssh/sshd_config file or better (for security) the user-specific ~/.ssh/config. To get the correct configuration, see that the following attributes are set (not commented or set to "no") in your sshd_config or ~/.ssh/config file RSAAuthentication yes PubkeyAuthentication yes

If you change sshd_config file with these values you need to restart ssh daemon (/etc/init.d/sshd restart)

 

Configure cream functionality testsuite

Added:
>
>
Edit and customize
/opt/cream_test/lib/vars.py
 

Configure cream_blah_testsuites

Changed:
<
<
  • Create (as root user) the cream_blah testsuites configuration file:
>
>
  • Create the cream_blah testsuites configuration file:
 
     cp /opt/cream_blah_testsuites/lib/conf/cream_testsuite_conf.ini.template /opt/cream_blah_testsuites/lib/conf/cream_testsuite_conf.ini
   
Line: 109 to 163
  pybot /opt/cream_blah_testsuites/testsuites/cream_regression/tests/bug_*.html
Changed:
<
<

>
>

Versions compatibility

  • cream_blah_testsuite-0.1-0 is tested with cream_test-1.8.el5-1 and python 2.6
  -- SaraBertocco - 2012-10-12
 
This site is powered by the TWiki collaboration platformCopyright © 2008-2020 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback