Skip to content
This repository has been archived by the owner on Jan 5, 2019. It is now read-only.

How to run integration tests? #88

Open
philippthun opened this issue Aug 4, 2016 · 3 comments
Open

How to run integration tests? #88

philippthun opened this issue Aug 4, 2016 · 3 comments

Comments

@philippthun
Copy link

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
Copy link
Contributor

cc @tylerschultz

@tylerschultz
Copy link
Contributor

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

@tylerschultz
Copy link
Contributor

tylerschultz commented Aug 6, 2016

$go version go1.6.2 darwin/amd64

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants