AddressAllocation
|
- |
4 |
should create a new hyperty address
|
- |
|
should create a new data Object address
|
- |
|
should reuse an hyperty url address based on reuse option
|
- |
|
should reuse an hyperty url address based on an given url
|
- |
|
CoreDiscovery
|
- |
7 |
construction
|
- |
1 |
should create a new CoreDiscovery without error
|
- |
|
discoverHyperties()
|
- |
1 |
should conclude the advanced search without error
|
- |
|
discoverDataObjects()
|
- |
1 |
should conclude the advanced search without error
|
- |
|
discoverHypertyPerURL()
|
- |
1 |
should conclude the advanced search without error
|
- |
|
discoverDataObjectPerURL()
|
- |
1 |
should conclude the advanced search without error
|
- |
|
discoverDataObjectsPerName()
|
- |
1 |
should conclude the advanced search without error
|
- |
|
discoverDataObjectsPerReporter()
|
- |
1 |
should conclude the advanced search without error
|
- |
|
dataObjectsStorage
|
- |
12 |
should set dataObject information to be saved on storage
|
- |
|
should set a bundle of information to be saved on storage like reporter
|
- |
|
should set a bundle of information to be saved on storage like observers
|
- |
|
should update a resource with new Hyperty Subscribers
|
- |
|
should update a resource with new Subscriber Users
|
- |
|
should get specific dataObject by hypertyURL
|
- |
|
should get specific dataObject by identity
|
- |
|
should get specific dataObject by schema
|
- |
|
should get specific dataObject by some data
|
- |
|
should delete a specific value from specific resource
|
- |
|
should not delete a resource
|
- |
|
should delete a resource
|
- |
|
Should get configuration and parse to Descriptors
|
- |
4 |
constructor should receive 3 arguments
|
- |
|
should get hyperty
|
- |
|
should get protocolstub
|
- |
|
should get protocolstub
|
- |
|
Graph Connector
|
- |
35 |
construction
|
- |
1 |
create new GraphConnector instance with zero contacts
|
- |
|
create mock address book
|
- |
29 |
create new GraphConnector with random contacts
|
- |
|
remove some contacts from GraphConnector
|
- |
|
setting first and last name of the owner
|
- |
|
test direct contacts bloom filter
|
- |
|
test privacy setting for contacts
|
- |
|
check GUID when in friend-of-friend connection
|
- |
|
setting bloom filter of a given contact
|
- |
|
editing contact (GUID, lname, fname, privacyStatus)
|
- |
|
Adding a groupname to a contact
|
- |
|
Adding and removing groupname to owner
|
- |
|
adding a residenceLocation to a contact and to owner
|
- |
|
getting all contacts with same groupName
|
- |
|
getting all the group names of the user
|
- |
|
removing a groupname of a contact
|
- |
|
removing a residenceLocation
|
- |
|
checking setActive()
|
- |
|
checking setRevoked()
|
- |
|
checking setTimeout()
|
- |
|
get contact by first name
|
- |
|
get contact by last name
|
- |
|
get list of contacts
|
- |
|
Adding user ID to owner
|
- |
|
Removing user ID of the owner
|
- |
|
Guid exists or not
|
- |
|
returning the owner
|
- |
|
adding userID to a contact
|
- |
|
getting userIDs of a contact
|
- |
|
Setting the user Defaults
|
- |
|
bloom filter tests
|
- |
|
GUID
|
- |
2 |
GUID generation
|
- |
|
GUID re-generation
|
- |
|
Global Registry Connection - send
|
- |
1 |
send Global Registry Record
|
- |
|
Global Registry Connection - use GUID
|
- |
1 |
re-use GUID and retrieve data from Global Registry
|
- |
|
Querying Global Registry
|
- |
1 |
query Global Registry
|
- |
|
IdentityModule
|
- |
2 |
constructor()
|
- |
1 |
successfully instantiated
|
- |
|
getIdentitiesToChoose()
|
- |
1 |
should return a list of IdPs and a list of identities previously registered
|
- |
|
MessageBus
|
- |
4 |
sending message
|
- |
|
pipeline msg change
|
- |
|
sending using external system
|
- |
|
publish unique messages
|
- |
|
MiniBus
|
- |
3 |
simple sending message
|
- |
|
send with external response
|
- |
|
send and publish
|
- |
|
PersistenceManager
|
- |
4 |
set
|
- |
1 |
should set the value for a given key-version tuple
|
- |
|
get
|
- |
1 |
should get the value for a given key
|
- |
|
getVersion
|
- |
1 |
should get the value version for a given key
|
- |
|
delete
|
- |
1 |
should remove a value from PersistenceManager for a given key
|
- |
|
Pipeline
|
- |
3 |
fail detected
|
- |
|
deliver detected
|
- |
|
sequence processor
|
- |
|
Policies management
|
- |
20 |
conditions management
|
- |
14 |
creates a simple condition
|
- |
|
returns condition is applicable
|
- |
|
returns condition is not applicable
|
- |
|
creates an advanced condition - "and"
|
- |
|
correctly returns "and" condition is applicable
|
- |
|
correctly returns "and" condition is not applicable
|
- |
|
creates an advanced condition - "or"
|
- |
|
correctly returns "or" condition is applicable
|
- |
|
correctly returns "or" condition is not applicable
|
- |
|
creates an advanced condition - "not"
|
- |
|
correctly returns "not" condition is applicable
|
- |
|
correctly returns "not" condition is not applicable
|
- |
|
correctly returns "and not" condition is not applicable
|
- |
|
correctly returns "or not" condition is applicable
|
- |
|
rules management
|
- |
3 |
creates a simple rule
|
- |
|
evaluates a simple rule to false
|
- |
|
evaluates a simple rule to "Not Applicable"
|
- |
|
policies management
|
- |
3 |
creates a service provider policy
|
- |
|
evaluates a service provider policy to false
|
- |
|
evaluates a service provider policy to "Not Applicable"
|
- |
|
Policy Engine with Runtime Core context
|
- |
28 |
initial filtering
|
- |
1 |
message that loads an hyperty should not be validated by policies
|
- |
|
identity obtention
|
- |
2 |
should add an identity in the message body
|
- |
|
should maintain the identity in the message body
|
- |
|
policies management
|
- |
8 |
adds a service provider policy to the engine
|
- |
|
adds a user policy to the engine
|
- |
|
adds a second user policy to the engine
|
- |
|
removes an existing user policy
|
- |
|
tries to remove a policy that does not exist
|
- |
|
removes all policies
|
- |
|
does not apply rules as it is not its target
|
- |
|
applies a rule as it is its target
|
- |
|
functionality: scheme
|
- |
2 |
rejects the message as it is from a blocked scheme
|
- |
|
allows the message as it comes from a scheme that is not blocked
|
- |
|
functionality: source
|
- |
3 |
rejects the message as it comes from a blocked source
|
- |
|
rejects the message as it comes from a blocked source
|
- |
|
allows the message as it comes from a source that is not blocked
|
- |
|
functionality: domain
|
- |
2 |
rejects the message as it comes from a blocked domain
|
- |
|
allows the message as it comes from a domain that is not blocked
|
- |
|
data objects management
|
- |
4 |
rejects a subscription attempt, as the policy rejects all
|
- |
|
accepts a subscription attempt, as the policy accepts all
|
- |
|
accepts a subscription attempt, as the policy accepts preauthorised subscribers and is preauthorised
|
- |
|
rejects a subscription attempt, as the policy rejects non-preauthorised subscriber and is not preauthorised
|
- |
|
groups management
|
- |
6 |
creates a group
|
- |
|
creates a second group
|
- |
|
adds an email to a group
|
- |
|
adds a second email to a group
|
- |
|
removes a user from a group
|
- |
|
deletes a group
|
- |
|
Registry
|
- |
31 |
constructor()
|
- |
1 |
depends of the MessageBus
|
- |
|
getAppSandbox()
|
- |
1 |
return AppSandbox()
|
- |
|
registerStub(sandBox, domainURL)
|
- |
4 |
should register a stub
|
- |
|
should register a P2P Handler Stub
|
- |
|
should register a P2P Requester Stub
|
- |
|
should discover P2PHandlerStub
|
- |
|
discoverProtostub(url)
|
- |
1 |
should discover a ProtocolStub
|
- |
|
registerPEP(postMessage, hyperty)
|
- |
1 |
should register PEP
|
- |
|
unregisterPEP(HypertyRuntimeURL)
|
- |
1 |
should unregister PEP
|
- |
|
registerHyperty(sandbox, descriptorURL, descriptor)
|
- |
1 |
should register an Hyperty
|
- |
|
getSandbox(url)
|
- |
5 |
should get a sandbox from a domain
|
- |
|
should get a sandbox from a specific hypertyIstance
|
- |
|
should get a sandbox from a specific protostubURL
|
- |
|
should register a anotherdomain protoStub URL
|
- |
|
should get a sandbox from another domain
|
- |
|
resolve(url)
|
- |
1 |
should return a protostub url
|
- |
|
unregisterStub(url)
|
- |
1 |
should unregister a ProtocolStub
|
- |
|
getHypertyOwner(hypertyURL)
|
- |
1 |
should return the user associated to the hyperty URL
|
- |
|
getHypertyName(hypertyURL)
|
- |
1 |
should return the hyperty Name from a given hypertyURL
|
- |
|
registerDataObject(identifier, dataObjectschema, dataObjectUrl, dataObjectReporter, authorise)
|
- |
1 |
should register a new Data Object in the runtime registry
|
- |
|
checkRegisteredURLs(info)
|
- |
5 |
should return a previously registered Hyperty URL
|
- |
|
should return a undefined value if the Hyperty is not previously registered
|
- |
|
should return a previously registered Data Object URL
|
- |
|
should return a undefined value if the dataObjectURL is not previously registered
|
- |
|
should return an hyperty url based on given address
|
- |
|
getReporterURL(dataObjectURL)
|
- |
2 |
should return the reporterURL associated with the dataobject URL
|
- |
|
should not found the reporter the reporterURL associated with the dataobject URL
|
- |
|
getPreAuthSubscribers(dataObjectURL)
|
- |
1 |
should return the list of pre authorised users
|
- |
|
getDataObjectSubscribers(dataObjectURL)
|
- |
1 |
should return the list of pre authorised users
|
- |
|
unregisterHyperty(url)
|
- |
1 |
should unregister an Hyperty
|
- |
|
isLegacy(url)
|
- |
1 |
should return a protostub
|
- |
|
RuntimeUA
|
- |
17 |
constructor()
|
- |
6 |
expects the runtime was ready
|
- |
|
depends of the Registry
|
- |
|
depends of the Identity Module
|
- |
|
depends of the Policy Engine
|
- |
|
depends of the MessageBus
|
- |
|
should throw when given no arguments
|
- |
|
loadHyperty(hypertyDescriptorURL)
|
- |
5 |
should throw when given no arguments
|
- |
|
should be a Promise
|
- |
|
should be deployed
|
- |
|
should load an hyperty based on given true value for the reuse
|
- |
|
should load an hyperty based on given reuse URL address
|
- |
|
loadStub(sp-domain)
|
- |
3 |
should throw when given no arguments
|
- |
|
should be a Promise
|
- |
|
should be deployed
|
- |
|
loadIdpProxy(google.com)
|
- |
3 |
should throw when given no arguments
|
- |
|
should be a Promise
|
- |
|
should be deployed
|
- |
|
Sandbox
|
- |
2 |
deploy and undeploy
|
- |
|
deploy url duplication rejected
|
- |
|
SyncherManager
|
- |
11 |
reporter read
|
- |
|
reporter observer integration
|
- |
|
should resume observers
|
- |
|
should resume reporters
|
- |
|
reporter addChild
|
- |
|
observer addChild
|
- |
|
children deltas generate and process
|
- |
|
create and delete
|
- |
|
subscribe and unsubscribe
|
- |
|
should use the storageManager
|
- |
2 |
should save the url on storageManager
|
- |
|
should resume the url stored on storageManager
|
- |
|
Utils Module
|
- |
2 |
should divide an url in 3 parts (type, domain, identity)
|
- |
|
should return the dataObjectURL identifier
|
- |
|