summaryrefslogtreecommitdiff
path: root/src/credential/test_credential_bi_and2.sh
Commit message (Collapse)AuthorAge
* Renamed credential service to abd, replaced all related functions, ↵Andreas Ebner2019-10-07
| | | | parameters, etc
* Test cleanup/fix:Andreas Ebner2019-10-07
| | | | | - added missing "- -" to collect for macOS - replaced 'import $SIGNED' with 'import=$SIGNED' to match all other parameters and better visibility
* Cleanup TODOs, bugfix in cleanup and start of bidirectional chain resolution:Andreas Ebner2019-10-07
| | | | | | | - removed and/or implemented all remaining TODOs - fixed a bug in cleanup_handle() which caused to not cleanup correctly when a solution was prematurely found - delegation_chain_bw/fw_resolution_start() not has a return value to indicate whether a solution was prematurely found - cleaned up the test_... files (an additional cleanup commit might follow)
* Bugfixes, changed test reporting behavior, modified intermediate result ↵Andreas Ebner2019-10-07
| | | | | | | | | reporting: - fixed a memory error when serializing the delegations - all tests now handle the returned error code from the gnunet-credential.c via "ret" variable - intermediate reporting excluded during collect message - intermediate reporting now contains the direction (bw/fw)
* Cleanup and fixes regarding bidirectional search and the test.sh files:Andreas Ebner2019-10-07
| | | | | | | | | | | | - removed set_entries_head/tail from DQ entry (no longer needed, using vrh->dsq_head/tail for everything) - removed no longer required vrh->root_set (not working with forward search anyways as there are multiple root sets) - implemented cleanup for the dq entries in the queue_entries_head list of ds entries - added the part in cleanup handling the subject_attribute/_len to might help solve the last valgrind error (didnt work) - changed the way the ds_entry are inserted in the vrh->dsq_.. list: Now after creation of EVERY ds_entry it is inserted --> This solved an error resulting from uncanceled lookup_response handles - changed the test_credential...bi..sh files: + "- -" at the end of the collect statement, required for MacOS + fixed cleanup at the end to correctly remove entries from GNS
* Bidirectional implementation finished, more complex tests for bidirectional, ↵Andreas Ebner2019-10-07
cleanup fix, todos done: - fixed cleanup to not cause errors and uncommented it again - added new tests for AND, linked roles and fw/bw - fixed an older bug to make test ..own_and2.sh work - replaced bidirectional matching of bw with unresolved_attribute.. (because it contains all the subject attributes/roles) - introduced extra function for bidirectional match handling (is the same for bw and fw and pretty long) - commandline: if not specified to use bw or fw search -> assume it's bidirectional - moved the bidirecitonal matching list to vrh and removed it from being global - valgrind on service (one error remaining, to be solved in future commits) - use the vrh->dsq_head/tail for the cleanup stuff