Commit Graph

52 Commits

Author SHA1 Message Date
Andreas Jaeger 08db3ad05f Retire repository
Fuel (from openstack namespace) and fuel-ccp (in x namespace)
repositories are unused and ready to retire.

This change removes all content from the repository and adds the usual
README file to point out that the repository is retired following the
process from
https://docs.openstack.org/infra/manual/drivers.html#retiring-a-project

See also
http://lists.openstack.org/pipermail/openstack-discuss/2019-December/011647.html

Depends-On: https://review.opendev.org/699362
Change-Id: I37b6a82c9c3c3893bb4b9b6a4c4b5a83a6d8193c
2019-12-18 09:50:01 +01:00
ibumarskov de4f27cf53 Fix for cli_selected_nodes_deploy_huge
Change-Id: I729a3de5b8aa2fabe5b0b2a189cf28cb34aee07d
Closes-bug: #1674660
(cherry picked from commit 69b3bd0c03)
2017-03-23 11:41:32 +00:00
ibumarskov 54580c0ff9 Fix amount of provisioned nodes after deletion of mongo node
Change-Id: I1dfcd09326e67dfa1129044ba3d06c18505e9f4e
Partial-bug: #1669700
2017-03-15 15:49:07 +00:00
ibumarskov 93d7ddf21a Disable ceilometer in cli_selected_nodes_deploy_huge test
Change-Id: I11ca533da4425dde18f41ce98a254ad0a07e34b1
Partial-bug: #1669700
(cherry picked from commit b13f300137)
2017-03-09 08:22:22 +00:00
Dmitry Belyaninov e1eedd410a Allow public network assignment for all nodes
By default settings public network can be
assignment only to nodes with controller role.
So tests should be updated to enable 'assign_to_all_nodes'
paramater for clusters.
For more info see:
https://review.openstack.org/#/c/292356/

Change-Id: Ib3d8b48076a0597a08cd273d5be361ce4cbd902d
Closes-Bug: 1632010
2017-01-11 10:36:51 +00:00
Alexey Stepanov b8f2b1025a Use deployment task ID for transactions download
Change-Id: I590709fd7c84bab54f1c2962d2fe16c39cc4895c
Related-bug: #1626530
2016-09-22 16:00:55 +00:00
Alexey Stepanov d7e5521b34 Wait for deployment start before read network settings
Wait for deployment start before read network settings:
Fuel 9.1 is async and result task start command is just task,
which is not immediately started.
Wait for task status: running
TODO: implementation of custom network settings check

Related-bug: #1618872

Change-Id: I8a30e0afc97164dd1f61ae7607c8d440cc62b33f
2016-09-20 16:30:55 +00:00
Alexey Stepanov 7b813a7552 Network configuration check: remove for autoconfig scenario
Network configuration check: remove for autoconfig scenario
Network settings, which was not set manually, are generated.
Closes-bug: #1618872

Change-Id: I23ef1db965cf419cb66e28a2f311f9ba6d8d0276
2016-09-19 05:45:20 +00:00
Alexey Stepanov d8be8cc6a1 Do not check network configuration, when change is expected
Do not check network configuration, when change is expected
Network configuration check is valid only for scenarios with custom
network configuration
Dedicated test should be added
Related-bug: #1618872

Change-Id: I41bd0924972c1520cb5016c1eeefddb27d4c61b3
2016-09-15 04:30:59 +00:00
Alexey Stepanov f8d4f2c5c3 run_on_remote, execute_remote_cmd and run_on_remote_get_results elimination
use SSHClient().check_call instead

Change-Id: I39f505c860d54558734bfe1efa173cefe54cf097
(cherry picked from commit aeb268c)
2016-08-12 13:45:40 +03:00
Anton Studenov ed18a79a06 Add timeout_msg values in fuelweb_test/tests
- removed redundant try/except/assert

Change-Id: Ic83e5e3333f7f8ad14f2e4ba7779b174b2585802
2016-07-21 15:53:34 +03:00
Mikhail Samoylov f840f5914e Change node order for test_cli_huge
At now we deploy controller before ceph but we
must to deploy controller node with ceph node because:
* The "ceph_ready_check" task (post-deployment) fails on controller because it *requires* deployed OSDs to pass.
* OSDs, on the other hand, require deployed controller (since we install ceph monitor there).

Hence, both controller and ceph-osd nodes must be send for deployment at once.

New scenario:
            1. Revert snapshot "ready_with_9_slaves"
            2. Create a cluster
            3. Set replication factor 2
            4. Set ceph usage for images, cinder for volumes
            5. Get cluster settings before deploy
            6. Provision a controller node using Fuel CLI
            7. Provision one compute node using Fuel CLI
            8. Provision one cinder node using Fuel CLI
            9. Provision one mongo node using Fuel CLI
            10. Provision two ceph-osd nodes using Fuel CLI
            11. Provision one base-os node using Fuel CLI
            12. Leave 2 nodes in discover state
            13. Deploy the ceph-osd and controller nodes using Fuel CLI
            14. Compare network settings after deployment task
            15. Deploy the compute node using Fuel CLI
            16. Compare network settings after compute deployment task
            17. Deploy the cinder node using Fuel CLI
            18. Compare network settings after cinder deployment task
            19. Deploy the mongo node using Fuel CLI
            20. Compare network settings after mongo deployment task
            21. Deploy the base-os node using Fuel CLI
            22. Compare network settings after base-os deployment task
            23. Check that nodes in discover state stay in it
            24. Get deployment-info
            25. Get cluster settings after deployment task
            26. Compare cluster settings after deploy and before deploy
            27. Run OSTF

Closes bug: 1590680

Change-Id: Ibf401863985d1d568fde418e76d145795d2c46c9
2016-06-09 11:49:21 +03:00
Vladimir Khlyunev 5c32794079 Sort node ids in cli acceptance tests
For improving predicability we should sort nodes ids
Closes-bug:1578664

Change-Id: Ibf3a197c307fd849dac477f6983d3cbfe4c5ceb4
2016-05-25 08:51:32 +00:00
Mikhail Samoylov 26fbac6142 Verify that the information stored in the database via the fuel_cli
This test for check that task save information about
the deployment in the database was done correctly via CLI.

Closes bug: 1573641
Change-Id: I81fe82a32bbb948da79dc8e9e30c8a5ddcb0c004
2016-05-05 12:45:04 +03:00
Jenkins e33158d35c Merge "Check tasks status after cluster deployment" 2016-04-28 14:31:42 +00:00
Jenkins a3279ef7e9 Merge "Decrement should_fail tests for nova services" 2016-04-27 10:04:44 +00:00
Alexey Stepanov 2c66fa7720 Check tasks status after cluster deployment
1. add FuelWebClient.assert_all_tasks_completed, which could check status
    for specified cluster or wide
2. add NailgunClient.get_all_tasks_list for retrieving all tasks info from database
3. Call tasks status check after deployment success before short OSTF (
    self.assert_ha_services_ready(cluster_id)
    self.assert_os_services_ready(cluster_id)
    )
4. add TestCliBase.assert_all_tasks_completed
5. call TestCliBase.assert_all_tasks_completed after deployment

Change-Id: I428fc17434d40951c6eb6cefe88dd007d1eb0761
Closes-bug: #1564943
2016-04-26 14:24:38 +03:00
Matthew Mosesohn 73d421b70f Decrement should_fail tests for nova services
Now OSTF only considers nova services for online
(according to Nailgun) computes that are part of
the active cluster. It will skip deleted nodes,
and therefore there should be less failures.

Change-Id: Ie94eccf2608db1d3d800e017a9c91541461f81ee
Related-Bug: #1570847
2016-04-25 10:27:58 +03:00
asledzinskiy 3aba5286b2 Add method to update node interfaces
- Add method to update node interfaces through cli
- Update cli tests with new method

Change-Id: Icd79684f7a2b48972135bed6e25261dc8e977255
Closes-Bug: #1564462
2016-04-21 16:25:05 +03:00
Tatyana Leontovich 3a833f6f28 Add deployment test with separate task usage
Test covers next scenario:
* Revert snapshot "ready_with_9_slaves"
* Create a cluster
* Set replication factor 2
* Set ceph usage for images, cinder for volumes
* Provision a controller node using Fuel CLI
* Provision one compute node using Fuel CLI
* Provision one cinder node using Fuel CLI
* Provision one mongo node using Fuel CLI
* Provision two ceph-osd nodes using Fuel CLI
* Provision one base-os node using Fuel CLI
* Add role compute to 2 nodes and leave 2 nodes in discover state
* Deploy the controller node using Fuel CLI
* Deploy the compute node using Fuel CLI
* Deploy the cinder node using Fuel CLI
* Deploy the mongo node using Fuel CLI
* Deploy the ceph-osd nodes using Fuel CLI
* Deploy the base-os node using Fuel CLI
* Check that nodes in discover state stay with flag pending_additional = true
* Run OSTF

Closes-Bug: #1566432
Change-Id: I8da521bb7e4751dba6787bc352ca95ace80d035e
2016-04-13 13:37:55 +03:00
Andrey Lavrentyev fcdb73a51b Update docstring test descriptions
Change docstring test steps in test_admin_node.py in check_rpm_packages_signed()
Change docstring test steps in test_admin_node.py
  in check_remote_packages_and_mos_repositories_signed()
Change docstring test steps in test_cli.py in cli_selected_nodes_deploy()
Change docstring test steps in test_ssl.py in master_node_with_https_only()
Change docstring test steps and show_step() numbers in test_ssl.py
  in endpoints_with_disabled_ssl()
Change docstring test steps and show_step() numbers in test_cli_deploy.py
  in cli_deploy_neutron_tun()
Change docstring test steps and show_step() numbers in test_cli_deploy.py
  in cli_deploy_tasks()
Change docstring test steps and show_step() numbers in test_cli_deploy_ceph.py
  in cli_deploy_ceph_neutron_tun()
Change docstring test steps and show_step() numbers in test_cli_deploy_ceph.py
  in cli_deploy_ceph_neutron_vlan()
Change docstring test steps and show_step() numbers in test_cli_role.py
  in cli_update_role()
Change docstring test steps and show_step() numbers in test_cli_role.py
  in cli_create_role()
Change docstring test steps and show_step() numbers in test_cli_role.py
  in cli_create_role_with_has_primary()
Change docstring test steps and show_step() numbers in test_cli_role.py
  in cli_delete_role()
Change docstring test steps and show_step() numbers in test_cli_role.py
  in cli_incorrect_update_role()
Change docstring test steps in test_ha_tun_group_1.py in tun_controller_base_os()
Change docstring test steps in test_ha_tun_group_1.py
  in tun_ceph_for_images_and_objects()
Change docstring test steps in test_ha_tun_group_2.py in tun_ha_ceph_base_os()
Change docstring test steps in test_ha_tun_group_2.py in tun_ceph_all()
Change docstring test steps in test_ha_tun_group_3.py
  in tun_no_volumes_ceph_for_images_and_ephemeral()
Change docstring test steps in test_ha_tun_group_3.py
  in tun_5_ctrl_ceph_ephemeral()
Change docstring test steps in test_ha_vlan_group_1.py
  in cinder_ceph_for_images()
Change docstring test steps in test_ha_vlan_group_1.py
  in ceph_for_volumes_swift()
Change docstring test steps in test_ha_vlan_group_2.py
  in cinder_ceph_for_ephemeral()
Change docstring test steps in test_ha_vlan_group_2.py
  in cinder_ceph_for_images_ephemeral()
Change docstring test steps in test_ha_vlan_group_3.py
  in no_storage_for_volumes_swift()
Change docstring test steps and show_step() in test_ha_vlan_group_3.py
  in ceph_volumes_ephemeral()
Change docstring test steps in test_ha_vlan_group_4.py
  in four_controllers()
Change docstring test steps and show_step() in test_ha_vlan_group_4.py
  in ceph_rados_gw_no_storage_volumes()
Change docstring test steps and show_step() in test_ha_vlan_group_5.py
  in ceph_for_volumes_images_ephemeral_rados()
Change docstring test steps and show_step() in test_ha_vlan_group_5.py
  in cinder_ceph_for_images_ephemeral_rados()
Change docstring test steps and show_step() in test_ha_vlan_group_6.py
  in ceph_for_images_ephemeral_rados()
Change docstring test steps and show_step() in test_ha_vlan_group_6.py
  in ceph_for_volumes_images_ephemeral()
Change docstring test steps in test_ha_vlan_group_7.py
  in ceph_for_images()
Change docstring test steps in test_ha_vlan_group_7.py
  in ha_vlan_operating_system()
Change docstring test description in test_use_mirror.py
  in deploy_with_custom_mirror()
Change docstring test steps in test_mongo_multirole.py
  in ha_ceilometer_untag_network()
Change docstring test steps and show_step() in test_multirole_group_1.py
  in controller_ceph_and_compute_cinder()
Change docstring test steps and show_step() in test_multirole_group_1.py
  in controller_ceph_cinder_compute_ceph_cinder()
Change docstring test steps and show_step() in test_mixed_os_components.py
  in mixed_components_murano_sahara_ceilometer()
Change docstring test description in test_scale_group_1.py
  in add_controllers_stop()
Change docstring test description in test_scale_group_1.py
  in add_ceph_stop()
Change docstring test description in test_scale_group_2.py
  in replace_primary_controller()
Change docstring test description in test_scale_group_2.py
  in remove_controllers()
Change docstring test steps and show_step() in test_scale_group_3.py
  in add_delete_compute()
Change docstring test steps and show_step() in test_scale_group_3.py
  in add_delete_cinder()
Change docstring test steps in test_scale_group_4.py
  in add_delete_ceph()
Change docstring test steps and show_step() in test_scale_group_4.py
  in add_delete_cinder_ceph()
Correct misspelling in test_scale_group_5.py
Correct misspelling in test_scale_group_6.py
Add show_step() in test_deploy_platform_components.py
Change docstring test steps and show_step() in test_deploy_platform_components.py
  in acceptance_deploy_platform_components_ceilometer()
Change docstring test steps in test_separate_db_ceph.py
  in separate_db_ceph_service()
Change docstring test steps in test_separate_keystone_ceph.py
  in separate_keystone_ceph_service()
Change docstring test steps in test_separate_rabbitmq_ceph.py
  in separate_rabbit_ceph_service()
Change docstring test steps in test_failover_group_1.py
  in lock_db_access_from_primary_controller()
Change docstring test steps in test_failover_group_1.py
  in recovery_neutron_agents_after_restart()
Change docstring test steps in test_failover_group_1.py
  in safe_reboot_primary_controller()
Change docstring test steps in test_failover_group_1.py
  in hard_reset_primary_controller()
Change docstring test steps and swap order of ostf tests and network verification
  in test_failover_group_1.py in power_outage_cinder_cluster()
Change docstring test steps in test_failover_group_2.py
  in safe_reboot_primary_controller_ceph()
Change docstring test steps and show_step() in test_failover_group_2.py
  in hard_reboot_primary_controller_ceph()
Change docstring test steps in test_failover_mongo.py
  in kill_mongo_processes()
Change docstring test steps in test_failover_mongo.py
  in close_connections_for_mongo()
Change docstring test steps in test_failover_mongo.py
  in shut_down_mongo_node()

Change-Id: I570478614682d237fd95c67d51597a35b94c610c
Closes-Bug: #1560931
2016-04-05 15:38:15 +03:00
Mikhail Samoylov 7fdd51c1b7 Replace SSHClient entries with SSHManager in test_cli.
Refactoring for test_cli tests "hiera_deploy" and "cli_node_deletion_check"

Change-Id: Iab523073edc88d6c4698ecba8dc4b4ad52d4c5ee
Implements: blueprint sshmanager-integration
2016-03-31 10:41:49 +00:00
Sergey Kulanov e09c2ccad2 [command_line] Ensure operation cluster deleted
To delete operational cluster with fuel-client one must use
--force flag:
     fuel --env ID env delete --force

Change-Id: I76887c24b0f5d8ea8508a59bc726207eb6ba138a
Closes-bug: #1562028
2016-03-25 17:02:11 +02:00
Jenkins 086fa5a5a1 Merge "This test automate SSL checks." 2016-03-24 16:08:53 +00:00
Mikhail Samoylov 3346b9116a This test automate SSL checks.
First test automate following test case: Check MOS services are NOT running ssl on public endpoints when TLS is disabled.
Second test automate following test case: Check cluster creation with SSL is enabled only on Master node.
Also test fixed typo in comment in test_cli.py

Related bug: 1544542

Change-Id: I506c0a3763c208e04011e6f75577812d2a959f04
2016-03-24 11:47:56 +03:00
Alexey Stepanov b661d47b32 Pylint: fix trivial issues 2
Change-Id: Id29cb8831714fd96960f85c29d866084a5565f5c
fix: invalid import order, double import, relative import, no super call, instance defined outside of init, incorrect __all__ variable
Related-bug: #1556791
2016-03-16 10:30:31 +03:00
Mikhail Samoylov 2267cc8837 This test automate SSL check for CNs and keypairs with user-owned certificate,
also it checks that all openstack services work by https and have the same domain name that in CN of user certificate
It is a first part of ssl test, that automate manual tests:
C261932
C375828
C375827
In addition it refactore cli_selected_nodes_deploy test (run_on_remote -> ssh_manager).
Change-Id: Iae4953e47462f3578022e2d7fa3660aab041c994
Closes-bug: #1544542
2016-03-09 13:11:25 +03:00
Vasily Gorin 0af42bd0f8 Refactoring functions in checkers.py(part 1)
Following functions were changed:
  * check_update_network_data_over_cli
  * check_get_network_data_over_cli
  * check_offload
  * check_client_smoke
  * check_hiera_hosts
  * check_log_lines_order
  * check_file_exists
  * check_cobbler_node_exists
  * check_haproxy_backend
  * check_public_ping
  * check_repo_managment
  * check_cinder_status
  * verify_service

Related tests are also modified.
Some typos are fixed.
Implements: blueprint sshmanager-integration

Change-Id: Ifdc2a01d100dbf3b809f6619d9877a8c98db3258
2016-02-27 11:05:49 +00:00
Tatyana Leontovich 333b4c3198 Fix type error in test_cli.py
Methods signatures in tests.cli_base.py were changed.
So we need to update it usage in test_cli.py

Change-Id: If22c32f1bba34fc73a0ea8afe4e59f53b7242657
Related-Bug: #1547195
2016-02-19 10:42:24 +02:00
Mikhail Samoylov 271118a60a Added additional checks for floating ranges.
We need to create additional checks in
test_cli.py for floating ranges.
We need to check that floating ranges has been
successfully added to /etc/astute.yaml file
on controller node after deploying.

Change-Id: I2f340e30f5ff778ee359e7da1556b0d4a7bb63ef
Closes-Bug: 1517370
2016-01-21 16:56:25 +03:00
Vasily Gorin c295b419ed Use SSHManager instead of context manager
- Function update_connection was added in SSHManager.
   You can use it to update existed connecetion with
   new/custom credentials

 - Function execute_on_remote was renamed to 'execut'
 - Function execute_on_remote was added to SSHManager
   with new functionality. It is the same with
   run_on_remote_and_get_result
 - Move function json_deserialize to SSHManager
 - Code refactoring according the changes above

 SSHManager was added in folowing places:
  - fuelweb_test.environment.py for all needed methods
  - patching.py for:
     - connect_admin_to_repo
     - connect_slaves_to_repo
  - decorators.py for update_rpm_packages
  - multiple_networks_hacks.py for all
Related-Bug: #1527847

Change-Id: I20dd5e02bb8833b3543780e0083576516a2893f6
2015-12-23 19:49:39 +03:00
Jenkins c5bc4943b1 Merge "Introduction of new method of SSH connection" 2015-12-21 23:23:21 +00:00
Egor Kotko 64e80ada93 Fix --nst value
Add condition initialize "--nst" value
if NEUTRON_SEGMENT_TYPE is set,
do not use "--nst" param
if NEUTRON_SEGMENT_TYPE is not set

Change-Id: I1b6c1a27f5d4ebcebb980b7423350b08c6037983
Closes-Bug: #1527203
2015-12-17 12:01:45 +01:00
vgorin 3cb2275954 Introduction of new method of SSH connection
- Create Singletone to use it as metaclass in ssh_manager.
  Singleton provides us posibility of having only one instance of class.
- Create SSHManagaer, wich will manage SSH connections by itself.
  Almost SSHClient methods was duplicated in SSHManager.
  Now it used so:
    SSHManager().method(node_ip, *parameters)
  We will not get back SSHClient, we will just say 'Do IT on NODE with this PARAM'
  e.g SSHManager().execute_on_remote('127.0.0.1', 'bash_command')
- Use ssh_manager in cli_cluster_deletion test

Change-Id: I307d7d71e814b67d20cc0b4648cf6a7dac4a7829
Closes-Bug: #1503210
2015-12-15 22:32:09 +03:00
penguinolog 2c7951055b Fix mass mistypes at english verbs
Fix mistypes at commentaries, log outputs and LOCAL variables

Change-Id: I1fb8eb4ae10be5c2f174336d3a8f124e61da5954
Closes-Bug: #1513777
2015-11-19 11:26:18 +03:00
Egor Kotko ae8208eb78 Fix cli parameter
Delete '--net' parameter,
due to existing only single net provider type 
and removing '--net' parameter from the fuel-client

Change-Id: I61d48cfa9d715b0162536f50c372646d89783667
Closes-Bug: #1516051
2015-11-16 17:36:52 +00:00
Mikhail Samoylov 197aa8471d Remove deprecated option "--mode ha" for cli tests.
Change-Id: I2b57da3cd3d23d5a5672019f84ca39ddd75f1efd
Closes-Bug: #1515202
2015-11-11 17:16:28 +03:00
Tatyana Leontovich 4509b95152 Increase timeout for env deletion over cli
In test delete cluster over cli we use
revert mechanism, but do not check if all the nodes
become online after revert. This lead to the situation
when cluster deletion takes a little bit more time.
So In this patch delete timeout was increased.
Also add check for node statuses after revert
and log with error level if some of them is offline.
We don't interrupt tests here according to cluster should be deleted,even all the nodes are offline

Change-Id: I769e5a17875595b632d111d6b5f1a782989e3a37
Closes-Bug: #1508007
2015-10-30 18:44:49 +00:00
Dmitry Tyzhnenko 4e402e32e3 Divide the test and the class with useful methods
Because CommandLine class used in
    create_backup_reset_restore_and_deploy_via_cli it should not have test
    decorator. Proboscis saves test function each time when module are
    imported

Change-Id: I30fd2596f03f10992b0d743c7e375325b45bf90c
Closes-bug: #1507999
2015-10-30 15:17:20 +02:00
Alexander Kurenyshev 7ce54c7d16 Refactor configuring cluster network settings
Change default values for networking accordingly
to the existing networks
Apply defaults for new created cluster instead of
reconfiguring all networks

Change-Id: I3eb3c6bdd9128c4e35741884daf0793714ce3b7c
Closes-Bug: 1476185
Co-Authored-By: Vladimir Khlyunev <vkhlyunev@mirantis.com>
2015-10-29 16:42:49 +03:00
Maksym Strukov 1b432a77a7 Use context manager for ssh sessions
Change-Id: I4dfd0918b1a9664e5c7a775688a059043b591969
Related-Bug: #1346362
2015-09-10 19:24:20 +03:00
Dennis Dmitriev c94779036a Set only one floating range even using multiple networks
Change-Id: Ibba0bc66ac0745768cfc5a37ccc04cdbff57ad81
Closes-Bug:#1492838
Closes-Bug:#1490496
2015-09-07 15:23:11 +03:00
Alexander Kurenyshev 303641841b Add SSL support to the Fuel-QA tests
This patch implements ability to system
tests work with new SSL feature.
Writed new module SSL includes functions
for certificates generating and changing
SSL cluster configuration.
Also add fix to the cli test, because
this test uses different way to deploy
cluster and if so different way to
enable/disable SSL.

Change-Id: I857ed750f6f2bd0edfbe4f3bda3f8fbe5faede99
Closes-Bug: 1482216
Closes-Bug: 1486511
Closes-Bug: 1488097
2015-08-31 16:59:12 +03:00
Maksym Strukov 4aa3a54fd6 Increase deployment timeout in cli_selected_nodes_deploy test
Change-Id: I238da6a33e3e0369d0dd8b80b1fca73ecf7f4a3d
Closes-Bug: #1477143
2015-07-28 09:35:12 +03:00
Dennis Dmitriev 24fa7e99ce Add a new test 'cli_selected_nodes_deploy'
- Add a test that creates a cluster and deploy nodes using
only Fuel CLI.

- for tests cli_cluster_deletion and cli_node_deletion_check
changed dependence on test group from 'prepare_ha_neutron'
to 'cli_selected_nodes_deploy'

- Move 'hiera_deploy' test to a separate class:
'command_line_minimal', because it is used on different CI
(see bug https://bugs.launchpad.net/fuel/+bug/1425464)

Change-Id: Ie3c833ccee8ee1e9cae16e9386ad5369dbbf96e8
Related-Bug:#1448977
2015-07-08 10:15:52 +03:00
Egor Kotko b2aa3d2aba Command line tests
- Offline node deletion, checking its absence
into cobbler system list
- Cluster deletion, checking its absence into db

Change-Id: I47883924bcf3e668a9e501c6bcefdea8b5cc366a
blueprint: remove-node-from-fuel-inventory
2015-05-18 16:57:46 +02:00
Dennis Dmitriev d93e07e4e5 Always create diagnostic snapshot atfer test.
- add a new environment variable:
    ALWAYS_CREATE_DIAGNOSTIC_SNAPSHOT, default = 'true'.

- move code that resume environment into a separate method.

- rename @log_snapshot_on_error to @log_snapshot_after_test

Change-Id: I5902899ba4c8557b7233e9bf576debc2197ca9e2
Closes-Bug:#1452672
2015-05-13 15:43:56 +03:00
Alexandr Kostrikov e317c2d6d2 doc: Added an initial Sphinx documentation
I have added a auto-generated documentation. It is done with
Sphinx library. Sphinx uses reStructuredText as its markup language
and docstrings as a source for automated documentation.

According to https://www.python.org/dev/peps/pep-0257/
I used a """ for quotes in docstrings and made
"""Docstring."""-looking one-liners and correct indentation
for multiple-liners.
Based on https://github.com/kennethreitz/requests
I moved Makefile, requirements.txt and conf.py to /doc folder.
Also I decided to make fuel-qa documentation
similar to https://docs.python.org/2/tutorial/index.html
with single table of contents.
I have added empty __init__.py files to be able to produce
documentation.
I have added sys_test.log to .gitigonre because it has
been generated at the documentation build.

To make it faster and non-conflicting I added some banal
class descriptions in order to get them in auto-generated documentation.
I decided not to fight with warnings and poor docstring descriptions
I added to make documentation less conflicting and for a faster review.
Docstring improvements and detailed code description are left for later.
For the same reasons I decied not to add docstrings to all methods.
At a places where I made poor docstrings I have added a
TODO documentation.

Change-Id: I7701a9a3429abbf62b13ec5a31972298c0be5201
Related-Bug: #1321682
2015-05-07 17:42:38 +03:00
Dennis Dmitriev 4d2d69713c Fix issue with multiple testcase invocation
Move method setup_with_custom_manifests() to SetupEnvironment.

Change-Id: I9b7ccb7e26c0ec54fc52962ee2711263e76b0368
Closes-Bug:#1452311
2015-05-06 18:10:34 +03:00
Tatyana Leontovich 37c6b61992 Change env usage to d_env usage in cli test
Change env usage to d_env usage in cli test

Change-Id: I5ecd09dba573aaf931e0d95275a6813dea1c99c0
Related-Bug: 1425464
2015-04-28 15:36:32 +03:00