|
11 | 11 |
|
12 | 12 | describe '#list' do
|
13 | 13 | 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"). |
15 | 15 | 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"). |
17 | 17 | 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"). |
19 | 19 | to_return(:status => 200, :body => "", :headers => {})
|
20 | 20 | body = '{
|
21 | 21 | "aws_platforms": [
|
|
26 | 26 | "redhat-8-arm64"
|
27 | 27 | ]
|
28 | 28 | }'
|
29 |
| - stub_request(:get, "http://foo/status/platforms/aws"). |
| 29 | + stub_request(:get, "http://foo/api/v2/status/platforms/aws"). |
30 | 30 | to_return(:status => 200, :body => body, :headers => {})
|
31 | 31 |
|
32 | 32 |
|
|
35 | 35 | expect(results).to include("amazon-6-x86_64", "amazon-7-x86_64", "amazon-7-arm64", "centos-7-x86-64-west", "redhat-8-arm64")
|
36 | 36 | end
|
37 | 37 | 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"). |
39 | 39 | 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"). |
41 | 41 | 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"). |
43 | 43 | to_return(:status => 200, :body => "", :headers => {})
|
44 | 44 | body = '{
|
45 | 45 | "aws_platforms": "[\"amazon-6-x86_64\",\"amazon-7-x86_64\",\"amazon-7-arm64\",\"centos-7-x86-64-west\",\"redhat-8-arm64\"]"
|
46 | 46 | }'
|
47 |
| - stub_request(:get, "http://foo/status/platforms/aws"). |
| 47 | + stub_request(:get, "http://foo/api/v2/status/platforms/aws"). |
48 | 48 | to_return(:status => 200, :body => body, :headers => {})
|
49 | 49 |
|
50 | 50 | results = ABS.list(false, "http://foo")
|
|
125 | 125 | end
|
126 | 126 |
|
127 | 127 | 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') |
129 | 129 | .to_return(:status => 200, :body => @active_requests_response, :headers => {})
|
130 | 130 |
|
131 | 131 | ret = ABS.get_active_requests(false, @abs_url, @test_user)
|
|
156 | 156 | end
|
157 | 157 |
|
158 | 158 | 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') |
160 | 160 | .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') |
162 | 162 | .with(:body => @return_request)
|
163 | 163 | .to_return(:status => 200, :body => 'OK', :headers => {})
|
164 | 164 |
|
|
0 commit comments