saltstack-formulas / openssh-formula

http://docs.saltstack.com/en/latest/topics/development/conventions/formulas.html
Other
90 stars 297 forks source link

test(packages_spec): prevent control for `bsd` family #174

Closed myii closed 4 years ago

myii commented 4 years ago

PR progress checklist (to be filled in by reviewers)


What type of PR is this?

Primary type

Secondary type

Does this PR introduce a BREAKING CHANGE?

No.

Related issues and/or pull requests

Describe the changes you're proposing

https://www.freebsd.org/doc/handbook/openssh.html

OpenSSH is maintained by the OpenBSD project and is installed by default in FreeBSD.

Also includes:

Pillar / config required to test the proposed changes

As-is.

Debug log showing how the proposed changes work

As shown in Travis as well as:

$ KITCHEN_LOCAL_YAML=kitchen.vagrant.yml bin/kitchen verify default-freebsd-120-2019-2-py3
-----> Starting Test Kitchen (v2.3.4)
-----> Verifying <default-freebsd-120-2019-2-py3>...
       Detected alternative framework tests for `serverspec`
       Loaded default 

Profile: openssh formula (default)
Version: (not specified)
Target:  ssh://vagrant@127.0.0.1:2222

  ✔  openssh service: should be running and enabled
     ✔  Service sshd is expected to be enabled
     ✔  Service sshd is expected to be running
  ↺  openssh package: should be installed
     ↺  Skipped control due to only_if condition.
  ✔  openssh configuration: should match desired lines
     ✔  File /etc/ssh/sshd_config is expected to be file
     ✔  File /etc/ssh/sshd_config is expected to be owned by "root"
     ✔  File /etc/ssh/sshd_config is expected to be grouped into "wheel"
     ✔  File /etc/ssh/sshd_config mode is expected to cmp == "0644"
     ✔  File /etc/ssh/sshd_config content is expected to include "ChallengeResponseAuthentication no"
     ✔  File /etc/ssh/sshd_config content is expected to include "X11Forwarding yes"
     ✔  File /etc/ssh/sshd_config content is expected to include "PrintMotd no"
     ✔  File /etc/ssh/sshd_config content is expected to include "AcceptEnv LANG LC_*"
     ✔  File /etc/ssh/sshd_config content is expected to include "Subsystem sftp /usr/lib/openssh/sftp-server"
     ✔  File /etc/ssh/sshd_config content is expected to include "UsePAM yes"
     ✔  File /etc/ssh/ssh_config is expected to be file
     ✔  File /etc/ssh/ssh_config is expected to be owned by "root"
     ✔  File /etc/ssh/ssh_config is expected to be grouped into "wheel"
     ✔  File /etc/ssh/ssh_config mode is expected to cmp == "0644"
     ✔  File /etc/ssh/ssh_config content is expected to include "Host *"
     ✔  File /etc/ssh/ssh_config content is expected to include "    GSSAPIAuthentication yes"
     ✔  File /etc/ssh/ssh_config content is expected to include "    HashKnownHosts yes"
     ✔  File /etc/ssh/ssh_config content is expected to include "    SendEnv LANG LC_*"

Documentation checklist

Testing checklist

Additional context

saltstack-formulas-travis commented 4 years ago

:tada: This PR is included in version 0.43.1 :tada:

The release is available on GitHub release

Your semantic-release bot :package::rocket: