summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDerick Montague <derick.montague@ibm.com>2021-05-07 02:17:34 +0300
committerDerick Montague <derick.montague@ibm.com>2021-05-18 16:39:36 +0300
commit71114feb9a800d42f6eeddfa477077a8ab8e44f6 (patch)
treeccce7dac478ea28e03936d996f4af367b4f92158 /tests
parent6b5ff101c2141dbb43d02c4327be3a55de69dd51 (diff)
downloadwebui-vue-71114feb9a800d42f6eeddfa477077a8ab8e44f6.tar.xz
Replace use of the term host with server
This patchset focuses on the global store use for server power operations and impacts several pages in the interface. For consistency, both in the UI and the code base, we are replacing the term host with server. This change impacts both the user and the developer experience. Maintaining consistency in naming allows both developers and users to form a mental model of the overall system and will help remove confusion when interacting with the UI and editing the interface. Testing: 1. Tested shutdown, power on, and reboot and verified the icons and page sections in the site header and the server power operations page update as expected during power operations. 2. Verified the one-time boot operations alert is displayed to the user when changing the boot settings on the server power operations page 3 Tested factory reset and validated the correct information message is displayed to the user with the server power off and on when performing the factory reset functions. 4. Verified the SOL Console status icon updates correctly during power operations. 5. Verified the alert message is displayed on the firmware update page when the server is powered on. Signed-off-by: Derick Montague <derick.montague@ibm.com> Change-Id: I88499a746364ab80f16a8b350d550407d094e95d
Diffstat (limited to 'tests')
-rw-r--r--tests/unit/AppHeader.spec.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/unit/AppHeader.spec.js b/tests/unit/AppHeader.spec.js
index 1a4075f4..9135c007 100644
--- a/tests/unit/AppHeader.spec.js
+++ b/tests/unit/AppHeader.spec.js
@@ -10,7 +10,7 @@ localVue.use(Vuex);
describe('AppHeader.vue', () => {
const actions = {
- 'global/getHostStatus': jest.fn(),
+ 'global/getServerStatus': jest.fn(),
'eventLog/getEventLogData': jest.fn(),
'authentication/resetStoreState': jest.fn(),
};
@@ -65,8 +65,8 @@ describe('AppHeader.vue', () => {
});
describe('Created lifecycle hook', () => {
- it('getHostInfo should dispatch global/getHostStatus', () => {
- wrapper.vm.getHostInfo();
+ it('getServerInfo should dispatch global/getServerStatus', () => {
+ wrapper.vm.getServerInfo();
expect(store.dispatch).toHaveBeenCalledTimes(1);
});