Add pkg.installed tests
Merge pull request #7981 from terminalmage/tests

Add pkg.installed tests
Fix jenkins failures

Mostly whitespace fixes, mixing of tabs and spaces, but also there was a
function call not closed off with a trailing parenthesis.

See http://jenkins.saltstack.com/job/salt-lint/636/violations/ for more
info.
Merge pull request #7982 from terminalmage/jenkins

Fix jenkins failures
Change packages for pkg.installed tests on Debian-based systems

Travis-CI uses Debian/Ubuntu VMs and bzr is on their base image, so this
causes these tests to fail on Travis. This replaces bzr for tests on
Debian-based OSes.
Document how to handle long SSH keys being used as YAML keys

The YAML specification limits simple keys to being 1024 characters
in length. Since SSH keys are often longer than that, and since
the documentation provides examples using the SSH key as a YAML
key, demonstrate the proper way of specifying an YAML 'explicit'
key.
Merge pull request #7985 from kula/yaml-long-keys

Document how to handle long SSH keys being used as YAML keys
Updated the 0.17.0 docs to link over to halite, and clear up that it is not included with salt-master. Created a new halite tutorial that talks about how to set up halite, this is still incomplete for the amount of info I would like in it.
Fix(fileclient): friendly renegotiate authentication

In case of authentication error, try to renegotiate the crypticle
handshake to mitigate master restart

This fixes #7987
Merge pull request #7988 from makinacorpus/issue-7987

Pr for #7987
whitespace fix per pylint
Merge pull request #7969 from cachedout/#6538

Make an effort to return a warning message if we get arguments passed to...
Add tests for pkg.installed with version specification
add tests for installing 32-bit packages
adjust pkg targets for pkg tests
Fix generic exception:

Use "except Exception" instead of simply "except". Fixes pylint
violation (see below link for details).

http://jenkins.saltstack.com/job/salt-lint/644/violations/file/salt/utils/parsers.py/
Don't perform version spec pkg tests on FreeBSD

pkg_add does not support this, so this test will fail when
pkg.latest_version is run and an assertion is done to determine the
targeted version.
adjust redhat pkg targets for pkg tests
Add function to wait for pkgdb lock to clear

Arch pkg tests that call pkg.latest_version seem to fail on running
this function due to the package database still being locked from
previous tests. This adds a function that waits (in 5 second increments)
for up to 60 seconds for the pkgdb to be unlocked.

http://jenkins.saltstack.com/job/salt-rs-arch/474/artifact/salt-runtests.log/*view*/
Move _wait_for_pkgdb_unlock inside of PkgTest class