Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 13 additions & 12 deletions test/nodejs/test_rticonnextdds_connector.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,15 +93,15 @@ describe('Connector Tests', function () {
await connector.close()
})

// it('Should be possible to create a Connector with participant qos', async function () {
// const xmlProfile = path.join(__dirname, '/../xml/TestConnector.xml')
// const connector = new rti.Connector(
// 'MyParticipantLibrary::ConnectorWithParticipantQos',
// xmlProfile)
// expect(connector).to.exist
// expect(connector).to.be.instanceOf(rti.Connector)
// await connector.close()
// })
it('Should be possible to create a Connector with participant qos', async function () {
const xmlProfile = path.join(__dirname, '/../xml/TestConnector.xml')
const connector = new rti.Connector(
'MyParticipantLibrary::ConnectorWithParticipantQos',
xmlProfile)
expect(connector).to.exist
expect(connector).to.be.instanceOf(rti.Connector)
await connector.close()
})

it('is possible to obtain the current version of Connector', function () {
const version = rti.Connector.getVersion()
Expand All @@ -112,17 +112,18 @@ describe('Connector Tests', function () {
// - the build ID of core.1.0
// - the build ID of dds_c.1.0
// - the build ID of lua_binding.1.0
// Each build ID has either 3 or 4 version digits.
// Expect "RTI Connector for JavaScript, version X.X.X"
let regex = /RTI Connector for JavaScript, version ([0-9][.]){2}[0-9]/
expect(regex.test(version)).deep.equals(true)
// Expect "NDDSCORE_BUILD_<VERSION>_<DATE>T<TIMESTAMP>Z"
regex = /.*NDDSCORE_BUILD_([0-9][.]){2}[0-9]_[0-9]{8}T[0-9]{6}Z/
regex = /.*NDDSCORE_BUILD_([0-9][.]){2,3}[0-9]_[0-9]{8}T[0-9]{6}Z/
expect(regex.test(version)).deep.equals(true)
// Expect "NDDSC_BUILD_<VERSION>_<DATE>T<TIMESTAMP>Z"
regex = /.*NDDSC_BUILD_([0-9][.]){2}[0-9]_[0-9]{8}T[0-9]{6}Z/
regex = /.*NDDSC_BUILD_([0-9][.]){2,3}[0-9]_[0-9]{8}T[0-9]{6}Z/
expect(regex.test(version)).deep.equals(true)
// Expect "RTICONNECTOR_BUILD_<VERSION>_<DATE>T<TIMESTAMP>Z"
regex = /.*RTICONNECTOR_BUILD_([0-9][.]){2}[0-9]_[0-9]{8}T[0-9]{6}Z/
regex = /.*RTICONNECTOR_BUILD_([0-9][.]){2,3}[0-9]_[0-9]{8}T[0-9]{6}Z/
expect(regex.test(version)).deep.equals(true)
})

Expand Down
12 changes: 11 additions & 1 deletion test/xml/TestConnector.xml
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,17 @@ This code contains trade secrets of Real-Time Innovations, Inc.
<!-- Test for CON-214 -->
<domain_participant name="ConnectorWithParticipantQos"
domain_ref="MyDomainLibrary::MyDomain">
<domain_participant_qos/>
<domain_participant_qos>
<transport_builtin>
<mask>UDPV4 | SHMEM</mask>
</transport_builtin>
<database>
<shutdown_cleanup_period>
<sec>0</sec>
<nanosec>100000000</nanosec>
</shutdown_cleanup_period>
</database>
</domain_participant_qos>
</domain_participant>
</domain_participant_library>
</dds>