Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Post node version 0.9.1, tls, https: validate server certificate by default. So in case self signed certificate, UI will not work with https request to openstack services. mscdex/node-imap#181 (comment) Fix: Added rejectUnauthorized flag. In node post v0.11.14, we have custom checkServerIdentity in options to have more control. UT Results: +++++++++++ contrail-web-controller: ------------------------ PhantomJS 1.9.8 (Mac OS X 10.9.5): Executed 376 of 376 SUCCESS (1 min 41.645 secs / 1 min 39.143 secs) Done, without errors. contrail-web-server-manager: ---------------------------- PhantomJS 1.9.8 (Mac OS X 10.9.5): Executed 89 of 89 SUCCESS (11.9 secs / 11.643 secs) Done, without errors. contrail-web-storage: -------------------- PhantomJS 1.9.8 (Mac OS X 0.0.0): Executed 84 of 84 SUCCESS (20.301 secs / 18.748 secs) Done, without errors. Change-Id: Iec589a59b5ae153c3b6a57ad1e96a025c8a9280e (cherry picked from commit 60c2149) Avoid passing an empty 'data' object to restler.get calls. Restler changes Content-Type to 'application/x-www-form-urlencoded' even for GET requests, as long as data is not a string. That breaks some nova API calls when Mitaka nova-api is used, as it now expects to get "application/json" for all queries. Make sure we pass data object only for POST and PUT calls. Change-Id: Ieaf1622dec703404d9672681a9cd0d35199326d7 Closes-Bug: 1591393 (cherry picked from commit f10620e) Closes-Bug: #1605163 This is side effect of the below fix: f10620e Comuting data before Content-Length header assignement. Change-Id: I100ab66856595688e97a74a54ce534fcdc201a36 (cherry picked from commit 15ba740)
- Loading branch information