Skip to content

Instantly share code, notes, and snippets.

@opalmer
Created September 4, 2017 20:52
Show Gist options
  • Save opalmer/4d381e03d2f13ae8f47c7395b7105f3a to your computer and use it in GitHub Desktop.
Save opalmer/4d381e03d2f13ae8f47c7395b7105f3a to your computer and use it in GitHub Desktop.
$ go test -gerrittest.loglevel=debug .
DEBU[0000] action=validate cmp=ssh phase=write-ssh-key
DEBU[0000] action=encode cmp=ssh phase=write-ssh-key
DEBU[0000] cmp=core phase=setup task=ssh-key
DEBU[0000] action=read cmp=core path=/tmp/858226472 phase=setup task=ssh-key
DEBU[0000] action=read-file cmp=ssh path=/tmp/858226472 phase=read-ssh-key
DEBU[0000] action=parse-key cmp=ssh path=/tmp/858226472 phase=read-ssh-key
DEBU[0000] cmp=core phase=setup task=start-container
DEBU[0000] cmp=container image="opalmer/gerrittest:2.14.3"
DEBU[0000] cmp=container phase=service task=begin
DEBU[0000] cmp=container phase=service status=ping task=begin
DEBU[0000] cmp=container phase=wait-port task=begin url="http://127.0.0.1:38607/"
DEBU[0000] addr="127.0.0.1:32806" cmp=container phase=port-wait task=begin
DEBU[0007] cmp=container elapsed=6.664522846s phase=service status=ping task=end
DEBU[0007] cmp=container elapsed=7.034603677s phase=service task=end
DEBU[0007] action=login cmp=core phase=setup task=http-client
DEBU[0007] action=request body= method=GET url="http://localhost:38607/login/"
DEBU[0007] action=response duration=224.058295ms method=GET status=200 status-expected=200 url="http://localhost:38607/login/"
DEBU[0007] action=insert-key cmp=core phase=setup task=http-client
DEBU[0007] action=request body="ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDm7S3Gg6MVD9G7W6PxCk5SlrFVQLer3DYrlw6kK3EBNVC8DUfB0kaOrW5yteWV2Yor+XqtLDK9NihuR1e05mAFqHLXxteKW3m5MxMJvauUCFi/kElVnILgMAnM59wGurLibHGY3m3t0BcGj2ZANtA0mPZRV1ncLRdsBxDj+3N8R2PD7gyVekJY7GS/G1hcHLNStXC+JolfQ1dWJz324t3k6cWrAPCvF4tmC9IvfPdM2aw1KoBQtQPChdhlaHydQWVarpFe8wJnhKOAFNhlMS9FsnKZGSAsXluHdF0LFiVMAxXvKlCohiezMgEAgBx1//wKiJgVZf6qpqt8R1kxjp0L" method=POST url="http://localhost:38607/a/accounts/self/sshkeys"
DEBU[0007] action=response duration=275.902698ms method=POST status=201 status-expected=201 url="http://localhost:38607/a/accounts/self/sshkeys"
DEBU[0007] action=generate-password cmp=core phase=setup task=http-client
DEBU[0007] action=request body="{\"generate\":true}" method=PUT url="http://localhost:38607/a/accounts/self/password.http"
DEBU[0007] action=response duration=35.224665ms method=PUT status=200 status-expected=200 url="http://localhost:38607/a/accounts/self/password.http"
DEBU[0007] cmp=core phase=setup task=ssh-client
DEBU[0007] action=read-file cmp=ssh path=/tmp/858226472 phase=read-ssh-key
DEBU[0007] action=parse-key cmp=ssh path=/tmp/858226472 phase=read-ssh-key
DEBU[0008] cmd="gerrit version" cmp=SSHPort path=/tmp/858226472 svc=gerrittest
DEBU[0008] cmp=SSHPort path=/tmp/858226472 svc=gerrittest version=2.14.3
DEBU[0008] cmp=core phase=setup task=repo
DEBU[0008] cmd="git status --porcelain" code=128 phase=git repo=/tmp/gerrittest-499938970 stderr="fatal: Not a git repository (or any parent up to mount point /)\nStopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).\n" stdout=
DEBU[0008] cmd="git init --quiet" code=0 phase=git repo=/tmp/gerrittest-499938970 stderr= stdout=
DEBU[0008] cmd="git config --local user.name admin" code=0 phase=git repo=/tmp/gerrittest-499938970 stderr= stdout=
DEBU[0008] cmd="git config --local user.email admin@localhost" code=0 phase=git repo=/tmp/gerrittest-499938970 stderr= stdout=
DEBU[0008] cmd="git config --local core.sshCommand ssh -i /tmp/858226472 -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no" code=0 phase=git repo=/tmp/gerrittest-499938970 stderr= stdout=
DEBU[0008] cmd="git status --porcelain" code=0 phase=git repo=/tmp/gerrittest-499938970 stderr= stdout=
DEBU[0008] cmd="git config --local user.name admin" code=0 phase=git repo=/tmp/gerrittest-499938970 stderr= stdout=
DEBU[0008] cmd="git config --local user.email admin@localhost" code=0 phase=git repo=/tmp/gerrittest-499938970 stderr= stdout=
DEBU[0008] cmd="git config --local core.sshCommand ssh -i /tmp/858226472 -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no" code=0 phase=git repo=/tmp/gerrittest-499938970 stderr= stdout=
DEBU[0008] action=read-file cmp=ssh path=/tmp/858226472 phase=read-ssh-key
DEBU[0008] action=parse-key cmp=ssh path=/tmp/858226472 phase=read-ssh-key
DEBU[0008] cmd="gerrit version" cmp=SSHPort path=/tmp/858226472 svc=gerrittest
DEBU[0008] cmp=SSHPort path=/tmp/858226472 svc=gerrittest version=2.14.3
----------------------------------------------------------------------
FAIL: integration_test.go:16: IntegrationTest.Test_StartStop
integration_test.go:51:
c.Assert(err, IsNil)
... value *url.Error = &url.Error{Op:"Get", URL:"http://admin:ZOSOKjgV/kgEkN0bzPJp+oGeJLqpXykqWFJpon/Ckg@localhost:38607/accounts/self", Err:(*errors.errorString)(0xc42028c810)} ("Get http://admin:ZOSOKjgV/kgEkN0bzPJp+oGeJLqpXykqWFJpon/Ckg@localhost:38607/accounts/self: invalid URL port \"ZOSOKjgV\"")
OOPS: 11 passed, 1 FAILED
--- FAIL: Test (8.28s)
FAIL
exit status 1
FAIL github.com/opalmer/gerrittest/cmd/subcommands 8.285s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment