consul/ui-v2
John Cowen 12811c0844
UI - Refactor Adapter.handleResponse (#4398)
* Add some tests to check the correct GET API endpoints are called

* Refactor adapters

1. Add integration tests for `urlFor...` and majority `handleResponse` methods
2. Refactor out `handleResponse` a little more into single/batch/boolean
methods
3. Move setting of the `Datacenter` property into the `handleResponse`
method, basically the same place that the uid is being set using the dc
parsed form the URL
4. Add some Errors for if you don't pass ids to certain `urlFor` methods
2018-07-30 17:55:44 +01:00
..
app UI - Refactor Adapter.handleResponse (#4398) 2018-07-30 17:55:44 +01:00
config Move testing doubles to use data embedded in the HTML vs HTTP/fetch 2018-07-02 19:02:16 +01:00
lib Find a way to test pre-ember load 2018-06-15 13:56:45 +01:00
public
tests UI - Refactor Adapter.handleResponse (#4398) 2018-07-30 17:55:44 +01:00
.dev.eslintrc.js
.editorconfig
.ember-cli Move testing doubles to use data embedded in the HTML vs HTTP/fetch 2018-07-02 19:02:16 +01:00
.eslintrc.js
.gitignore WIP: Feature/acceptance tests 2018-06-12 11:24:35 +01:00
.nvmrc
.prettierrc
.watchmanconfig
GNUmakefile Move testing doubles to use data embedded in the HTML vs HTTP/fetch 2018-07-02 19:02:16 +01:00
README.md Add some more detail to the README pre-adding a CONTRIBUTING 2018-07-05 09:20:58 +01:00
ember-cli-build.js UI - Non-prod CSS sourcemaps (#4418) 2018-07-30 17:53:14 +01:00
package.json Merge pull request #4349 from hashicorp/feature/remove-rm-api-double 2018-07-18 17:54:21 +01:00
testem.js
yarn.lock UI - Refactor Adapter.handleResponse (#4398) 2018-07-30 17:55:44 +01:00

README.md

consul-ui

Prerequisites

You will need the following things properly installed on your computer.

Installation

  • git clone https://github.com/hashicorp/consul.git this repository
  • cd ui-v2
  • yarn install

Running / Development

Code Generators

Make use of the many generators for code, try ember help generate for more details

Running Tests

You do not need to run make start-api/yarn run start:api to run the tests

  • make test or yarn run test
  • make test-view or yarn run test:view to view the tests running in Chrome