1 // Copyright (C) The Arvados Authors. All rights reserved.
3 // SPDX-License-Identifier: AGPL-3.0
12 check "gopkg.in/check.v1"
15 func haveDocker() bool {
16 _, err := exec.Command("docker", "info").CombinedOutput()
20 func (s *LDAPSuite) TestLoginLDAPViaPAM(c *check.C) {
22 c.Skip("skipping docker test in short mode")
25 c.Skip("skipping docker test because docker is not available")
27 cmd := exec.Command("bash", "login_ldap_docker_test.sh")
28 cmd.Stdout = os.Stderr
29 cmd.Stderr = os.Stderr
30 cmd.Env = append(os.Environ(), "config_method=pam")
32 c.Check(err, check.IsNil)
35 func (s *LDAPSuite) TestLoginLDAPBuiltin(c *check.C) {
37 c.Skip("skipping docker test in short mode")
40 c.Skip("skipping docker test because docker is not available")
42 cmd := exec.Command("bash", "login_ldap_docker_test.sh")
43 cmd.Stdout = os.Stderr
44 cmd.Stderr = os.Stderr
45 cmd.Env = append(os.Environ(), "config_method=ldap")
47 c.Check(err, check.IsNil)