Commit Graph

13 Commits

Author SHA1 Message Date
ricolin 9bbf3d8a97 retire js-openstack-lib
This project is being retired

Release update: https://review.opendev.org/c/openstack/governance/+/771789

ML: http://lists.openstack.org/pipermail/openstack-discuss/2021-January/019847.html
Codesearch: https://codesearch.opendev.org/?q=js-openstack-lib&i=nope&files=&excludeFiles=&repos=

Change-Id: I94c42c0ac3ec23c685d1b50d35383ad078916f06
2023-10-19 12:29:20 -07:00
Monty Taylor 346f7eeda0 Update eslint and switch to standard
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
2020-06-12 13:04:59 -05:00
Dong Ma c5c58bcaad Seperate OpenStack class from index.js
This commit to seperate OpenStack class from index.js to new file

Change-Id: If433040fce752e0033eb61139fd8daa9c6dbb669
2016-09-29 09:12:54 -07:00
Dong Ma 9677a06a2d OpenStack wrapper instance
Create wrapper class that takes clouds.yaml instance

Change-Id: I37429b7bda35ca09efc3bf153841d4dc92d96b55
2016-09-28 07:38:46 -07:00
Corentin Ardeois b033ad652e Added Neutron Service
This neutron service follows the same pattern as the glance service,
and provides both version negotiation and endpoint discovery.

Change-Id: Ia2f59213eedf6d7acbb02789ee921c13ff391d09
2016-09-26 14:05:34 -04:00
Vitaly Kramskikh c2164e8b15 Export supported services from index.js
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
2016-09-22 20:42:27 +03:00
Vitaly Kramskikh e33758f9db Use babel-plugin-transform-runtime instead of babel-polyfill
babel-plugin-transform-runtime allows to reduce size of the
resulting bundle dramatically (from 260kb to 24kb).

Change-Id: I3cceb1caddfb5b0b2048b7d4efc2cebfee26ab91
2016-09-05 19:25:18 +03:00
Michael Krotscheck e96c828cd6 Removed loglevel
Removed dependency which we're not actually using for anything.

Change-Id: I4ced0fa4437b7c731c6a8c2e6bc7fa65be901820
2016-08-24 13:43:16 -07:00
Michael Krotscheck 4e9cf48b43 Enabled fetch-mock with tests.
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
2016-08-04 12:03:04 -07:00
Vitaly Kramskikh 1b9d90f7c0 Switch back from node-fetch to isomorphic-fetch
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
2016-07-25 12:55:52 +03:00
Vitaly Kramskikh fd53f563e2 Added node-fetch
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
2016-07-20 13:51:05 +00:00
Michael Krotscheck 9877477cef Added jasmine-based testing harness.
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
2016-07-14 13:12:09 +03:00
Michael Krotscheck effd5b100c Invoke babel to generate a ES5-compatible library.
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
2016-07-13 16:32:56 +03:00