summaryrefslogtreecommitdiff
path: root/spec/functional/knife/ssh_spec.rb
Commit message (Collapse)AuthorAgeFilesLines
* Ensure that there are no pesky // in our pathstm/fix_sol10_harderThom May2017-03-091-2/+2
| | | | | | This is a continuation of #5873, using a blunter instrument. Signed-off-by: Thom May <thom@chef.io>
* fix spec for solaris 10Lamont Granquist2017-03-071-3/+3
| | | | | | | | this only affects tests running as root on old solaris because ENV['HOME'] for root is "/" there and that causes a "/.ssh" vs "//.ssh" error if we don't File.expand_path in both the code and the spec. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Fix spec testing for ssh_gateway_identity optionGrant Ridder2017-02-211-2/+2
| | | | Signed-off-by: Grant Ridder <shortdudey123@gmail.com>
* Fix chefstyleGrant Ridder2017-02-211-5/+4
| | | | Signed-off-by: Grant Ridder <shortdudey123@gmail.com>
* CHEF-4538 - add an option for gateway_identity_file that will allow ↵brettcave2017-02-211-0/+29
| | | | | | | | | | key-based authentication on the gateway. CHEF-4538 - rename option to be consistent with knife-ec2 option. CHEF-4538 - added parameter to config. Added config merge from parameter for ssh. Added ssh test for gateway identity. CHEF-4538 - bootstrap parameter for gateway identity
* Ensure ssh search paginates correctlytm/fix_ssh_searchThom May2017-01-231-5/+5
| | | | | | Also use partial search for much small on-the-wire sizes Signed-off-by: Thom May <thom@chef.io>
* Fix TinyServer races.jk/tinyserver-raceJohn Keiser2016-08-221-2/+2
| | | | | | | | | | | | | | | 1. Wait for the start callback rather than the do block, as it happens later. This prevents us from getting into many conditions where the start returns before the server is fully initialized, where if stop() is called too soon after start returns, it would cause exceptions. 2. Wait for the thread to finish completely 3. Use Thread.current.abort_on_exception` to show the actual listen errors, so that problems like this can be diagnosed. 4. Use :each to start and stop TinyServer so that race conditions like this are exposed earlier and more often (this will let us rid ourselves of them more quickly). 5. Use WEBrick::HTTPServer directly, which gets rid of the need for the complicated trap workaround (rack is the one that traps).
* fix Style/BlockDelimiters, Style/MultilineBlockLayout and 0.42.0 engine upgradeLamont Granquist2016-08-171-2/+2
| | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* autofixing whitespace copsLamont Granquist2016-02-051-1/+1
| | | | | | | | | | | | | | | | | | | | | | 4174 Style/SpaceInsideHashLiteralBraces 1860 Style/SpaceAroundOperators 1336 Style/SpaceInsideBlockBraces 1292 Style/AlignHash 997 Style/SpaceAfterComma 860 Style/SpaceAroundEqualsInParameterDefault 310 Style/EmptyLines 294 Style/IndentationConsistency 267 Style/TrailingWhitespace 238 Style/ExtraSpacing 212 Style/SpaceBeforeBlockBraces 166 Style/MultilineOperationIndentation 144 Style/TrailingBlankLines 120 Style/EmptyLineBetweenDefs 101 Style/IndentationWidth 82 Style/SpaceAroundBlockParameters 40 Style/EmptyLinesAroundMethodBody 29 Style/EmptyLinesAroundAccessModifier 1 Style/RescueEnsureAlignment
* Update all auth email address from opscode.com and getchef.com to chef.io.Noah Kantrowitz2016-02-021-1/+1
| | | Generated via git ls-files | xargs perl -pi -e "s/(Author.*?<[^@]+@)(?:opscode\\.com|getchef\\.com)(>)/\\1chef.io\\2/gi"
* Replace all Opscode copyrights with Chef Software.Noah Kantrowitz2016-02-021-1/+1
| | | Created via git ls-files | xargs perl -pi -e "s/(Copyright.*?), Opscode(,)? Inc(\.)?/\\1, Chef Software Inc./gi"
* Copyright year update for 2016 and massive cleanup.Noah Kantrowitz2016-02-021-1/+1
| | | Generated via git ls-files | xargs perl -pi -e "s/[Cc]opyright (?:\([Cc]\) )?((?\!$(date +%Y))\\d{4})(-\\d{4})?([, ][ \d]+)*(,|(?= ))/Copyright \\1-$(date +%Y),/g"
* Use double quotes by defaultThom May2016-01-141-19/+19
| | | | | | | This is an entirely mechanically generated (chefstyle -a) change, to go along with chef/chefstyle#5 . We should pick something and use it consistently, and my opinion is that double quotes are the appropriate thing.
* Fix testsJeff Blaine2015-11-231-5/+5
|
* Lots of tests leak the log level so just fix it here.Noah Kantrowitz2015-09-011-0/+11
|
* Stub Net::SSH.configuration_for.Noah Kantrowitz2015-09-011-0/+5
|
* Fix ssh attribute precedence orderIgor Shpakov2015-05-071-2/+2
| | | | | | | | | | | | | | | | | | | | Pick ssh attribute in following order: 1. command line 2. config file 3. cloud attribute 4. fqdn Prioritise manual ssh attribute over defaults Change history: - knife:ssh; fixing tests - updated based on @btm comments - Removed configure_attributes and replaced it with get_ssh_attribute - get_ssh_attribute on it's own returns only the name of the attribute to use. this makes testing easy. the order of precedence is defined in the comments - updated functional tests - changed :attribute_from_cli to :attribute - @btm correctly noted that attribute_from_cli was a temporary variable and is no longer used - updated tests to use the new format
* Build configurable search string.mcquin/bugfix/search-filteringClaire McQuin2014-12-191-1/+1
|
* Update for new rows default in search.Claire McQuin2014-12-191-1/+1
|
* Update to RSpec 3.Claire McQuin2014-10-291-22/+22
|
* s/stub!/stub/gLamont Granquist2014-01-291-1/+1
| | | | fix deprecation warnings
* Fix tests that rely on leaky Chef::ConfigJohn Keiser2013-09-161-2/+2
|
* Reset configuration before each testJohn Keiser2013-09-161-2/+0
|
* Use Chef::Config.reset in tests instead of save/load configJohn Keiser2013-09-131-4/+2
|
* Merge branch '10-stable' into integrate-chef-10-18-0danielsdeleo2013-01-171-0/+58
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: .gitattributes chef-expander/Rakefile chef-expander/lib/chef/expander/version.rb chef-server-api/Rakefile chef-server-api/chef-server-api.gemspec chef-server-api/lib/chef-server-api/version.rb chef-server-webui/Rakefile chef-server-webui/chef-server-webui.gemspec chef-server-webui/lib/chef-server-webui/version.rb chef-server/Rakefile chef-server/lib/chef-server/version.rb chef-solr/lib/chef/solr/version.rb chef.gemspec chef/Rakefile chef/spec/support/platform_helpers.rb chef/spec/support/shared/functional/file_resource.rb chef/spec/unit/api_client_spec.rb chef/spec/unit/provider/directory_spec.rb ci/jenkins_run_tests.bat ci/jenkins_run_tests.sh distro/common/html/chef-client.8.html distro/common/html/chef-expander.8.html distro/common/html/chef-expanderctl.8.html distro/common/html/chef-server-webui.8.html distro/common/html/chef-server.8.html distro/common/html/chef-shell.1.html distro/common/html/chef-solo.8.html distro/common/html/chef-solr.8.html distro/common/html/knife-bootstrap.1.html distro/common/html/knife-client.1.html distro/common/html/knife-configure.1.html distro/common/html/knife-cookbook-site.1.html distro/common/html/knife-cookbook.1.html distro/common/html/knife-data-bag.1.html distro/common/html/knife-environment.1.html distro/common/html/knife-exec.1.html distro/common/html/knife-index.1.html distro/common/html/knife-node.1.html distro/common/html/knife-role.1.html distro/common/html/knife-search.1.html distro/common/html/knife-ssh.1.html distro/common/html/knife-status.1.html distro/common/html/knife-tag.1.html distro/common/html/knife.1.html distro/common/man/man1/chef-shell.1 distro/common/man/man1/knife-bootstrap.1 distro/common/man/man1/knife-client.1 distro/common/man/man1/knife-configure.1 distro/common/man/man1/knife-cookbook-site.1 distro/common/man/man1/knife-cookbook.1 distro/common/man/man1/knife-data-bag.1 distro/common/man/man1/knife-environment.1 distro/common/man/man1/knife-exec.1 distro/common/man/man1/knife-index.1 distro/common/man/man1/knife-node.1 distro/common/man/man1/knife-role.1 distro/common/man/man1/knife-search.1 distro/common/man/man1/knife-ssh.1 distro/common/man/man1/knife-status.1 distro/common/man/man1/knife-tag.1 distro/common/man/man1/knife.1 distro/common/man/man8/chef-client.8 distro/common/man/man8/chef-expander.8 distro/common/man/man8/chef-expanderctl.8 distro/common/man/man8/chef-server-webui.8 distro/common/man/man8/chef-server.8 distro/common/man/man8/chef-solo.8 distro/common/man/man8/chef-solr.8 lib/chef/api_client.rb lib/chef/rest.rb lib/chef/version.rb spec/functional/knife/ssh_spec.rb spec/functional/resource/cookbook_file_spec.rb spec/spec_helper.rb spec/stress/win32/security_spec.rb spec/support/shared/functional/securable_resource.rb spec/unit/config_spec.rb spec/unit/knife/ssh_spec.rb
* fix knife functional testsdanielsdeleo2013-01-161-1/+5
|
* CHEF-2627: Exit with non-zero exit code when ssh command failsMatthew Horan & Ryan Ong2012-12-141-1/+1
|
* replace thin w/ webrick for func. test serverdanielsdeleo2012-11-191-1/+0
|
* [OC-3564] move core Chef to the repo root \o/ \m/Seth Chisamore2012-10-301-0/+211
The opscode/chef repository now only contains the core Chef library code used by chef-client, knife and chef-solo!