summaryrefslogtreecommitdiffstats
path: root/utils/test/cli_installer_tests.py
Commit message (Collapse)AuthorAgeFilesLines
* quick installer: disable broken test_get_hosts_to_run_on6 testVadim Rutkovsky2018-02-071-13/+12
|
* Quick installer: run prerequistes first and update path to main playbookVadim Rutkovsky2018-02-071-24/+72
|
* Fix flake8 errors in utils/testVadim Rutkovsky2018-01-041-133/+152
|
* Remove old commented-out testsRodolfo Carvalho2017-03-061-91/+0
|
* Fix testRodolfo Carvalho2017-03-061-7/+1
| | | | | | | Instead of checking if a string is True, check if 'found' is True, the string is the error message. Also, we can remove the loop and use the simpler Python 'in' construct.
* Lint utils/testRodolfo Carvalho2017-03-061-2/+1
| | | | | | | | | - Do not use `print` in unit tests, send messages through the test framework instead. - Remove unused import. - Add spaces around equal sign in assigment. - Turn method into a function. - Reorganize imports according to PEP8.
* python3 support, add tox for better local testing against multiple python ↵Jason DeTiberus2016-12-201-10/+11
| | | | versions
* a-o-i: Separate install and scaleup workflowsSamuel Munilla2016-10-201-30/+29
| | | | | | | In order to simplify the quick installer logic, this moves the scaleup workflow into its own subcommand. Fixes: Bug 1339621
* 'fix' unittests by removing the users ability to specify an ansible configTim Bielawa2016-09-291-76/+90
|
* a-o-i: Remove Legacy Config UpgradeSamuel Munilla2016-08-191-0/+5
| | | | | Remove the automatic upgrade of the 3.0 configuration file format and add some better error messaging that points the user at the docs.
* Bug 1358951 - Error loading config, no such key: 'deployment' when using ↵Samuel Munilla2016-08-191-0/+1
| | | | | | | previously valid answers file Update the quick installer to automatically convert from the old config file format to the new format.
* Merge pull request #2303 from tpoitras/typos-cli_installer.pyScott Dodson2016-08-171-1/+1
|\ | | | | Edits to fix to typos, grammar, and product branding in cli_installer
| * Fixes to typos, grammar, and product branding in cli_installerTimothy Poitras2016-08-171-1/+1
| |
* | a-o-i: Fix nosetests after removing 3.2 from installerSamuel Munilla2016-08-161-3/+3
|/ | | | | Update the tests to match 3.3 being the only version. Add support for non-latest if it's specified in the config file.
* a-o-i: Update nosetests for ansible_ssh_userSamuel Munilla2016-08-091-6/+6
| | | | | Update the nosetests to reflect the new location of ansible_ssh_user in the config file.
* a-o-i: Remove AEP, OSE 3.0, and OSE 3.2 choicesSamuel Munilla2016-07-301-23/+3
| | | | | | Remove the option to select unsupported versions in the quick installer. Fixes BZ#1358101
* a-o-i: Better inventory group handlingSamuel Munilla2016-07-291-5/+5
| | | | | | | | | | A more dynamic and flexible method of writing out host groups to the ansible inventory file. To accompany this, in the quick-installer interactive mode the etcd role is automatically applied to any masters. Anyone hand writing the quick installer config will now have to explicitly specify which hosts will be etcd. Fixes #2200
* Arbitrary Installer yamlSamuel Munilla2016-07-181-195/+258
| | | | Initial build of new, more flexible installer config file format.
* a-o-i: Don't assume storage on 1st masterSamuel Munilla2016-04-181-9/+29
| | | | | | | Always prompt the user for a storage host. The prompt defaults to the first master and warns the user not to use a container-based installation for this. WIP
* Merge pull request #1654 from dgoodwin/gen-inventoryBrenton Leanhardt2016-04-051-37/+111
|\ | | | | Add --gen-inventory command to atomic-openshift-installer.
| * Write inventory to same directory as quick install config.Devan Goodwin2016-03-241-9/+9
| | | | | | | | | | | | With the addition of a --gen-inventory flag and always displaying the location of the inventory written to disk, we should write the hosts file to a more prominent location rather than a hidden directory.
| * Add --gen-inventory command to atomic-openshift-installer.Devan Goodwin2016-03-241-29/+103
| | | | | | | | | | | | | | | | This will just generate the Ansible inventory once all information is gathered, inform the user where to find it, and exit. Includes some test utility updates to make what broke as a result of this change less fragile.
* | a-o-i: Add 3.2 to list of supported versionsSamuel Munilla2016-03-231-2/+3
|/
* a-o-i: Fix NFS storage testsSamuel Munilla2016-03-091-11/+46
| | | | Fix the nosetests after the rebase
* aoi: Ask for osm_default_subdomain in interactive modeSamuel Munilla2016-02-021-0/+2
| | | | Add a question to ask the user for a default subdomain.
* Add is_containerized inputs to nosetests.Andrew Butcher2016-01-121-21/+21
|
* quick installer testsSamuel Munilla2015-12-161-0/+19
| | | | Add test for not displaying HA hints for 3.0 installs
* Bug 1287977 - Incorrect check output from atomic-openshift-installer when ↵Brenton Leanhardt2015-12-081-0/+57
| | | | working with preconfigured load balancer
* Merge branch 'master' into loadbalanced-2Devan Goodwin2015-12-011-1/+1
|\
| * Fixing 'unscheduleable' typoBrenton Leanhardt2015-11-301-7/+7
| |
* | Error out if no load balancer specified.Devan Goodwin2015-11-301-9/+2
| |
* | Adjust requirement for 3 masters for HA deployments.Devan Goodwin2015-11-301-11/+69
| | | | | | | | | | | | | | | | | | If only 2 masters are specified, consider this a configuration error if running an unattended install, and prevent it completely if running an attended install. (continues to prompt for hosts until you have at least 3) Because this condition cannot be entered in the interactive install, we can't really write a test for this negative case.
* | Assert etcd section written for HA installs.Devan Goodwin2015-11-271-0/+3
| |
* | Breakout a test fixture to reduce module size.Devan Goodwin2015-11-261-222/+18
| |
* | Pylint touchups.Devan Goodwin2015-11-261-2/+2
| |
* | Trim assertions in HA testing.Devan Goodwin2015-11-261-28/+0
| | | | | | | | | | | | We're asserting the same things in loading facts over and over, which is not what these tests are really intended to catch. This behavior is tested elsewhere.
* | Test unattended HA quick install.Devan Goodwin2015-11-261-0/+109
| | | | | | | | | | Checking behavior when there is no LB specified, and when the user attempts to re-use a master or node as their LB.
* | Block re-use of master/node as load balancer in attended install.Devan Goodwin2015-11-261-6/+32
| | | | | | | | | | | | | | | | | | | | | | | | Code was present to catch this in unattended installs but was looking for a host record with both master/node and master_lb set to true, but in the attended installs we were adding a separate host record with the same connect_to. Attended tests can now optionally specify multiple "attempted" strings for the master_lb specification, we'll try to input each if multiple are specified. Cleanup some empty defaults and error messages as well.
* | Explicitly set schedulable when masters == nodes.Devan Goodwin2015-11-251-20/+12
|/ | | | | | When the masters are the only nodes in play, we need to explicitly set schedulable to True due to logic in openshift_facts.py which assumes that if the node is also a master, schedulable should be false.
* Silencing pylint branch errors for now for the atomic-openshift-installer ↵Brenton Leanhardt2015-11-241-1/+1
| | | | harness
* Properly setting scheduleability for HA Master scenariosBrenton Leanhardt2015-11-241-3/+98
| | | | If the only Nodes we have are also on Masters we set the scheduleable.
* Fixing tests for quick_haBrenton Leanhardt2015-11-241-11/+27
| | | | | | Also: * minor rewording of the text that informs the admin about scheduleable masters.
* atomic-openshift-installer: Rename ha_proxySamuel Munilla2015-11-231-1/+1
| | | | | Rename ha_proxy variables and methods to 'master_lb' to better future-proof things.
* atomic-openshift-installer: Reverse version and host collectionSamuel Munilla2015-11-231-3/+3
| | | | | | Reverse the order we ask two questions: What variant the user wants to install and which hosts to install on. This lets us avoid asking for multiple masters for 3.0 installs.
* cli_installer_tests: Add test for unattended quick HASamuel Munilla2015-11-231-0/+101
|
* Add interactive testSamuel Munilla2015-11-231-0/+27
|
* atomic-openshift-installer: HA for quick installerSamuel Munilla2015-11-231-0/+1
| | | | This adds the ability to quickly set up a multi-master environment.
* Check the end result on bad config fileSamuel Munilla2015-11-201-3/+3
|
* Add some tests for a bad configSamuel Munilla2015-11-201-0/+38
|
* Fix tests on systems with openshift-ansible rpms installed.Devan Goodwin2015-11-161-3/+9
|