Modify API license #332
Annotations
4 errors
spec/helpers/unit/provider/elasticsearch_rest_shared_examples.rb#L40
Puppet::Type::Elasticsearch_license::ProviderXpack xpack/licenses returns xpack/licenses
Failure/Error: http.request req
WebMock::NetConnectNotAllowedError:
Real HTTP connections are disabled. Unregistered request: GET http://localhost:9200/_license with headers {'Accept'=>'application/json', 'Accept-Encoding'=>'gzip;q=1.0,deflate;q=0.6,identity;q=0.3', 'User-Agent'=>'Ruby'}
You can stub this request with the following snippet:
stub_request(:get, "http://localhost:9200/_license").
with(
headers: {
'Accept'=>'application/json',
'Accept-Encoding'=>'gzip;q=1.0,deflate;q=0.6,identity;q=0.3',
'User-Agent'=>'Ruby'
}).
to_return(status: 200, body: "", headers: {})
registered request stubs:
stub_request(:get, "http://localhost:9200/_xpack/license").
with(
headers: {
'Accept'=>'application/json'
})
============================================================
Shared Example Group: "REST API" called from ./spec/unit/provider/elasticsearch_license/xpack_spec.rb:62
|
spec/helpers/unit/provider/elasticsearch_rest_shared_examples.rb#L55
Puppet::Type::Elasticsearch_license::ProviderXpack basic authentication authenticates
Failure/Error: http.request req
WebMock::NetConnectNotAllowedError:
Real HTTP connections are disabled. Unregistered request: GET http://localhost:9200/_license with headers {'Accept'=>'application/json', 'Accept-Encoding'=>'gzip;q=1.0,deflate;q=0.6,identity;q=0.3', 'Authorization'=>'Basic ZWxhc3RpYzpwYXNzd29yZA==', 'User-Agent'=>'Ruby'}
You can stub this request with the following snippet:
stub_request(:get, "http://localhost:9200/_license").
with(
headers: {
'Accept'=>'application/json',
'Accept-Encoding'=>'gzip;q=1.0,deflate;q=0.6,identity;q=0.3',
'Authorization'=>'Basic ZWxhc3RpYzpwYXNzd29yZA==',
'User-Agent'=>'Ruby'
}).
to_return(status: 200, body: "", headers: {})
registered request stubs:
stub_request(:get, "http://localhost:9200/_xpack/license").
with(
headers: {
'Accept'=>'application/json',
'Authorization'=>'Basic ZWxhc3RpYzpwYXNzd29yZA=='
})
============================================================
Shared Example Group: "REST API" called from ./spec/unit/provider/elasticsearch_license/xpack_spec.rb:62
|
spec/helpers/unit/provider/elasticsearch_rest_shared_examples.rb#L77
Puppet::Type::Elasticsearch_license::ProviderXpack https uses ssl
Failure/Error: http.request req
WebMock::NetConnectNotAllowedError:
Real HTTP connections are disabled. Unregistered request: GET https://localhost:9200/_license with headers {'Accept'=>'application/json', 'Accept-Encoding'=>'gzip;q=1.0,deflate;q=0.6,identity;q=0.3', 'User-Agent'=>'Ruby'}
You can stub this request with the following snippet:
stub_request(:get, "https://localhost:9200/_license").
with(
headers: {
'Accept'=>'application/json',
'Accept-Encoding'=>'gzip;q=1.0,deflate;q=0.6,identity;q=0.3',
'User-Agent'=>'Ruby'
}).
to_return(status: 200, body: "", headers: {})
registered request stubs:
stub_request(:get, "https://localhost:9200/_xpack/license").
with(
headers: {
'Accept'=>'application/json'
})
============================================================
Shared Example Group: "REST API" called from ./spec/unit/provider/elasticsearch_license/xpack_spec.rb:62
|
|
This job failed
Loading