Skip to content
This repository was archived by the owner on Nov 8, 2022. It is now read-only.

Commit 788426a

Browse files
committed
Updated Scaling spec in NS manager
1 parent 46f12d6 commit 788426a

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

ns-manager/spec/scaling_spec.rb

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@ def app
6060
expect(response.status).to eq 200
6161
end
6262

63-
it 'response body should be empty' do
64-
expect(response.body).to be_empty
63+
it 'response body should be a string' do
64+
expect(response.body).to be_a String
6565
end
6666
end
6767
end
@@ -86,8 +86,8 @@ def app
8686
expect(response.status).to eq 200
8787
end
8888

89-
it 'response body should be empty' do
90-
expect(response.body).to be_empty
89+
it 'response body should be a string' do
90+
expect(response.body).to be_a String
9191
end
9292
end
9393

@@ -98,8 +98,8 @@ def app
9898
expect(response.status).to eq 200
9999
end
100100

101-
it 'response body should be empty' do
102-
expect(response.body).to be_empty
101+
it 'response body should be a string' do
102+
expect(response.body).to be_a String
103103
end
104104
end
105105
end

ns-manager/spec/spec_helper.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
#scaling stub
6262
stub_request(:get, 'http://localhost:4012/ns-instances/5825ce99c098a434c100000c').to_return(status: 200, body: File.read(File.join('spec', 'fixtures', 'ns_instance.json')))
6363
stub_request(:post, 'http://localhost:4012/ns-instances/scaling/5825ce99c098a434c100000c/scale_out').to_return(status: 200, body: "")
64-
stub_request(:post, 'http://localhost:4012/ns-instances/scaling/5825ce99c098a434c100000c/scale_in').to_return(status: 200, body: "")
64+
stub_request(:post, 'http://localhost:4012/ns-instances/scaling/5825ce99c098a434c100000c/scale_in').to_return(status: 200, body: "Scaling done.")
6565

6666
#monitoring
6767
stub_request(:get, 'http://localhost:4014/ns-monitoring/id/monitoring-data/?instance_type=ns').to_return(status: 200, body: File.read(File.join('spec', 'fixtures', 'ns_catalogue.json')))

0 commit comments

Comments
 (0)