Skip to content

Merge in Tests and changes from Master #38

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

Merged
merged 9 commits into from
Feb 27, 2019
Merged

Merge in Tests and changes from Master #38

merged 9 commits into from
Feb 27, 2019

Conversation

abmusse
Copy link
Member

@abmusse abmusse commented Feb 27, 2019

Merged in functional and unit tests from master as well as small patches found while testing, see PR #34

Also merged in contribution guidelines from master see PR #37.

After merging I ran the unit anf functional tests to ensure they passed.

Most did but found some issues that I fixed up in commit b14ec35.

Now tests are passing within v1.0-dev.

abmusse and others added 8 commits February 11, 2019 19:14
Unit Tests added for
 - iSh, iQsh, iCmd function (commandsUnit.js)
 - iConn methods, stubbed out run method
 - iPgm methods
 - iSql methods
 - xmlToJson function

Functional tests added for
 - iDataQueue Class methods
 - iNetwork Class methods
 - iObj methods
 - iPgm methods
 - iProd methods
 - iSql methods
 - iUserSpace methods
 - iWork methods

Removed test.js
- Moved functional tests from test.js to the appropriate class test

Added utils.js
- contains helper function return transports
- returns iConn objects intialized to transports
- used to dynamically generate functional tests that only differ by iConn object used for transport

Added test/README.md
- provides instructions to setup and run tests
- lists available environment variables to configure tests
ixml.js
- line 293 changed const to let ran into reassignment error with const

- changed iXmlNodeSqlParmOpen set io attribute, incorrectly set name attribute before

xmlToJson
- When converting <sql> xmlOut stmt: property would return ']]>' from CDATA output

- Example: "stmt":"SELECT '' AS BLANK, STATE FROM QIWS.QCUSTCDT]]>"

- Not sure if every version of XMLSERVICE adds CDATA to returned statement.

- Added a check to see if the matched success string contains CDATA and replaced extra characters.

iConn.setTimeout()
- could not be set, if condition checked flag instead of seconds

iSql.rowCount()
- added check to allow optional options object

iSql.count()
- called iXmlNodeSqlRowCount instead of iXmlNodeSqlCount

iProd.getProductInfo
- Fixed issue that occured when calling with (productId, cb) signature

- the callback function definition was being appended to the options
  causing the pgm call to fail
- moved idb-connector to optional deps
- added idb-pconnector to optional deps
- added sinon - for (mocking/stubs) to dev deps
Add Unit and Functional Tests
* Add contribution guidelines

* Update README.md

- Add link to contribution guidelines

* Add dco bot config

- ignores members of the org from signing off

* Add .npmignore

- Added to ignore .github and other files from npm package
- merged in functional and unit tests
- merged in small patches found while unit testing
- merged contribution guidlines and related files
Updated how the underlying properties was accessed in iConnUnit.js

Touched up the require() path to find the modules for

- iDataQueueFunctional
- iNetworkFunctional
- iObjFunctional
- iProdFunctional
- iUserSpaceFunctional
- iWorkFunctional

Toolkit.js

- uncommented Release_level property in getProductInfo()
- fixed require() statement for ProgramCall

Connection.js

- fix variable name change iXml_SERVICE_LIB -> I_XML_SERVICE_LIB

Deprecated.js

- add missing addToLibraryList() function
- add missing getJobInfo() function
- fixed typo retSrvPgmIfno -> retSrvPgmInfo
- fixed typo retUserIfno -> retrUserInfo
- fixed typo getSysStatysEx -> getSysStatusExt

Update ixml.js

- ran into error when options was undefined in iXmlNodeDataOpen
- added guard to iterate over keys only when options is an object
- use Connection instead of iConn for transports
@abmusse abmusse requested review from kadler and markdirish February 27, 2019 17:11
Copy link
Contributor

@markdirish markdirish left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change CRLF to LF in itoolkit.js and ixml.js, then it looks good!

- itoolkit.js
- ixml.js
@abmusse
Copy link
Member Author

abmusse commented Feb 27, 2019

Change CRLF to LF in itoolkit.js and ixml.js, then it looks good!

I think this got introduced when merging with master. Added commit to resolve issue.

@abmusse abmusse merged commit 8ecfd0c into IBM:v1.0-dev Feb 27, 2019
@abmusse abmusse deleted the mergeWithMaster branch May 8, 2020 02:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants