Skip to content

Conversation

mattbrictson
Copy link
Member

I noticed that functional tests (rake test:functional) are failing on master. This PR fixes them with the following commits:

  1. Strict host key checking causes functional tests to fail if the vagrant SSH server is not yet in the developer's known_hosts file. To avoid this problem, explicitly disable host key checking for functional tests.
  2. PR fix and unify shell escaping for user/group/directory #453 changed how commands were escaped but did not update the functional tests to match. Two functional tests were failing as a result. This commit fixes those tests.

I also made a change to .travis.yml as an optimization. Normally Travis CI runs builds twice on PRs, once for the push to the branch, and another for the PR itself. This is redundant and causes PRs checks to take longer that necessary. Fix this by restricting "push" builds to the master branch only.

No CHANGELOG entry since these are not user-facing changes.

PR #453 changed how commands were escaped but did not update the
functional tests to match. Two functional tests were failing as a
result. This commit fixes those tests.
Strict host key checking causes functional tests to fail if the vagrant
SSH server is not yet in the developer's known_hosts file. To avoid this
problem, explicitly disable host key checking for functional tests.
Normally Travis CI runs builds twice on PRs, once for the push to the
branch, and another for the PR itself. This is redundant and causes PRs
checks to take longer that necessary. Fix this by restricting "push"
builds to the master branch only.
end
a_host.ssh_options = verify_host_opt
keepalive_opt = { keepalive: true }
test_host = a_host.dup
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added .dup here because the modifications to a_host were polluting other tests.

@mattbrictson mattbrictson merged commit 758dffb into master Jul 1, 2019
@mattbrictson mattbrictson deleted the fix-functional-tests branch July 1, 2019 03:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants