Skip to content

Commit 4aa78a1

Browse files
author
Samuel Beaulieu
committed
fix tests
1 parent ced6b46 commit 4aa78a1

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

spec/vmfloaty/abs_spec.rb

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@
1111

1212
describe '#list' do
1313
it 'skips empty platforms and lists aws' do
14-
stub_request(:get, "http://foo/status/platforms/vmpooler").
14+
stub_request(:get, "http://foo/api/v2/status/platforms/vmpooler").
1515
to_return(:status => 200, :body => "", :headers => {})
16-
stub_request(:get, "http://foo/status/platforms/ondemand_vmpooler").
16+
stub_request(:get, "http://foo/api/v2/status/platforms/ondemand_vmpooler").
1717
to_return(:status => 200, :body => "", :headers => {})
18-
stub_request(:get, "http://foo/status/platforms/nspooler").
18+
stub_request(:get, "http://foo/api/v2/status/platforms/nspooler").
1919
to_return(:status => 200, :body => "", :headers => {})
2020
body = '{
2121
"aws_platforms": [
@@ -26,7 +26,7 @@
2626
"redhat-8-arm64"
2727
]
2828
}'
29-
stub_request(:get, "http://foo/status/platforms/aws").
29+
stub_request(:get, "http://foo/api/v2/status/platforms/aws").
3030
to_return(:status => 200, :body => body, :headers => {})
3131

3232

@@ -35,16 +35,16 @@
3535
expect(results).to include("amazon-6-x86_64", "amazon-7-x86_64", "amazon-7-arm64", "centos-7-x86-64-west", "redhat-8-arm64")
3636
end
3737
it 'legacy JSON string, prior to PR 306' do
38-
stub_request(:get, "http://foo/status/platforms/vmpooler").
38+
stub_request(:get, "http://foo/api/v2/status/platforms/vmpooler").
3939
to_return(:status => 200, :body => "", :headers => {})
40-
stub_request(:get, "http://foo/status/platforms/ondemand_vmpooler").
40+
stub_request(:get, "http://foo/api/v2/status/platforms/ondemand_vmpooler").
4141
to_return(:status => 200, :body => "", :headers => {})
42-
stub_request(:get, "http://foo/status/platforms/nspooler").
42+
stub_request(:get, "http://foo/api/v2/status/platforms/nspooler").
4343
to_return(:status => 200, :body => "", :headers => {})
4444
body = '{
4545
"aws_platforms": "[\"amazon-6-x86_64\",\"amazon-7-x86_64\",\"amazon-7-arm64\",\"centos-7-x86-64-west\",\"redhat-8-arm64\"]"
4646
}'
47-
stub_request(:get, "http://foo/status/platforms/aws").
47+
stub_request(:get, "http://foo/api/v2/status/platforms/aws").
4848
to_return(:status => 200, :body => body, :headers => {})
4949

5050
results = ABS.list(false, "http://foo")
@@ -125,7 +125,7 @@
125125
end
126126

127127
it 'will skip a line with a null value returned from abs' do
128-
stub_request(:get, 'https://abs.example.com/status/queue')
128+
stub_request(:get, 'https://abs.example.com/api/v2/status/queue')
129129
.to_return(:status => 200, :body => @active_requests_response, :headers => {})
130130

131131
ret = ABS.get_active_requests(false, @abs_url, @test_user)
@@ -156,9 +156,9 @@
156156
end
157157

158158
it 'will delete the whole job' do
159-
stub_request(:get, 'https://abs.example.com/status/queue')
159+
stub_request(:get, 'https://abs.example.com/api/v2/status/queue')
160160
.to_return(:status => 200, :body => @active_requests_response, :headers => {})
161-
stub_request(:post, 'https://abs.example.com/return')
161+
stub_request(:post, 'https://abs.example.com/api/v2/return')
162162
.with(:body => @return_request)
163163
.to_return(:status => 200, :body => 'OK', :headers => {})
164164

0 commit comments

Comments
 (0)