From 8192dde4859afa4931a3fa3afe12d7e9ff5a0b79 Mon Sep 17 00:00:00 2001 From: John Cowen Date: Wed, 25 Aug 2021 12:34:48 +0100 Subject: [PATCH] ui: Unskip auth-method serializer test (#10878) During #9617 we added a list view only for AuthMethods, but not a detail view. We did add the Adapter/Serializer that collected/reshaped data for a detail view. The test for this serializer was skipped here, but I'm not sure why. We then added #9845 which began to use this AuthMethod Serializer, but we didn't go back to finish up the skipped test here either. This PR unskips this test and finishes off the test correctly. --- .../tests/integration/serializers/auth-method-test.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ui/packages/consul-ui/tests/integration/serializers/auth-method-test.js b/ui/packages/consul-ui/tests/integration/serializers/auth-method-test.js index 002f662f19..4142f30cca 100644 --- a/ui/packages/consul-ui/tests/integration/serializers/auth-method-test.js +++ b/ui/packages/consul-ui/tests/integration/serializers/auth-method-test.js @@ -1,4 +1,4 @@ -import { module, test, skip } from 'qunit'; +import { module, test } from 'qunit'; import { setupTest } from 'ember-qunit'; import { get } from 'consul-ui/tests/helpers/api'; import { @@ -39,7 +39,7 @@ module('Integration | Serializer | auth-method', function(hooks) { assert.deepEqual(actual, expected); }); }); - skip(`respondForQueryRecord returns the correct data for item endpoint when nspace is ${nspace}`, function(assert) { + test(`respondForQueryRecord returns the correct data for item endpoint when nspace is ${nspace}`, function(assert) { const serializer = this.owner.lookup('serializer:auth-method'); const request = { url: `/v1/acl/auth-method/${id}?dc=${dc}${ @@ -51,7 +51,7 @@ module('Integration | Serializer | auth-method', function(hooks) { Datacenter: dc, [META]: { [DC.toLowerCase()]: dc, - [NSPACE.toLowerCase()]: payload.Namespace || undefinedNspace, + [NSPACE.toLowerCase()]: nspace || '', }, Namespace: payload.Namespace || undefinedNspace, uid: `["${payload.Namespace || undefinedNspace}","${dc}","${id}"]`,