cloudfoundry-attic / bosh-init

bosh-init is a tool used to create and update the Director VM
Apache License 2.0
31 stars 33 forks source link

How to run integration tests? #88

Open philippthun opened 8 years ago

philippthun commented 8 years ago

I've setup my workstation as described here and could successfully run unit and acceptance tests (on virtualbox). But when I try to run the integration tests, I get the following error:

Expected error:
    <errors.ComplexError>: {
        Err: {s: "Deploying"},
        Cause: {
            Err: {
                s: "Creating instance 'fake-deployment-job-name/0'",
            },
            Cause: {
                Err: {
                    s: "Waiting until instance is ready",
                },
                Cause: {
                    Err: {
                        s: "Starting SSH tunnel",
                    },
                    Cause: {
                        Err: {
                            s: "Listening on remote server",
                        },
                        Cause: {
                            s: "ssh: tcpip-forward request denied by peer",
                        },
                    },
                },
            },
        },
    }
    Deploying: Creating instance 'fake-deployment-job-name/0': Waiting until instance is ready: Starting SSH tunnel: Listening on remote server: ssh: tcpip-forward request denied by peer
not to have occurred

Is it required to run bin/mockgen? When doing so, I get the following error:

mockgen -package mocks -destination /Users/myuser/go/src/github.com/cloudfoundry/bosh-init/agentclient/mocks/mocks.go github.com/cloudfoundry/bosh-agent/agentclient AgentClient
prog.go:13:2: cannot find package "github.com/cloudfoundry/bosh-agent/agentclient" in any of:
    /usr/local/Cellar/go/1.6.2/libexec/src/github.com/cloudfoundry/bosh-agent/agentclient (from $GOROOT)
    /Users/myuser/go/src/github.com/cloudfoundry/bosh-agent/agentclient (from $GOPATH)
cppforlife commented 8 years ago

cc @tylerschultz

tylerschultz commented 8 years ago

Hi @philippthun, I'm seeing the same problem on my personal workstation too. @cppforlife Let's file & prioritize a bug.

tylerschultz commented 8 years ago

$go version go1.6.2 darwin/amd64