The openstack eslint package is just really not needed at this
point. Use standardjs and run --fix on it.
Switch away from using node 8 to run linters and tests.
Change-Id: I51f68d4ec30c8da5d1601ef00045e53f90d0554b
This neutron service follows the same pattern as the glance service,
and provides both version negotiation and endpoint discovery.
Change-Id: Ia2f59213eedf6d7acbb02789ee921c13ff391d09
This is required to make services provided by library accessible
this way:
import {Keystone} from 'openstack-lib';
instead of
import Keystone from 'openstack-lib/dist/keystone';
Also, Test class and dummy functional and unit tests for it were
removed since they aren't needed anymore.
Change-Id: I6bf0b6eebab095d6585d19d8398d9f2ac119cacc
babel-plugin-transform-runtime allows to reduce size of the
resulting bundle dramatically (from 260kb to 24kb).
Change-Id: I3cceb1caddfb5b0b2048b7d4efc2cebfee26ab91
This patch adds the fetch-mock library, demonstrating how it may be
used to properly mock out API calls. An important change that was
made was the way that 'isomorphic-fetch' was included. Since
fetch-mock makes the assumption that only the window.fetch object
should be overridden, we cannot invoke it via a variable. Instead,
I've simply imported the library, which during import will override
global.fetch if necessary.
Change-Id: Ibd88b61595b4492f375294a8a08031a1a001a10c
node-fetch utilizes Node.js standard library to work, so it
cannot be used in browsers. So we need to switch back to
isomorphic-fetch which works both in browsers and Node.js.
Change-Id: Idc8d18021a3226fb8339c99e3009dc53cbc15b2a
This commit adds a node-fetch library to dependencies and adds
a simple method to the Test class which calls it with provided
arguments.
Change-Id: I159d93b37388e3c6884f81a8e6026a514351b71d
This patch adds jasmine-based testing harnesses for node tests.
A dummy test has also been added to demonstrate use of ES6
features.
Change-Id: I6d7249ba0224107f79a453eff0676e1c49424eb6
This patch creates a very simple index.js file which uses
ES2015. It then creates a very simple Babel compile step
which converts this into a usable library.
Change-Id: I6a64843793297bcf784372002853d506f348c0d5