From 9ebba6d43f5c0d1824162bb49a24f890e1a579cc Mon Sep 17 00:00:00 2001 From: yangle Date: Fri, 2 Jun 2017 15:04:24 +0800 Subject: [PATCH] Modify some spelling mistakes Change-Id: I8f5e49f6378b437211520a7d28726b8b4d1c2aea Co-Authored-By: Shu Muto --- doc/Makefile | 2 +- .../cluster-templates/delete/delete.service.spec.js | 6 +++--- .../container-infra/clusters/delete/delete.service.spec.js | 6 +++--- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/doc/Makefile b/doc/Makefile index efaeb8e9..0a15a286 100644 --- a/doc/Makefile +++ b/doc/Makefile @@ -144,7 +144,7 @@ changes: linkcheck: $(SPHINXBUILD) -b linkcheck $(ALLSPHINXOPTS) $(BUILDDIR)/linkcheck @echo - @echo "Link check complete; look for any errors in the above output " \ + @echo "Link check complete; look for any error in the above output " \ "or in $(BUILDDIR)/linkcheck/output.txt." doctest: diff --git a/magnum_ui/static/dashboard/container-infra/cluster-templates/delete/delete.service.spec.js b/magnum_ui/static/dashboard/container-infra/cluster-templates/delete/delete.service.spec.js index 04461aeb..adc3f25a 100644 --- a/magnum_ui/static/dashboard/container-infra/cluster-templates/delete/delete.service.spec.js +++ b/magnum_ui/static/dashboard/container-infra/cluster-templates/delete/delete.service.spec.js @@ -32,7 +32,7 @@ }; var magnumAPI = { - deleteEntity: function() { + deleteClusterTemplate: function() { return; } }; @@ -58,7 +58,7 @@ })); beforeEach(module('horizon.app.core.openstack-service-api', function($provide) { - $provide.value('horizon.app.core.openstack-service-api.mugnum', magnumAPI); + $provide.value('horizon.app.core.openstack-service-api.magnum', magnumAPI); $provide.value('horizon.app.core.openstack-service-api.policy', policyAPI); spyOn(policyAPI, 'ifAllowed').and.callThrough(); })); @@ -126,7 +126,7 @@ it('should pass in a function that deletes an template', testMagnum); function testMagnum() { - spyOn(magnumAPI, 'deleteEntity'); + spyOn(magnumAPI, 'deleteClusterTemplate'); var templates = generateTemplate(1); var template = templates[0]; service.perform(templates, $scope); diff --git a/magnum_ui/static/dashboard/container-infra/clusters/delete/delete.service.spec.js b/magnum_ui/static/dashboard/container-infra/clusters/delete/delete.service.spec.js index b3f3d165..200c7a6c 100644 --- a/magnum_ui/static/dashboard/container-infra/clusters/delete/delete.service.spec.js +++ b/magnum_ui/static/dashboard/container-infra/clusters/delete/delete.service.spec.js @@ -32,7 +32,7 @@ }; var magnumAPI = { - deleteEntity: function() { + deleteCluster: function() { return; } }; @@ -57,7 +57,7 @@ })); beforeEach(module('horizon.app.core.openstack-service-api', function($provide) { - $provide.value('horizon.app.core.openstack-service-api.mugnum', magnumAPI); + $provide.value('horizon.app.core.openstack-service-api.magnum', magnumAPI); $provide.value('horizon.app.core.openstack-service-api.policy', policyAPI); spyOn(policyAPI, 'ifAllowed').and.callThrough(); })); @@ -126,7 +126,7 @@ it('should pass in a function that deletes a cluster', testMagnum); function testMagnum() { - spyOn(magnumAPI, 'deleteEntity'); + spyOn(magnumAPI, 'deleteCluster'); var clusters = generateCluster(1); var cluster = clusters[0]; service.perform(clusters, $scope);