Skip to content
This repository was archived by the owner on Feb 18, 2020. It is now read-only.

Commit 18e3c75

Browse files
committed
fix verify registered agents
Use API, agents are rendered by SPA now
1 parent 0a191fa commit 18e3c75

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

test/integration/default/serverspec/go_autoregister_spec.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
describe command('curl -L localhost:8153/go') do
88
its(:stdout) { should contain('/go/home') }
99
end
10-
describe command('curl -L http://localhost:8153/go/agents') do
10+
describe command('curl -H \'Accept: application/vnd.go.cd.v4+json\' localhost:8153/go/api/agents') do
1111
its(:stdout) { should contain('/var/lib/go-agent') }
1212
its(:stdout) { should contain('Idle') }
1313
end

test/integration/golangagent/serverspec/go_autoregister_spec.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
describe command('curl -L localhost:8153/go') do
88
its(:stdout) { should contain('/go/home') }
99
end
10-
describe command('curl -L http://localhost:8153/go/agents') do
10+
describe command('curl -H \'Accept: application/vnd.go.cd.v4+json\' localhost:8153/go/api/agents') do
1111
its(:stdout) { should contain('/var/lib/go-agent') }
1212
its(:stdout) { should contain('Idle') }
1313
end

0 commit comments

Comments
 (0)