Add the missing type for Health Monitor

According to the octavia api:
https://developer.openstack.org/api-ref/load-balancer/v2/#health-monitor
there miss the 'HTTPS' and 'TLS-HELLO' types.
Also add the missing HTTP methods.

Change-Id: Ied278c3e178a2fe0a8ecc49aa6693505db06158f
This commit is contained in:
Qian Min Chen 2018-02-11 17:44:41 +08:00 committed by Nir Magnezi
parent 9d5c05900e
commit e9eb5bbbf8
2 changed files with 6 additions and 4 deletions

View File

@ -90,8 +90,9 @@
poolProtocols: ['HTTP', 'HTTPS', 'PROXY', 'TCP'],
methods: ['LEAST_CONNECTIONS', 'ROUND_ROBIN', 'SOURCE_IP'],
types: ['SOURCE_IP', 'HTTP_COOKIE', 'APP_COOKIE'],
monitorTypes: ['HTTP', 'PING', 'TCP'],
monitorMethods: ['GET', 'HEAD'],
monitorTypes: ['HTTP', 'HTTPS', 'PING', 'TCP', 'TLS-HELLO'],
monitorMethods: ['GET', 'HEAD', 'POST', 'PUT', 'DELETE',
'TRACE', 'OPTIONS', 'PATCH', 'CONNECT'],
certificates: [],
listenerPorts: [],

View File

@ -415,11 +415,12 @@
});
it('has array of monitor types', function() {
expect(model.monitorTypes).toEqual(['HTTP', 'PING', 'TCP']);
expect(model.monitorTypes).toEqual(['HTTP', 'HTTPS', 'PING', 'TCP', 'TLS-HELLO']);
});
it('has array of monitor http_methods', function() {
expect(model.monitorMethods).toEqual(['GET', 'HEAD']);
expect(model.monitorMethods).toEqual(['GET', 'HEAD', 'POST', 'PUT', 'DELETE',
'TRACE', 'OPTIONS', 'PATCH', 'CONNECT']);
});
it('has an "initialize" function', function() {