-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
LCLS Automated test case implemented for server.xml #430
base: main
Are you sure you want to change the base?
LCLS Automated test case implemented for server.xml #430
Conversation
src/test/GradleSingleModLCLSTest.ts
Outdated
}).timeout(35000); | ||
|
||
it('Should show type ahead support in server.xml Liberty Server Configuration Stanza', async () => { | ||
const section = await new SideBarView().getContent().getSection(constants.GRADLE_PROJECT); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Move the duplicate code to testutils.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Addressed. Thanks
….com/SuparnaSuresh/liberty-tools-vscode into issue392-TypeaheadServerConfigStanza
}); | ||
|
||
it('Should copy content of server.xml', async () => { | ||
await utils.openConfigFile(constants.CONFIG_TWO, constants.SERVER_XML) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This method is for opening server.xml right? then the method name should be updated.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Addressed. Thanks
|
||
actualServerXMLContent = await editor.getText(); | ||
assert(actualServerXMLContent.length !== 0, 'Content of server.xml is not in copied.'); | ||
console.log('Sever.xml content is:', actualServerXMLContent); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove unnecessary log statements
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Addressed. Thanks
editor.clearText(); | ||
editor.setText(actualServerXMLContent); | ||
console.log("server.xml content is restored"); | ||
await utils.closeEditor(constants.SERVER_XML); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This method is for closing the opened file, so please update the method name accordingly.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Addressed. Thanks.
|
||
}).timeout(45000); | ||
|
||
it('Should show type ahead support in server.xml Liberty Server Feature', async () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instead of 'type ahead', use the word 'completion'.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Addressed. Thanks.
src/test/utils/testUtils.ts
Outdated
* Open specific config file from parent directory | ||
*/ | ||
export async function openConfigFile(parentDir: string, configFileName: string) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this method opens any file not the config file, so change the method name accordingly.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Addressed. Thanks.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please address the review comments.
src/test/definitions/constants.ts
Outdated
@@ -1,3 +1,4 @@ | |||
|
|||
/** | |||
* Copyright (c) 2020, 2022 IBM Corporation. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Update the year in copyright header.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Addressed. Thanks.
Review comments addressed. Thanks |
Fixes #392, Fixes #370, Fixes #434, Fixes #378, Fixes #381, Fixes #391
LCLS Test case implemented for server.xml.