Skip to content

Convert iotivity module to use NAPI #11

Closed

Description

@aruneshchandra

Activity

  1. added this to the Milestone 5 milestone on Jan 6, 2017
  2. aruneshchandra commented on Jan 6, 2017

    @aruneshchandra
    ContributorAuthor

    Conversion to include error handling as well

  3. gabrielschulhof commented on Feb 23, 2017

    @gabrielschulhof
    Collaborator

    Assertions passing: 110/180

  4. gabrielschulhof commented on Mar 1, 2017

    @gabrielschulhof
    Collaborator

    Assertions passing: 353/396
    The most difficult portion (representation payload) is implemented. Discovery and REST works. Only observation remains. I'll work on it tomorrow and on the plain. I haven't had a good look at the memory management yet, but I'll do a coverage run eventually.

  5. gabrielschulhof commented on Mar 1, 2017

    @gabrielschulhof
    Collaborator
    Running "testsuite" task
    
    API Presence
    ✓ @      2147: Global presence listener is correct
    ✓ @      2155: One global presence listener present when first 'devicelost' listener is added
    ✓ @      2156: No global presence listeners present when last 'devicelost' listener is removed
    ✓ @      2160: Test exited successfully (0)
    ✓ @      2160: Test did not segfault
    
    Backed Object
    ✓ @        63: Backer was called with correct object when setting attached object property
    ✓ @        63: Backed property has the correct value
    ✓ @        63: Backer was not called for non-backed property
    ✓ @        63: Non-backed property was attached to object
    ✓ @        64: Backer was called with correct object when setting attached object
    ✓ @        64: Backed property has the correct value
    ✓ @        64: Backer failed with correct message when attempting to set attached object property
    ✓ @        64: Backer was called with correct object when attempting to set attached object property
    ✓ @        64: Backed property has the correct (unchanged) value
    ✓ @        64: Backer was called with correct object when setting attached object property
    ✓ @        64: Backed property has the correct value
    ✓ @        67: Test exited successfully (0)
    ✓ @        67: Test did not segfault
    
    Callback Exception
    ✓ @        94: Server: OCRegisterPersistentStorageHandler successful
    ✓ @      2096: Server: OCInit successful
    ✓ @      2097: Server: OCCreateResource successful
    ✓ @      4181: Client: OCInit successful
    ✓ @      4183: Client: OCDoResource(discovery) successful
    ✓ @      4385: Client: Caught the correct exception
    ✓ @      4385: Client: OCProcess succeeded 1 times
    ✓ @     22840: Client: OCStop successful
    ✓ @     22844: Server: OCProcess succeeded 206 times
    ✓ @     22844: Server: OCDeleteResource successful
    ✓ @     22844: Client exited successfully (0)
    ✓ @     22845: Client did not segfault
    ✓ @     22845: Server: OCStop successful
    ✓ @     22847: Server exited successfully (0)
    ✓ @     22847: Server did not segfault
    
    Complex Payload
    ✓ @        96: Server: OCRegisterPersistentStorageHandler successful
    ✓ @      2099: Server: OCInit successful
    ✓ @      2100: Server: OCCreateResource successful
    ✓ @      4179: Client: OCInit successful
    ✓ @      4381: Client: Resource found
    ✓ @      4411: Server: OCDoResponse(get) successful
    ✓ @      4484: Client: received payload is correct
    ✓ @      4513: Server: received payload is correct
    ✓ @      4513: Server: OCDoResponse(put) successful
    ✓ @      4513: Server: OCProcess succeeded 23 times
    ✓ @      4514: Server: OCDeleteResource successful
    ✓ @     25101: Server: OCStop successful
    ✓ @     25104: Client: OCProcess succeeded 208 times
    ✓ @     25104: Server exited successfully (0)
    ✓ @     25104: Server did not segfault
    ✓ @     25104: Client: OCStop successful
    ✓ @     25106: Client exited successfully (0)
    ✓ @     25106: Client did not segfault
    
    Device Entity Handler
    ✓ @        93: Server: OCRegisterPersistentStorageHandler successful
    ✓ @      2096: Server: OCInit successful
    ✓ @      2096: Server: OCSetDefaultDeviceEntityHandler successful
    ✓ @      2097: Server: OCCreateResource successful
    ✓ @      4163: Client: OCInit successful
    ✓ @      4164: Client: OCDoResource(discovery) successful
    ✓ @      4365: Client: Resource found
    ✓ @      4366: Client: OCDoResource(get) successful
    ✓ @      4404: Server: Incoming request has the correct flags
    ✓ @      4404: Server: Incoming request has the correct URI
    ✓ @      4404: Server: Correct request received
    ✓ @      4404: Server: OCDoResponse successful
    ✓ @      4467: Client: Correct response received
    ✓ @      4467: Client: OCProcess succeeded 2 times
    ✓ @     25099: Client: OCStop successful
    ✓ @     25103: Server: OCProcess succeeded 229 times
    ✓ @     25103: Server: OCDeleteResource successful
    ✓ @     25103: Client exited successfully (0)
    ✓ @     25103: Client did not segfault
    ✓ @     25103: Server: OCStop successful
    ✓ @     25105: Server exited successfully (0)
    ✓ @     25105: Server did not segfault
    
    Discovery
    ✓ @       151: Server: OCRegisterPersistentStorageHandler successful
    ✓ @      2153: Server: OCInit successful
    ✓ @      2154: Server: OCCreateResource successful
    ✓ @      4237: Client: OCInit successful
    ✓ @      4238: Client: OCDoResource(discovery) successful
    ✓ @      4439: Client: Resource found
    ✓ @      4739: Client: Handle found stale after deleting transaction
    ✓ @      4739: Client: OCProcess succeeded 4 times
    ✓ @     25154: Client: OCStop successful
    ✓ @     25156: Server: OCProcess succeeded 229 times
    ✓ @     25156: Server: OCDeleteResource successful
    ✓ @     25156: Client exited successfully (0)
    ✓ @     25156: Client did not segfault
    ✓ @     25158: Server: OCStop successful
    ✓ @     25158: Server exited successfully (0)
    ✓ @     25158: Server did not segfault
    
    Get Request
    ✓ @       109: Server: OCRegisterPersistentStorageHandler successful
    ✓ @      2112: Server: OCInit successful
    ✓ @      2113: Server: OCCreateResource successful
    ✓ @      4190: Client: OCInit successful
    ✓ @      4191: Client: OCDoResource(discovery) successful
    ✓ @      4392: Client: Resource found
    ✓ @      4393: Client: OCDoResource(get) successful
    ✓ @      4421: The resource handle in the entity handler request is the same JS object as the resource handle returned at creation
    ✓ @      4422: Server: Incoming request has the correct flags
    ✓ @      4422: Server: Correct request received
    ✓ @      4422: Server: OCDoResponse successful
    ✓ @      4493: Client: Handle received in OCDoResource() callback is the same as the original handle
    ✓ @      4494: Client: Correct response received
    ✓ @      4494: Client: OCProcess succeeded 2 times
    ✓ @     25117: Client: OCStop successful
    ✓ @     25120: Client exited successfully (0)
    ✓ @     25121: Client did not segfault
    ✓ @     25122: Server: OCProcess succeeded 229 times
    ✓ @     25122: Server: OCDeleteResource successful
    ✓ @     25122: Server: OCStop successful
    ✓ @     25124: Server exited successfully (0)
    ✓ @     25124: Server did not segfault
    
    Interactive Server Startup
    ✓ @      2212: require() from interactive shell succeeded
    ✓ @      2213: require() from interactive shell did not receive a signal
    ✓ @      2213: Process stdout is empty
    ✓ @      2213: Process stderr is empty
    ✓ @      2214: Test exited successfully (0)
    ✓ @      2214: Test did not segfault
    
    Multiple Observers
    ✓ @       100: Server: OCRegisterPersistentStorageHandler successful
    ✓ @      2105: Server: OCInit successful
    ✓ @      2106: Server: OCCreateResource successful
    ✓ @      4185: Client 1: OCInit successful
    ✓ @      4187: Client 1: OCDoResource(discovery) successful
    ✓ @      4192: Client 2: OCInit successful
    ✓ @      4199: Client 2: OCDoResource(discovery) successful
    ✓ @      4488: Client 1: Resource found
    ✓ @      4489: Client 1: OCDoResource(observation) successful
    ✓ @      4494: Client 2: Resource found
    ✓ @      4494: Client 2: OCDoResource(observation) successful
    ✓ @      4512: Server: Observe request observation ID is not zero (183)
    ✓ @      4513: Server: Initial observe request has register action
    ✓ @      4513: Server: OCDoResponse successful
    ✓ @      4589: Client 1: First response is as expected: 'You are special.'
    ✓ @      4614: Server: Observe request observation ID is not zero (237)
    ✓ @      4614: Server: Initial observe request has register action
    ✓ @      4614: Server: OCDoResponse successful
    ✓ @      4696: Client 2: First response is as expected: 'You are not special.'
    ✓ @      4892: Client 1: Observed value is as expected
    ✓ @      4898: Client 2: Observed value is as expected
    ✓ @      5099: Client 2: Observed value is as expected
    ✓ @      5192: Client 1: Observed value is as expected
    ✓ @      5493: Client 1: Observed value is as expected
    ✓ @      5500: Client 2: Observed value is as expected
    ✓ @      5894: Client 1: Observed value is as expected
    ✓ @      5901: Client 2: Observed value is as expected
    ✓ @      6295: Client 1: Observed value is as expected
    ✓ @      6302: Client 2: Observed value is as expected
    ✓ @      6302: Client 2: OCDoResource(put) successful
    ✓ @      6495: Client 1: Observed value is as expected
    ✓ @      6796: Client 1: Observed value is as expected
    ✓ @      7097: Client 1: Observed value is as expected
    ✓ @      7498: Client 1: Observed value is as expected
    ✓ @      7798: Client 1: Observed value is as expected
    ✓ @      7798: Client 1: OCDoResource(put) successful
    ✓ @      7825: Server: OCProcess succeeded 56 times
    ✓ @      7825: Server: OCNotifyListOfObservers succeeded 10 times
    ✓ @      7825: Server: OCDeleteResource successful
    ✓ @     22938: Server: OCStop successful
    ✓ @     22940: Client 1: OCProcess succeeded 186 times
    ✓ @     22941: Server exited successfully (0)
    ✓ @     22941: Server did not segfault
    ✓ @     22941: Client 1: OCStop successful
    ✓ @     22941: Client 2: OCProcess succeeded 186 times
    ✓ @     22941: Client 2: OCStop successful
    ✓ @     23943: Client 1 exited successfully (0)
    ✓ @     23943: Client 1 did not segfault
    ✓ @     23943: Client 2 exited successfully (0)
    ✓ @     23943: Client 2 did not segfault
    
    Resource Operations
    ✓ @      2077: OCInit successful
    ✓ @      2077: OCSetDeviceInfo successful
    ✓ @      2078: OCSetPlatformInfo successful
    ✓ @      2078: OCGetNumberOfResources(to establish initial count) successful
    ✓ @      2078: OCCreateResource(parent) successful
    ✓ @      2078: OCGetNumberOfResources successful
    ✓ @      2078: OCGetNumberOfResources reports an increase by one resource after OCCreateResource
    ✓ @      2078: OCGetResourceHandler initially returns the initial entity handler
    ✓ @      2079: OCBindResourceHandler successful
    ✓ @      2079: OCGetResourceHandler returns the alternate entity handler after setting it
    ✓ @      2079: OCGetResourceUri returns the correct URI
    ✓ @      2079: OCGetNumberOfResourceInterfaces successful
    ✓ @      2079: Initially there is only one interface on the resource
    ✓ @      2079: OCBindResourceInterfaceToResource successful
    ✓ @      2079: OCGetNumberOfResourceInterfaces successful
    ✓ @      2079: After adding an interface there are two interfaces on the resource
    ✓ @      2079: First interface is 'oic.if.baseline'
    ✓ @      2079: Second interface is 'a.b.c'
    ✓ @      2079: OCBindResourceTypeToResource successful
    ✓ @      2079: OCGetNumberOfResourceTypes successful
    ✓ @      2079: After adding a type there are two types on the resource
    ✓ @      2079: First type is correct
    ✓ @      2079: Second type is correct
    ✓ @      2082: OCGetResourceProperties correctly returns properties set on resource
    ✓ @      2082: OCGetResourceHandle for the index of the new resource returns the original handle
    ✓ @      2082: OCCreateResource(child) successful
    ✓ @      2082: The first child resource handle is initially null
    ✓ @      2082: OCBindResource successful
    ✓ @      2082: Retrieving the child resource handle from the collection returns the child resource handle
    ✓ @      2082: OCUnBindResource successful
    ✓ @      2082: The first child resource handle is null after having detached the child from the parent
    ✓ @      2082: OCDeleteResource(child) successful
    ✓ @      2082: Child resource handle is marked stale after deletion
    ✓ @      2082: OCDeleteResource(parent) successful
    ✓ @      2082: Resource handle is marked stale after deletion
    ✓ @      2083: Test exited successfully (0)
    ✓ @      2083: Test did not segfault
    Total assertions: ( 204 ) / 204
    
    Done, without errors.
    Running "iot-js-api-ocf:plain" (iot-js-api-ocf) task
    
    ### OCF tests
    
    Create - Resource
    ✓ @      5759: Client: Initially the device contains the target resource but not the desired one
    ✓ @      6257: Client: The newly created resource has the expected structure
    ✓ @      6457: Client: After creating the resource, the device contains the target resource as well as the desired one
    ✓ @      6463: Server exited successfully (null)
    ✓ @      6463: Server did not segfault
    ✓ @      6463: Client exited successfully (0)
    ✓ @      6463: Client did not segfault
    
    Create - Resource (Direct)
    ✓ @      5604: Server: Create request has no target
    ✓ @      5608: Server: Response successfully sent
    ✓ @      6037: Client: The newly created resource has the expected structure
    ✓ @      6235: Client: After creating the resource, the device contains the desired resource
    ✓ @      6238: Server exited successfully (null)
    ✓ @      6238: Server did not segfault
    ✓ @      6238: Client exited successfully (0)
    ✓ @      6238: Client did not segfault
    
    Delete - Resource
    ✓ @      5944: Client: Resource successfully deleted
    ✓ @      5948: Server exited successfully (null)
    ✓ @      5949: Server did not segfault
    ✓ @      5950: Client exited successfully (0)
    ✓ @      5950: Client did not segfault
    
    Discovery - Device
    ✓ @      4296: Client: Device discovery successfully started
    ✓ @      5554: Client: Found device via .on()
    ✓ @      5556: Client: Found device via convenience handler
    ✓ @      5753: Client: Retrieved device info is identical to discovered device info
    ✓ @      5759: Server exited successfully (null)
    ✓ @      5759: Server did not segfault
    ✓ @      5759: Client exited successfully (0)
    ✓ @      5759: Client did not segfault
    
    Discovery - Platform
    ✓ @      2139: Server: Attempting to set the manufacturer URL to an overly long value failed as expected
    ✓ @      2139: Server: Attempting to set the manufacturer URL to an appropriately long value succeeded
    ✓ @      4291: Client: Platform discovery successfully started
    ✓ @      4748: Client: Found platform via .on()
    ✓ @      4749: Client: Found platform via convenience handler
    ✓ @      4752: Server exited successfully (null)
    ✓ @      4752: Server did not segfault
    ✓ @      4754: Client exited successfully (0)
    ✓ @      4754: Client did not segfault
    
    Discovery - Resource
    ✓ @      2148: Server: Resource registered successfully
    ✓ @      4290: Client: Resource discovery successfully started
    ✓ @      4750: Client: Resource found via .on()
    ✓ @      4752: Client: Resource found via convenience handler
    ✓ @      4755: Server exited successfully (null)
    ✓ @      4756: Server did not segfault
    ✓ @      4756: Client exited successfully (0)
    ✓ @      4756: Client did not segfault
    
    Discovery - Resource (Direct)
    ✓ @      2145: Server: Resource successfully registered
    ✓ @      5755: Client: Direct resource discovery successfully started
    ✓ @      5758: Client: Resource directly discovered
    ✓ @      5776: Server exited successfully (null)
    ✓ @      5776: Server did not segfault
    ✓ @      5777: Client exited successfully (0)
    ✓ @      5777: Client did not segfault
    
    Discovery - Resource (Multiple Types & Interfaces)
    ✓ @      2150: Server: Resource registered successfully
    ✓ @      4289: Client: Resource discovery successfully started
    ✓ @      4748: Client: Resource found
    ✓ @      4751: Server exited successfully (null)
    ✓ @      4751: Server did not segfault
    ✓ @      4751: Client exited successfully (0)
    ✓ @      4751: Client did not segfault
    
    Discovery - Resource (Repeated)
    ✓ @      2155: Server: Resource registered successfully
    ✓ @      4295: Client: Resource discovery successfully started
    ✓ @     10299: Client: Resource discovery successfully started
    ✓ @     16301: Client: Second discovery round results are identical to the first
    ✓ @     16305: Server exited successfully (null)
    ✓ @     16305: Server did not segfault
    ✓ @     16305: Client exited successfully (0)
    ✓ @     16305: Client did not segfault
    
    Observe - Resource
    ✓ @      4911: Server: Notification successful
    ✓ @      4941: Client: sensor value is positive
    ✓ @      5041: Client: sensor value is positive
    ✓ @      5142: Client: sensor value is negative
    ✓ @      5242: Client: sensor value is negative
    ✓ @      5342: Client: No new resource was created when the query options line up
    ✓ @      5736: Server: Notification successful
    ✓ @      5743: Client: sensor value is positive
    ✓ @      5843: Client: sensor value is negative
    ✓ @      5844: Client: Second listener: sensor value is negative
    ✓ @      5944: Client: No new resource was created when the empty query options line up
    ✓ @      6528: Server: Notification successful
    ✓ @      6546: Client: sensor value is positive
    ✓ @      6546: Client: Second listener: sensor value is positive
    ✓ @      6646: Client: sensor value is negative
    ✓ @      6646: Client: Second listener: sensor value is negative
    ✓ @      7465: Server: Notification successful
    ✓ @      7549: Client: sensor value is positive
    ✓ @      7550: Client: Second listener: sensor value is positive
    ✓ @      7650: Client: sensor value is negative
    ✓ @      7651: Client: Second listener: sensor value is negative
    ✓ @      8270: Server: Notification successful
    ✓ @      8353: Client: Second listener: sensor value is positive
    ✓ @      8453: Client: Second listener: sensor value is negative
    ✓ @      9460: Server: Notification successful
    ✓ @      9557: Client: Second listener: sensor value is positive
    ✓ @      9658: Client: Second listener: sensor value is negative
    ✓ @      9931: Server: Timeout was removed by the time the last observer has signed off
    ✓ @      9935: Server exited successfully (0)
    ✓ @      9935: Server did not segfault
    ✓ @      9938: Client exited successfully (null)
    ✓ @      9938: Client did not segfault
    
    Observe - Resource (Failure)
    ✓ @      4942: Client: Failure to observe resulted in expected error
    ✓ @      4946: Server exited successfully (null)
    ✓ @      4946: Server did not segfault
    ✓ @      4946: Client exited successfully (0)
    ✓ @      4946: Client did not segfault
    
    Observe - Resource (Repeated)
    ✓ @      4807: Server: Retrieve request (observe: true, count: 1)
    ✓ @      4809: Server: Successfully responded to retrieve request
    ✓ @      9561: Client: Observation sequence complete
    ✓ @      9725: Server: Retrieve request (observe: false, count: 0)
    ✓ @      9726: Server: Successfully responded to retrieve request
    ✓ @     14638: Server: Retrieve request (observe: true, count: 1)
    ✓ @     14639: Server: Successfully responded to retrieve request
    ✓ @     19488: Client: Observation sequence complete
    ✓ @     19654: Server: Retrieve request (observe: false, count: 0)
    ✓ @     19654: Server: Successfully responded to retrieve request
    ✓ @     19656: Server exited successfully (0)
    ✓ @     19657: Server did not segfault
    ✓ @     19657: Client exited successfully (null)
    ✓ @     19657: Client did not segfault
    
    Presence
    ✓ @      5009: Client: test device has appeared
    ✓ @      5012: Server exited successfully (0)
    ✓ @      5012: Server did not segfault
    ✓ @      5014: Client exited successfully (null)
    ✓ @      5014: Client did not segfault
    
    Presence - Resource
    ✓ @      7415: Client: Received 'delete' event
    ✓ @      7418: Server exited successfully (0)
    ✓ @      7418: Server did not segfault
    ✓ @      7419: Client exited successfully (null)
    ✓ @      7419: Client did not segfault
    
    Retrieve - Platform
    ✓ @      5542: Client: Found device
    ✓ @      5741: Client: Retrieved platform info has expected support URL
    ✓ @      5746: Server exited successfully (null)
    ✓ @      5747: Server did not segfault
    ✓ @      5748: Client exited successfully (0)
    ✓ @      5748: Client did not segfault
    
    Retrieve - Resource
    ✓ @      2142: Server: Registering resource succeeded
    ✓ @      4808: Server: Resource passed to retrieve request is the one that was registered
    ✓ @      4809: Server: Successful response to retrieve request
    ✓ @      4939: Client: Retrieved resource is the discovered resource
    ✓ @      4939: Client: Retrieved resource properties are as expected
    ✓ @      5010: Server: Resource passed to retrieve request is the one that was registered
    ✓ @      5010: Server: Successful response to retrieve request
    ✓ @      5039: Client: Retrieved resouce properties change based on query options
    ✓ @      5043: Server exited successfully (null)
    ✓ @      5043: Server did not segfault
    ✓ @      5043: Client exited successfully (0)
    ✓ @      5044: Client did not segfault
    
    Retrieve - Resource (Direct)
    ✓ @      5747: Client: Error indicating inability to directly access resource has the expected message
    ✓ @      6146: Client: Directly accessed resource has expected structure
    ✓ @      6149: Server exited successfully (null)
    ✓ @      6149: Server did not segfault
    ✓ @      6151: Client exited successfully (0)
    ✓ @      6151: Client did not segfault
    
    Retrieve - Resource (Failure)
    ✓ @      4943: Client: retrieve() failed as expected
    ✓ @      4946: Server exited successfully (null)
    ✓ @      4946: Server did not segfault
    ✓ @      4947: Client exited successfully (0)
    ✓ @      4947: Client did not segfault
    
    Retrieve - Resource (Local Error)
    ✓ @      2141: Retrieving fake resource failed as expected
    ✓ @      2143: Test exited successfully (0)
    ✓ @      2143: Test did not segfault
    
    Server - register and unregister resource
    ✓ @      2139: Resource creation failed with correct error without resource path
    ✓ @      2139: Resource creation failed with correct error without resource types
    ✓ @      2139: Resource creation failed with correct error without interfaces
    ✓ @      2140: Legitimate resource creation successful with correct result
    ✓ @      2140: resource.onretrieve is a function
    ✓ @      2141: resource.ontranslate is a function
    ✓ @      2141: resource.notify is a function
    ✓ @      2141: resource.onupdate is a function
    ✓ @      2141: resource.ondelete is a function
    ✓ @      2141: resource.unregister is a function
    ✓ @      2141: Duplicate legitimate resource creation throws an error: Error: register: OCCreateResource() failed
    {
       "result": 26
    }
    ✓ @      2142: Legitimate resource unregistration successful
    ✓ @      2145: Test exited successfully (0)
    ✓ @      2145: Test did not segfault
    
    Structure - Client
    ✓ @      2140: client.getDeviceInfo is a function
    ✓ @      2141: client.getPlatformInfo is a function
    ✓ @      2141: client.create is a function
    ✓ @      2141: client.retrieve is a function
    ✓ @      2141: client.update is a function
    ✓ @      2141: client.delete is a function
    ✓ @      2141: client.findDevices is a function
    ✓ @      2141: client.findPlatforms is a function
    ✓ @      2141: client.findResources is a function
    ✓ @      2141: client.on is a function
    ✓ @      2143: Test exited successfully (0)
    ✓ @      2143: Test did not segfault
    
    Structure - Device
    ✓ @      2140: Initially: ocf.device.name is a string
    ✓ @      2141: Initially: ocf.device.name is not an empty string
    ✓ @      2141: Initially: ocf.device.coreSpecVersion is a string
    ✓ @      2141: Initially: ocf.device.coreSpecVersion is not an empty string
    ✓ @      2141: Initially: ocf.device.uuid is a string
    ✓ @      2141: Initially: ocf.device.uuid is a UUID
    ✓ @      2141: Initially: ocf.device.dataModels is an array
    ✓ @      2141: Initially: ocf.device.dataModels has at least one element
    ✓ @      2141: Initially: First element of ocf.device.dataModels is a string
    ✓ @      2141: Initially: First element of ocf.device.dataModels is not an empty string
    ✓ @      2142: After setting a member of ocf.device: ocf.device.name is a string
    ✓ @      2142: After setting a member of ocf.device: ocf.device.name is not an empty string
    ✓ @      2142: After setting a member of ocf.device: ocf.device.coreSpecVersion is a string
    ✓ @      2142: After setting a member of ocf.device: ocf.device.coreSpecVersion is not an empty string
    ✓ @      2142: After setting a member of ocf.device: ocf.device.uuid is a string
    ✓ @      2142: After setting a member of ocf.device: ocf.device.uuid is a UUID
    ✓ @      2142: After setting a member of ocf.device: ocf.device.dataModels is an array
    ✓ @      2142: After setting a member of ocf.device: ocf.device.dataModels has at least one element
    ✓ @      2142: After setting a member of ocf.device: First element of ocf.device.dataModels is a string
    ✓ @      2142: After setting a member of ocf.device: First element of ocf.device.dataModels is not an empty string
    ✓ @      2142: After setting the whole ocf.device structure: ocf.device.name is a string
    ✓ @      2142: After setting the whole ocf.device structure: ocf.device.name is not an empty string
    ✓ @      2143: After setting the whole ocf.device structure: ocf.device.coreSpecVersion is a string
    ✓ @      2143: After setting the whole ocf.device structure: ocf.device.coreSpecVersion is not an empty string
    ✓ @      2143: After setting the whole ocf.device structure: ocf.device.uuid is a string
    ✓ @      2143: After setting the whole ocf.device structure: ocf.device.uuid is a UUID
    ✓ @      2143: After setting the whole ocf.device structure: ocf.device.dataModels is an array
    ✓ @      2143: After setting the whole ocf.device structure: ocf.device.dataModels has at least one element
    ✓ @      2143: After setting the whole ocf.device structure: First element of ocf.device.dataModels is a string
    ✓ @      2143: After setting the whole ocf.device structure: First element of ocf.device.dataModels is not an empty string
    ✓ @      2145: Test exited successfully (0)
    ✓ @      2145: Test did not segfault
    
    Structure - OCF
    ✓ @      2143: ocf.device is an object
    ✓ @      2144: ocf.platform is an object
    ✓ @      2144: ocf.client is an object
    ✓ @      2144: ocf.server is an object
    ✓ @      2146: Test exited successfully (0)
    ✓ @      2146: Test did not segfault
    
    Structure - Platform
    ✓ @      2139: Initially: ocf.platform.manufacturerName is a string
    ✓ @      2140: Initially: ocf.platform.manufacturerName is not an empty string
    ✓ @      2140: Initially: ocf.platform.id is a string
    ✓ @      2140: Initially: ocf.platform.id is a UUID
    ✓ @      2142: Set individual platform info member: ocf.platform.manufacturerName is a string
    ✓ @      2142: Set individual platform info member: ocf.platform.manufacturerName is not an empty string
    ✓ @      2142: Set individual platform info member: ocf.platform.id is a string
    ✓ @      2142: Set individual platform info member: ocf.platform.id is a UUID
    ✓ @      2142: Set individual platform info member: ocf.platform.manufacturerName has the expected value
    ✓ @      2143: Set entire platform info: ocf.platform.manufacturerName is a string
    ✓ @      2143: Set entire platform info: ocf.platform.manufacturerName is not an empty string
    ✓ @      2143: Set entire platform info: ocf.platform.id is a string
    ✓ @      2143: Set entire platform info: ocf.platform.id is a UUID
    ✓ @      2143: Set entire platform info: ocf.platform.manufacturerName has the expected value
    ✓ @      2145: Test exited successfully (0)
    ✓ @      2145: Test did not segfault
    
    Structure - Server
    ✓ @      2134: server.register is a function
    ✓ @      2134: server.oncreate is a function
    ✓ @      2137: Test exited successfully (0)
    ✓ @      2137: Test did not segfault
    
    Update - Resource
    ✓ @      4804: Server: The first request is 'update'
    ✓ @      4805: Server: 'update' request is directed at the correct resource
    ✓ @      4805: Server: 'update' request contains the expected data
    ✓ @      4805: Server: Successful response to update request
    ✓ @      4960: Client: Updated resource is the discovered resource
    ✓ @      5005: Server: The second request is 'retrieve'
    ✓ @      5005: Server: 'retrieve' request is directed at the correct resource
    ✓ @      5006: Server: Successful response to retrieve request
    ✓ @      5060: Client: Retrieved resouce properties are as expected
    ✓ @      5064: Server exited successfully (null)
    ✓ @      5064: Server did not segfault
    ✓ @      5064: Client exited successfully (0)
    ✓ @      5064: Client did not segfault
    Total assertions: ( 257 ) / 257
    
    Done, without errors.
    
  6. aruneshchandra commented on Mar 1, 2017

    @aruneshchandra
    ContributorAuthor

    Does this mean that the port is 100% complete ?

  7. gabrielschulhof commented on Mar 1, 2017

    @gabrielschulhof
    Collaborator

    Against V8, for sure.

  8. aruneshchandra commented on Mar 9, 2017

    @aruneshchandra
    ContributorAuthor

    Let's open a specific ChakraCore issue and close this after we have verified it with non NAPI version.

  9. aruneshchandra commented on Mar 16, 2017

    @aruneshchandra
    ContributorAuthor

    Closing this - tracking ChakraCore issue with #151

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions