Skip to content

msipid tests are not being run.

There are tests for the msipid integration. They are not being run. It would be nice to add them to be executed.

  • set parameters
export prefix=21.T12996
export url_prefix_in_profile='true'
  • run test:
./testB2SafeCmd.py -test msipid
Test msiPid Script
test_create_handle (testB2SafeCmd.msipidintgtest.MsiPidIntegrationTests)
Test that create handle returns expected response and adds new handle. ... ERROR
test_create_handle_with_checksum (testB2SafeCmd.msipidintgtest.MsiPidIntegrationTests)
Test that create handle with checksum returns expected response and adds new handle with supplied checksum. ... ok
test_create_handle_with_extra_key (testB2SafeCmd.msipidintgtest.MsiPidIntegrationTests)
Test that create handle with extra key returns expected response and adds new handle with supplied key value. ... ok
test_create_handle_with_extra_key_FIO_PID (testB2SafeCmd.msipidintgtest.MsiPidIntegrationTests)
Test that create handle with extra key EUDAT/FIO and value 'PID' returns expected response and adds new handle with supplied key value. ... ok
test_create_handle_with_extra_key_FIO_real_pid (testB2SafeCmd.msipidintgtest.MsiPidIntegrationTests)
Test that create handle with extra key EUDAT/FIO returns expected response and adds new handle with supplied key value. ... ok
test_create_handle_with_extra_key_ROR_pid (testB2SafeCmd.msipidintgtest.MsiPidIntegrationTests)
Test that create handle with extra key EUDAT/ROR and value 'pid' returns expected response and adds new handle with supplied key value. ... ok
test_create_handle_with_extra_key_ROR_real_pid (testB2SafeCmd.msipidintgtest.MsiPidIntegrationTests)
Test that create handle with extra key EUDAT/ROR returns expected response and adds new handle with supplied key value. ... ok
test_delete_handle (testB2SafeCmd.msipidintgtest.MsiPidIntegrationTests)
Test that delete existing handle returns 0. ... ok
test_delete_key_from_handle (testB2SafeCmd.msipidintgtest.MsiPidIntegrationTests)
Test that delete key from handle returns 0. ... ok
test_delete_non_existing_handle (testB2SafeCmd.msipidintgtest.MsiPidIntegrationTests)
Test that delete non existing handle returns -1090000. ... ok
test_modify_handle_key_value_1 (testB2SafeCmd.msipidintgtest.MsiPidIntegrationTests)
Test that modify handle value returns handle and updates stored value. ... ok
test_modify_handle_key_value_2 (testB2SafeCmd.msipidintgtest.MsiPidIntegrationTests)
Test that modify handle value returns handle and updates stored value. ... ok
test_modify_handle_key_value_3 (testB2SafeCmd.msipidintgtest.MsiPidIntegrationTests)
Test that modify handle value returns handle and updates stored value. ... ok
test_modify_handle_new_key_value_1 (testB2SafeCmd.msipidintgtest.MsiPidIntegrationTests)
Test that modify existing handle with new key-value pair returns 0 and updates stored handle. ... ok
test_modify_handle_new_key_value_2 (testB2SafeCmd.msipidintgtest.MsiPidIntegrationTests)
Test that modify existing handle with new key-value pair returns 0 and updates stored handle. ... ok
test_modify_handle_new_key_value_3 (testB2SafeCmd.msipidintgtest.MsiPidIntegrationTests)
Test that modify existing handle with new key-value pair returns 0 and updates stored handle. ... ok
test_modify_handle_new_key_value_4 (testB2SafeCmd.msipidintgtest.MsiPidIntegrationTests)
Test that modify existing handle with new key-value pair returns 0 and updates stored handle. ... ok
test_modify_handle_new_key_value_5 (testB2SafeCmd.msipidintgtest.MsiPidIntegrationTests)
Test that modify existing handle with new key-value pair returns 0 and updates stored handle. ... ok
test_modify_handle_with_empty_value (testB2SafeCmd.msipidintgtest.MsiPidIntegrationTests)
Test that modify existing handle key with empty value returns 0 and updates stored value accordingly. ... ok
test_modify_non_existing_handle (testB2SafeCmd.msipidintgtest.MsiPidIntegrationTests)
Test that modify value of non existing handle returns -1090000. ... ok
test_read_non_existing_handle (testB2SafeCmd.msipidintgtest.MsiPidIntegrationTests)
Test that read non existing handle returns -1090000. ... ok
test_read_non_existing_value_from_handle (testB2SafeCmd.msipidintgtest.MsiPidIntegrationTests)
Test that read value by non existing key returns -1090000. ... ok
test_read_value_from_handle (testB2SafeCmd.msipidintgtest.MsiPidIntegrationTests)
Test that read value by key returns stored handle value. ... ok
test_read_value_from_non_existing_handle (testB2SafeCmd.msipidintgtest.MsiPidIntegrationTests)
Test that read value by key from non existing handle returns -1090000. ... ok
test_search_handle_by_key_value (testB2SafeCmd.msipidintgtest.MsiPidIntegrationTests)
Test that search by key-value returns matching handle. ... FAIL
test_search_handle_by_non_existing_key_value (testB2SafeCmd.msipidintgtest.MsiPidIntegrationTests)
Test that search handle by non existing key-value returns ''. ... ok

======================================================================
ERROR: test_create_handle (testB2SafeCmd.msipidintgtest.MsiPidIntegrationTests)
Test that create handle returns expected response and adds new handle.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/robertv/git/B2SAFE-core/scripts/tests/testB2SafeCmd/msipidintgtest.py", line 339, in test_create_handle
    self.assertEqual(unicode(create_result[1]).lower(), lookup_result[1].lower(),
IndexError: list index out of range

======================================================================
FAIL: test_search_handle_by_key_value (testB2SafeCmd.msipidintgtest.MsiPidIntegrationTests)
Test that search by key-value returns matching handle.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/robertv/git/B2SAFE-core/scripts/tests/testB2SafeCmd/msipidintgtest.py", line 259, in test_search_handle_by_key_value
    'search existing handle by key returns unexpected response')
AssertionError: search existing handle by key returns unexpected response

----------------------------------------------------------------------
Ran 26 tests in 31.375s