mirror of
https://github.com/kubernetes-sigs/prometheus-adapter.git
synced 2026-04-07 02:07:58 +00:00
Add vendor folder to git
This commit is contained in:
parent
66cf5eaafb
commit
183585f56f
6916 changed files with 2629581 additions and 1 deletions
43
vendor/github.com/grpc-ecosystem/grpc-gateway/examples/browser/echo_service.spec.js
generated
vendored
Normal file
43
vendor/github.com/grpc-ecosystem/grpc-gateway/examples/browser/echo_service.spec.js
generated
vendored
Normal file
|
|
@ -0,0 +1,43 @@
|
|||
'use strict';
|
||||
|
||||
var SwaggerClient = require('swagger-client');
|
||||
|
||||
describe('EchoService', function() {
|
||||
var client;
|
||||
|
||||
beforeEach(function(done) {
|
||||
new SwaggerClient({
|
||||
url: "http://localhost:8080/swagger/echo_service.swagger.json",
|
||||
usePromise: true,
|
||||
}).then(function(c) {
|
||||
client = c;
|
||||
done();
|
||||
});
|
||||
});
|
||||
|
||||
describe('Echo', function() {
|
||||
it('should echo the request back', function(done) {
|
||||
client.EchoService.Echo(
|
||||
{id: "foo"},
|
||||
{responseContentType: "application/json"}
|
||||
).then(function(resp) {
|
||||
expect(resp.obj).toEqual({id: "foo"});
|
||||
}).catch(function(err) {
|
||||
done.fail(err);
|
||||
}).then(done);
|
||||
});
|
||||
});
|
||||
|
||||
describe('EchoBody', function() {
|
||||
it('should echo the request back', function(done) {
|
||||
client.EchoService.EchoBody(
|
||||
{body: {id: "foo"}},
|
||||
{responseContentType: "application/json"}
|
||||
).then(function(resp) {
|
||||
expect(resp.obj).toEqual({id: "foo"});
|
||||
}).catch(function(err) {
|
||||
done.fail(err);
|
||||
}).then(done);
|
||||
});
|
||||
});
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue