<commit_before># How to run the spacewalk-testsuite with sumaform.

## WIP: for moment, the working version of sumaform+cucumber is there:

 - https://github.com/MalloZup/sumaform
 
Once the PR will merged upstream  https://github.com/moio/sumaform), you can use the upstream.

the libvirt-testing example, is in my repo
 (The file is for moment here, this not compatible already with the newest version of sumaform, due to refractoring
https://github.com/MalloZup/sumaform


#### Run it

1) Get sumaform ( https://github.com/moio/sumaform)



2) Use the libvirt-testing.-example and run it with terraform. 


3) Once you have all the machines, and terraform setup is finish ( 1 client, 1 minion(sle), 1 suma-server3.0, 1controlnode)
   
   log into control-node : ``` ssh root@control-node.tf.local```
   
 
4) before executing the rake comand(also running the cucumber-suite) export the ip-adress of machines.

   If you use the libvirt-testing.example, take this script then :
   https://github.com/SUSE/spacewalk-testsuite-base/blob/slenkins/run.sh
   
   ```console
   cd root/spacewalk-testsuite-base
   bash run.sh
   ```
   run.sh is equivalent too:
   ```
   export MINION=minion12sp1.tf.local
   export TESTHOST=suma3pg.tf.local
   export CLIENT=clisles12sp1.tf.local
   export BROWSER=phantomjs
   rake
   ```
   
 #### Analyze log:
 
 the log you get, are in output.html<commit_msg>add remarks deployment vs testing<commit_after># How to run the spacewalk-testsuite with sumaform.

## WIP: for moment, the only working version of sumaform + testing(cucumber) is there:

 - https://github.com/MalloZup/sumaform
 
Once the PR will merged upstream  https://github.com/moio/sumaform), you can use the upstream.

the libvirt-testing example, is in my repo https://github.com/MalloZup/sumaform/blob/master/main.tf.libvirt-testing.example

 (The file is for moment here, this not compatible already with the newest version of sumaform, due to refractoring.


#### Run it

1) Get sumaform ( https://github.com/moio/sumaform)



2) Use the libvirt-testing.-example and run it with terraform. 


3) Once you have all the machines, and terraform setup is finish ( 1 client, 1 minion(sle), 1 suma-server3.0, 1controlnode)
   
   log into control-node : ``` ssh root@control-node.tf.local```
   
 
4) before executing the rake comand(also running the cucumber-suite) export the ip-adress of machines.

   If you use the libvirt-testing.example, take this script then :
   https://github.com/SUSE/spacewalk-testsuite-base/blob/slenkins/run.sh
   
   ```console
   cd root/spacewalk-testsuite-base
   bash run.sh
   ```
   run.sh is equivalent too:
   ```
   export MINION=minion12sp1.tf.local
   export TESTHOST=suma3pg.tf.local
   export CLIENT=clisles12sp1.tf.local
   export BROWSER=phantomjs
   rake
   ```
   
 #### Analyze log:
 
 the log you get, are in output.html
 
 
 #### Consideration about sumaform and cucumber testing.
 
 Sumaform is a great tool for deploying suse-manager server.
 
 We have to differenciate between deploy and testing environments :
 
 - if you want to deploy, 4 client against a server, and this client should be registered to the client, then you want to make something else, that's fine.
 
 - in the testing environments, we don't register clients/minion against a server( this is done by the testsuite cucumber as part of a test)
 - addionaly , testing machines, has some extra packages that we use in the cucumber suite.
 
 
 So if you want to do deployment, and check/reproduce something, than use the deployment file.
 
 If you want to improve the tests-suite, or have the machines after a regression founded, then you the testing.tf
 
 
 
 
 
{'fraction_non_alphanumeric': 0.08609451385116784, 'fraction_numerical': 0.009505703422053232, 'mean_word_length': 3.5525339925834363, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 10, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1268899', 'n_tokens_mistral': 1202, 'n_tokens_neox': 1116, 'n_words': 424}