File: puppet_module_test.sh

package info (click to toggle)
autodep8 0.30
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 276 kB
  • sloc: sh: 1,139; makefile: 31
file content (23 lines) | stat: -rw-r--r-- 741 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
. $(dirname $0)/helper.sh

test_puppet_module_detection() {
  has debian/control 'Source: puppet-module-puppetlabs-mysql'
  has debian/tests/module_test.pp
  check_run autodep8
}

test_puppet_module_missing_test_manifest() {
  has debian/control 'Source: puppet-module-puppetlabs-mysql'
  run autodep8
  assertEquals 1 "$exitstatus"
}

test_puppet_module_test_command_environment() {
  has debian/control 'Source: puppet-module-puppetlabs-mysql'
  has debian/tests/module_test.pp
  has debian/tests/autopkgtest-pkg-puppet_module.conf 'foo=bar'
  check_run autodep8
  assertTrue "test passes autodep8 config environment to runner script\n$(grep Test-Command: stdout)\n" "grep -q 'Test-Command: pkg_puppet_module_foo=bar' stdout"
}

. shunit2