Skip to content

Commit

Permalink
ui: HTTPAdapter - Move Tests (#6281)
Browse files Browse the repository at this point in the history
- Moves `respondFor` integration tests from adapter to serializer
- Rename all the tests
  • Loading branch information
johncowen authored and John Cowen committed Aug 23, 2019
1 parent 4245db6 commit 609a4db
Show file tree
Hide file tree
Showing 22 changed files with 21 additions and 21 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { module, test } from 'qunit';
import { setupTest } from 'ember-qunit';
module('Integration | Adapter | acl | url', function(hooks) {
module('Integration | Adapter | acl', function(hooks) {
setupTest(hooks);
const dc = 'dc-1';
const id = 'token-name';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { module, test } from 'qunit';
import { setupTest } from 'ember-qunit';
module('Integration | Adapter | coordinate | url', function(hooks) {
module('Integration | Adapter | coordinate', function(hooks) {
setupTest(hooks);
const dc = 'dc-1';
test('requestForQuery returns the correct url', function(assert) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { module, test } from 'qunit';
import { setupTest } from 'ember-qunit';
module('Integration | Adapter | dc | url', function(hooks) {
module('Integration | Adapter | dc', function(hooks) {
setupTest(hooks);
test('requestForFindAll returns the correct url', function(assert) {
const adapter = this.owner.lookup('adapter:dc');
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { module, test } from 'qunit';
import { setupTest } from 'ember-qunit';
module('Integration | Adapter | intention | url', function(hooks) {
module('Integration | Adapter | intention', function(hooks) {
setupTest(hooks);
const dc = 'dc-1';
const id = 'intention-name';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { module, test } from 'qunit';
import { setupTest } from 'ember-qunit';
module('Integration | Adapter | kv | url', function(hooks) {
module('Integration | Adapter | kv', function(hooks) {
setupTest(hooks);
const dc = 'dc-1';
const id = 'key-name/here';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { module, test } from 'qunit';
import { setupTest } from 'ember-qunit';
module('Integration | Adapter | node | url', function(hooks) {
module('Integration | Adapter | node', function(hooks) {
setupTest(hooks);
const dc = 'dc-1';
const id = 'node-name';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { module, test, skip } from 'qunit';
import { setupTest } from 'ember-qunit';
module('Integration | Adapter | policy | url', function(hooks) {
module('Integration | Adapter | policy', function(hooks) {
setupTest(hooks);
const dc = 'dc-1';
const id = 'policy-name';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { module, test } from 'qunit';
import { setupTest } from 'ember-qunit';
module('Integration | Adapter | role | url', function(hooks) {
module('Integration | Adapter | role', function(hooks) {
setupTest(hooks);
const dc = 'dc-1';
const id = 'role-name';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { module, test } from 'qunit';
import { setupTest } from 'ember-qunit';
module('Integration | Adapter | service | url', function(hooks) {
module('Integration | Adapter | service', function(hooks) {
setupTest(hooks);
const dc = 'dc-1';
const id = 'service-name';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { module, test } from 'qunit';
import { setupTest } from 'ember-qunit';
module('Integration | Adapter | session | url', function(hooks) {
module('Integration | Adapter | session', function(hooks) {
setupTest(hooks);
const dc = 'dc-1';
const id = 'session-id';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { module, test } from 'qunit';
import { setupTest } from 'ember-qunit';
module('Integration | Adapter | token | url', function(hooks) {
module('Integration | Adapter | token', function(hooks) {
setupTest(hooks);
const dc = 'dc-1';
const id = 'policy-id';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { module, test } from 'qunit';
import { setupTest } from 'ember-qunit';
import { get } from 'consul-ui/tests/helpers/api';
import { HEADERS_SYMBOL as META } from 'consul-ui/utils/http/consul';
module('Integration | Adapter | acl | response', function(hooks) {
module('Integration | Serializer | acl', function(hooks) {
setupTest(hooks);
const dc = 'dc-1';
const id = 'token-name';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { module, test } from 'qunit';
import { setupTest } from 'ember-qunit';
import { get } from 'consul-ui/tests/helpers/api';
module('Integration | Adapter | coordinate | response', function(hooks) {
module('Integration | Serializer | coordinate', function(hooks) {
setupTest(hooks);
const dc = 'dc-1';
test('respondForQuery returns the correct data for list endpoint', function(assert) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { module, test } from 'qunit';
import { setupTest } from 'ember-qunit';
import { get } from 'consul-ui/tests/helpers/api';
module('Integration | Adapter | dc | response', function(hooks) {
module('Integration | Serializer | dc', function(hooks) {
setupTest(hooks);
test('respondForFindAll returns the correct data for list endpoint', function(assert) {
const serializer = this.owner.lookup('serializer:dc');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { module, test } from 'qunit';
import { setupTest } from 'ember-qunit';
import { get } from 'consul-ui/tests/helpers/api';
import { HEADERS_SYMBOL as META } from 'consul-ui/utils/http/consul';
module('Integration | Adapter | intention | response', function(hooks) {
module('Integration | Serializer | intention', function(hooks) {
setupTest(hooks);
const dc = 'dc-1';
const id = 'intention-name';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { module, test } from 'qunit';
import { setupTest } from 'ember-qunit';
import { get } from 'consul-ui/tests/helpers/api';
import { HEADERS_SYMBOL as META } from 'consul-ui/utils/http/consul';
module('Integration | Adapter | kv | response', function(hooks) {
module('Integration | Serializer | kv', function(hooks) {
setupTest(hooks);
const dc = 'dc-1';
const id = 'key-name/here';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { module, test } from 'qunit';
import { setupTest } from 'ember-qunit';
import { get } from 'consul-ui/tests/helpers/api';
import { HEADERS_SYMBOL as META } from 'consul-ui/utils/http/consul';
module('Integration | Adapter | node | response', function(hooks) {
module('Integration | Serializer | node', function(hooks) {
setupTest(hooks);
test('respondForQuery returns the correct data for list endpoint', function(assert) {
const serializer = this.owner.lookup('serializer:node');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { module, test } from 'qunit';
import { setupTest } from 'ember-qunit';
import { get } from 'consul-ui/tests/helpers/api';
import { HEADERS_SYMBOL as META } from 'consul-ui/utils/http/consul';
module('Integration | Adapter | policy | response', function(hooks) {
module('Integration | Serializer | policy', function(hooks) {
setupTest(hooks);
const dc = 'dc-1';
const id = 'policy-name';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { get } from 'consul-ui/tests/helpers/api';
import { HEADERS_SYMBOL as META } from 'consul-ui/utils/http/consul';
import { createPolicies } from 'consul-ui/tests/helpers/normalizers';

module('Integration | Adapter | role | response', function(hooks) {
module('Integration | Serializer | role', function(hooks) {
setupTest(hooks);
const dc = 'dc-1';
const id = 'role-name';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { module, test } from 'qunit';
import { setupTest } from 'ember-qunit';
import { get } from 'consul-ui/tests/helpers/api';
import { HEADERS_SYMBOL as META } from 'consul-ui/utils/http/consul';
module('Integration | Adapter | service | response', function(hooks) {
module('Integration | Serializer | service', function(hooks) {
setupTest(hooks);
test('respondForQuery returns the correct data for list endpoint', function(assert) {
const serializer = this.owner.lookup('serializer:service');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { HEADERS_SYMBOL as META } from 'consul-ui/utils/http/consul';

import { createPolicies } from 'consul-ui/tests/helpers/normalizers';

module('Integration | Adapter | token | response', function(hooks) {
module('Integration | Serializer | token', function(hooks) {
setupTest(hooks);
const dc = 'dc-1';
const id = 'token-name';
Expand Down

0 comments on commit 609a4db

Please sign in to comment.