GUI -- Continued work on supporting GUI failover. WIP
- Thomas to complete.
Change-Id: I4ed40a0d5b0b48cd1d9fac175a1f66e81df7dacf
diff --git a/web/gui/src/main/webapp/tests/app/fw/remote/urlfn-spec.js b/web/gui/src/main/webapp/tests/app/fw/remote/urlfn-spec.js
index ebcfba5..eddbf8b 100644
--- a/web/gui/src/main/webapp/tests/app/fw/remote/urlfn-spec.js
+++ b/web/gui/src/main/webapp/tests/app/fw/remote/urlfn-spec.js
@@ -81,4 +81,9 @@
setLoc('http', 'foo', '123');
expect(ufs.wsUrl('xyyzy', 456)).toEqual('ws://foo:456/onos/ui/websock/xyyzy');
});
+
+ it('should allow us to define an alternate host', function () {
+ setLoc('http', 'foo', '123');
+ expect(ufs.wsUrl('core', 456, 'bar')).toEqual('ws://bar:456/onos/ui/websock/core');
+ });
});