Add the missing protocol for listener

According to the octavia api:
https://developer.openstack.org/api-ref/load-balancer/v2/#listeners,
there miss the 'HTTPS' protocol.

Change-Id: I1d4857876a151148348ac79d554db2c4c6616559
This commit is contained in:
Qian Min Chen 2018-02-08 16:08:07 +08:00 committed by Allen
parent eff100522a
commit 25a8013853
2 changed files with 4 additions and 4 deletions

View File

@ -85,7 +85,7 @@
visibleResources: [], visibleResources: [],
subnets: [], subnets: [],
members: [], members: [],
listenerProtocols: ['HTTP', 'TCP', 'TERMINATED_HTTPS'], listenerProtocols: ['HTTP', 'TCP', 'TERMINATED_HTTPS', 'HTTPS'],
methods: ['LEAST_CONNECTIONS', 'ROUND_ROBIN', 'SOURCE_IP'], methods: ['LEAST_CONNECTIONS', 'ROUND_ROBIN', 'SOURCE_IP'],
types: ['SOURCE_IP', 'HTTP_COOKIE', 'APP_COOKIE'], types: ['SOURCE_IP', 'HTTP_COOKIE', 'APP_COOKIE'],
monitorTypes: ['HTTP', 'PING', 'TCP'], monitorTypes: ['HTTP', 'PING', 'TCP'],

View File

@ -344,7 +344,7 @@
}); });
it('has array of listener protocols', function() { it('has array of listener protocols', function() {
expect(model.listenerProtocols).toEqual(['HTTP', 'TCP', 'TERMINATED_HTTPS']); expect(model.listenerProtocols).toEqual(['HTTP', 'TCP', 'TERMINATED_HTTPS', 'HTTPS']);
}); });
it('has array of pool methods', function() { it('has array of pool methods', function() {
@ -590,7 +590,7 @@
}); });
it('should initialize listener protocols', function() { it('should initialize listener protocols', function() {
expect(model.listenerProtocols.length).toBe(3); expect(model.listenerProtocols.length).toBe(4);
expect(model.listenerProtocols.indexOf('TERMINATED_HTTPS')).toBe(2); expect(model.listenerProtocols.indexOf('TERMINATED_HTTPS')).toBe(2);
}); });
}); });
@ -641,7 +641,7 @@
}); });
it('should initialize listener protocols', function() { it('should initialize listener protocols', function() {
expect(model.listenerProtocols.length).toBe(2); expect(model.listenerProtocols.length).toBe(3);
expect(model.listenerProtocols.indexOf('TERMINATED_HTTPS')).toBe(-1); expect(model.listenerProtocols.indexOf('TERMINATED_HTTPS')).toBe(-1);
}); });
}); });