Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix #1283 disable new config #1343

Merged
merged 2 commits into from
Dec 13, 2024

remove leftover debug prints, that would break on older OS

c90d74c
Select commit
Loading
Failed to load commit list.
Sign in for the full log view
Merged

fix #1283 disable new config #1343

remove leftover debug prints, that would break on older OS
c90d74c
Select commit
Loading
Failed to load commit list.
GitHub Actions / Test Results failed Dec 13, 2024 in 0s

2 fail, 1 skipped, 235 pass in 1m 31s

238 tests   235 ✅  1m 31s ⏱️
  1 suites    1 💤
  1 files      2 ❌

Results for commit c90d74c.

Annotations

Check warning on line 0 in sarracenia.config_test

See this annotation in the file changed.

@github-actions github-actions / Test Results

test_subscription (sarracenia.config_test) failed

tests/junit/test-results.xml [took 0s]
Raw output
AssertionError: assert 2 == 1
 +  where 2 = len([{'broker': <sarracenia.config.credentials.Credential object at 0x7f639efa2f80>, 'bindings': [{'exchange': 'hoho1', 'p...ernal.cloudapp.net_35820640', 'cleanup_needed': None, 'durable': True, 'prefetch': 25, 'bind': True, 'declare': True}}])
 +    where [{'broker': <sarracenia.config.credentials.Credential object at 0x7f639efa2f80>, 'bindings': [{'exchange': 'hoho1', 'p...ernal.cloudapp.net_35820640', 'cleanup_needed': None, 'durable': True, 'prefetch': 25, 'bind': True, 'declare': True}}] = <sarracenia.config.Config object at 0x7f639efa2f50>.subscriptions
def test_subscription():
    
         o = copy.deepcopy(sarracenia.config.default_config())
    
         o.component = 'subscribe'
         o.config = 'ex1'
         o.action = 'start'
         o.no = 1
         before_add=len(o.credentials.credentials)
         o.credentials.add( 'amqp://lapinferoce:etpoilu@localhost' )
         o.credentials.add( 'amqp://capelli:tropcuit@localhost' )
         o.parse_line( o.component, o.config, "subscribe/ex1", 1, "broker amqp://lapinferoce@localhost" )
         o.parse_line( o.component, o.config, "subscribe/ex1", 2, "exchange hoho1" )
    
         assert( o.exchange == "hoho1" )
    
         o.parse_line( o.component, o.config, "subscribe/ex1", 3, "subtopic hoho.#" )
         o.parse_line( o.component, o.config, "subscribe/ex1", 3, "subtopic lala.hoho.#" )
    
         assert( hasattr(o,'subscriptions')  )
>        assert( len(o.subscriptions)==1 )
E        AssertionError: assert 2 == 1
E         +  where 2 = len([{'broker': <sarracenia.config.credentials.Credential object at 0x7f639efa2f80>, 'bindings': [{'exchange': 'hoho1', 'p...ernal.cloudapp.net_35820640', 'cleanup_needed': None, 'durable': True, 'prefetch': 25, 'bind': True, 'declare': True}}])
E         +    where [{'broker': <sarracenia.config.credentials.Credential object at 0x7f639efa2f80>, 'bindings': [{'exchange': 'hoho1', 'p...ernal.cloudapp.net_35820640', 'cleanup_needed': None, 'durable': True, 'prefetch': 25, 'bind': True, 'declare': True}}] = <sarracenia.config.Config object at 0x7f639efa2f50>.subscriptions

tests/sarracenia/config_test.py:336: AssertionError

Check warning on line 0 in sarracenia.flowcb.filter.geometry_test

See this annotation in the file changed.

@github-actions github-actions / Test Results

test_after_accept (sarracenia.flowcb.filter.geometry_test) failed

tests/junit/test-results.xml [took 0s]
Raw output
assert 1 == 2
 +  where 1 = len([{'_format': 'v03', '_deleteOnPost': {'_format'}, 'new_file': '/foo/bar/NewFile.txt', 'new_dir': '/foo/bar', 'geometry': '{"type": "Point", "coordinates": [-76, 39.284]}'}])
 +    where [{'_format': 'v03', '_deleteOnPost': {'_format'}, 'new_file': '/foo/bar/NewFile.txt', 'new_dir': '/foo/bar', 'geometry': '{"type": "Point", "coordinates": [-76, 39.284]}'}] = namespace(ok=[], incoming=[{'_format': 'v03', '_deleteOnPost': {'_format'}, 'new_file': '/foo/bar/NewFile.txt', 'new_d...wFile.txt', 'new_dir': '/foo/bar', 'geometry': '{"type": "LineString", "coordinates": [93, 100]}'}], directories_ok=[]).rejected
def test_after_accept():
        options = sarracenia.config.default_config()
        options.logLevel = 'DEBUG'
    
        # Testing when the config is a polygon
        options.geometry = [features['poly1']]
        geojson = sarracenia.flowcb.filter.geometry.Geometry(options)
    
        worklist = make_worklist()
        #accepted
        worklist.incoming.append(make_message("poly2"))
        worklist.incoming.append(make_message("pointA"))
        #rejected
        worklist.incoming.append(make_message("poly3"))
        worklist.incoming.append(make_message("pointB"))
        #failed
        worklist.incoming.append(make_message("line1"))
    
        geojson.after_accept(worklist)
>       assert len(worklist.rejected) == 2
E       assert 1 == 2
E        +  where 1 = len([{'_format': 'v03', '_deleteOnPost': {'_format'}, 'new_file': '/foo/bar/NewFile.txt', 'new_dir': '/foo/bar', 'geometry': '{"type": "Point", "coordinates": [-76, 39.284]}'}])
E        +    where [{'_format': 'v03', '_deleteOnPost': {'_format'}, 'new_file': '/foo/bar/NewFile.txt', 'new_dir': '/foo/bar', 'geometry': '{"type": "Point", "coordinates": [-76, 39.284]}'}] = namespace(ok=[], incoming=[{'_format': 'v03', '_deleteOnPost': {'_format'}, 'new_file': '/foo/bar/NewFile.txt', 'new_d...wFile.txt', 'new_dir': '/foo/bar', 'geometry': '{"type": "LineString", "coordinates": [93, 100]}'}], directories_ok=[]).rejected

tests/sarracenia/flowcb/filter/geometry_test.py:100: AssertionError

Check notice on line 0 in .github

See this annotation in the file changed.

@github-actions github-actions / Test Results

1 skipped test found

There is 1 skipped test, see "Raw output" for the name of the skipped test.
Raw output
sarracenia.flowcb.retry_test ‑ test_cleanup

Check notice on line 0 in .github

See this annotation in the file changed.

@github-actions github-actions / Test Results

238 tests found

There are 238 tests, see "Raw output" for the full list of tests.
Raw output
sarracenia.__init___test ‑ test_baseUrlParse
sarracenia.__init___test ‑ test_durationToSeconds
sarracenia.__init___test ‑ test_durationToString
sarracenia.__init___test ‑ test_nowflt
sarracenia.__init___test ‑ test_nowstr
sarracenia.__init___test ‑ test_timeValidate
sarracenia.__init___test ‑ test_timeflt2str
sarracenia.__init___test ‑ test_timestr2flt
sarracenia.__init___test ‑ test_timev2tov3str
sarracenia.__init___test.Test_Message ‑ test_computeIdentity
sarracenia.__init___test.Test_Message ‑ test_copyDict
sarracenia.__init___test.Test_Message ‑ test_dumps
sarracenia.__init___test.Test_Message ‑ test_fromFileData
sarracenia.__init___test.Test_Message ‑ test_fromFileInfo
sarracenia.__init___test.Test_Message ‑ test_fromStream
sarracenia.__init___test.Test_Message ‑ test_getContent
sarracenia.__init___test.Test_Message ‑ test_setReport
sarracenia.__init___test.Test_Message ‑ test_updatePaths
sarracenia.__init___test.Test_Message ‑ test_validate
sarracenia.config_test ‑ test_broker_finalize
sarracenia.config_test ‑ test_read_line_add_option
sarracenia.config_test ‑ test_read_line_counts
sarracenia.config_test ‑ test_read_line_declare
sarracenia.config_test ‑ test_read_line_duration
sarracenia.config_test ‑ test_read_line_flags
sarracenia.config_test ‑ test_read_line_floats
sarracenia.config_test ‑ test_read_line_perms
sarracenia.config_test ‑ test_read_line_sets
sarracenia.config_test ‑ test_source_from_exchange
sarracenia.config_test ‑ test_subscription
sarracenia.config_test ‑ test_variableExpansion
sarracenia.diskqueue_test ‑ test___len__
sarracenia.diskqueue_test ‑ test__is_exired__TooLate
sarracenia.diskqueue_test ‑ test__is_exired__TooSoon
sarracenia.diskqueue_test ‑ test_cleanup
sarracenia.diskqueue_test ‑ test_get__Multi
sarracenia.diskqueue_test ‑ test_get__Single
sarracenia.diskqueue_test ‑ test_in_cache
sarracenia.diskqueue_test ‑ test_msgFromJSON
sarracenia.diskqueue_test ‑ test_msgToJSON
sarracenia.diskqueue_test ‑ test_msg_get_from_file
sarracenia.diskqueue_test ‑ test_msg_get_from_file__NoLine
sarracenia.diskqueue_test ‑ test_needs_requeuing
sarracenia.diskqueue_test ‑ test_on_housekeeping
sarracenia.diskqueue_test ‑ test_on_housekeeping__FinishRetry
sarracenia.diskqueue_test ‑ test_put__Multi
sarracenia.diskqueue_test ‑ test_put__Single
sarracenia.flowcb.accept.dateappend_test ‑ test_after_accept
sarracenia.flowcb.accept.delete__accept_test ‑ test___init__
sarracenia.flowcb.accept.delete__accept_test ‑ test_after_accept
sarracenia.flowcb.accept.downloadbaseurl_test ‑ test___init__
sarracenia.flowcb.accept.downloadbaseurl_test ‑ test_after_accept
sarracenia.flowcb.accept.hourtree_test ‑ test_after_accept
sarracenia.flowcb.accept.httptohttps_test ‑ test_after_accept
sarracenia.flowcb.accept.longflow_test ‑ test_after_accept
sarracenia.flowcb.accept.pathreplace_test ‑ test___init__
sarracenia.flowcb.accept.pathreplace_test ‑ test_after_accept
sarracenia.flowcb.accept.pathreplace_test ‑ test_on_start
sarracenia.flowcb.accept.posthourtree_test ‑ test_after_accept
sarracenia.flowcb.accept.postoverride_test ‑ test___init__
sarracenia.flowcb.accept.postoverride_test ‑ test_after_accept
sarracenia.flowcb.accept.printlag_test ‑ test_after_accept
sarracenia.flowcb.accept.rename4jicc_test ‑ test___init__
sarracenia.flowcb.accept.rename4jicc_test ‑ test_after_accept
sarracenia.flowcb.accept.renamedmf_test ‑ test___init__
sarracenia.flowcb.accept.renamedmf_test ‑ test_after_accept
sarracenia.flowcb.accept.renamewhatfn_test ‑ test___init__
sarracenia.flowcb.accept.renamewhatfn_test ‑ test_after_accept
sarracenia.flowcb.accept.save_test ‑ test___init__
sarracenia.flowcb.accept.save_test ‑ test_after_accept
sarracenia.flowcb.accept.speedo_test ‑ test___init__
sarracenia.flowcb.accept.speedo_test ‑ test_after_accept
sarracenia.flowcb.accept.sundowpxroute_test ‑ test___init__
sarracenia.flowcb.accept.sundowpxroute_test ‑ test_after_accept
sarracenia.flowcb.accept.testretry_test ‑ test___init__
sarracenia.flowcb.accept.testretry_test ‑ test_after_accept
sarracenia.flowcb.accept.toclusters_test ‑ test___init__
sarracenia.flowcb.accept.toclusters_test ‑ test_after_accept
sarracenia.flowcb.accept.tolocalfile_test ‑ test___init__
sarracenia.flowcb.accept.tolocalfile_test ‑ test_after_accept
sarracenia.flowcb.accept.trim_legacy_fields_test ‑ test_after_accept
sarracenia.flowcb.accept.wmotypesuffix_test ‑ test___find_type[D_-.grib]
sarracenia.flowcb.accept.wmotypesuffix_test ‑ test___find_type[E_-.bin]
sarracenia.flowcb.accept.wmotypesuffix_test ‑ test___find_type[G_-.grid]
sarracenia.flowcb.accept.wmotypesuffix_test ‑ test___find_type[H_-.grib]
sarracenia.flowcb.accept.wmotypesuffix_test ‑ test___find_type[IX-.hdf]
sarracenia.flowcb.accept.wmotypesuffix_test ‑ test___find_type[I_-.bufr]
sarracenia.flowcb.accept.wmotypesuffix_test ‑ test___find_type[K_-.crex]
sarracenia.flowcb.accept.wmotypesuffix_test ‑ test___find_type[LT-.iwxxm]
sarracenia.flowcb.accept.wmotypesuffix_test ‑ test___find_type[L_-.grib]
sarracenia.flowcb.accept.wmotypesuffix_test ‑ test___find_type[O_-.grib]
sarracenia.flowcb.accept.wmotypesuffix_test ‑ test___find_type[P_-.bin]
sarracenia.flowcb.accept.wmotypesuffix_test ‑ test___find_type[Q_-.bin]
sarracenia.flowcb.accept.wmotypesuffix_test ‑ test___find_type[R_-.bin]
sarracenia.flowcb.accept.wmotypesuffix_test ‑ test___find_type[XW-.txt]
sarracenia.flowcb.accept.wmotypesuffix_test ‑ test___find_type[X_-.cap]
sarracenia.flowcb.accept.wmotypesuffix_test ‑ test___find_type[Y_-.grib]
sarracenia.flowcb.accept.wmotypesuffix_test ‑ test___find_type[__-.txt]
sarracenia.flowcb.accept.wmotypesuffix_test ‑ test_after_accept
sarracenia.flowcb.filter.geometry_test ‑ test___init__
sarracenia.flowcb.filter.geometry_test ‑ test_after_accept
sarracenia.flowcb.filter.wmo00_test ‑ test___init__
sarracenia.flowcb.filter.wmo00_test ‑ test_after_accept
sarracenia.flowcb.filter.wmo00_test ‑ test_open_accumulated_file
sarracenia.flowcb.gather.am__gather_test ‑ test_SM_bulletin
sarracenia.flowcb.gather.am__gather_test ‑ test_SM_bulletin_with_BBB
sarracenia.flowcb.gather.am__gather_test ‑ test_am_binary_bulletin
sarracenia.flowcb.gather.am__gather_test ‑ test_bulletin_double_linesep
sarracenia.flowcb.gather.am__gather_test ‑ test_bulletin_header_five_fileds
sarracenia.flowcb.gather.am__gather_test ‑ test_bulletin_header_six_fileds
sarracenia.flowcb.gather.am__gather_test ‑ test_bulletin_header_trailing_space
sarracenia.flowcb.gather.am__gather_test ‑ test_bulletin_invalid_timestamp
sarracenia.flowcb.gather.am__gather_test ‑ test_bulletin_timestamp_6chars_plus
sarracenia.flowcb.gather.am__gather_test ‑ test_bulletin_wrong_station
sarracenia.flowcb.gather.am__gather_test ‑ test_cacn_erronous
sarracenia.flowcb.gather.am__gather_test ‑ test_cacn_regular
sarracenia.flowcb.gather.am__gather_test ‑ test_random_bulletin_with_BBB
sarracenia.flowcb.nodupe.__nodupe___test ‑ test_after_accept
sarracenia.flowcb.nodupe.__nodupe___test ‑ test_after_accept__InFlight
sarracenia.flowcb.nodupe.__nodupe___test ‑ test_after_accept__WithFileAges
sarracenia.flowcb.nodupe.__nodupe___test ‑ test_on_housekeeping
sarracenia.flowcb.nodupe.__nodupe___test ‑ test_restart
sarracenia.flowcb.nodupe.data_test ‑ test_after_accept
sarracenia.flowcb.nodupe.disk_test ‑ test__not_in_cache
sarracenia.flowcb.nodupe.disk_test ‑ test_after_accept
sarracenia.flowcb.nodupe.disk_test ‑ test_after_accept__InFlight
sarracenia.flowcb.nodupe.disk_test ‑ test_after_accept__WithFileAges
sarracenia.flowcb.nodupe.disk_test ‑ test_check_message
sarracenia.flowcb.nodupe.disk_test ‑ test_clean
sarracenia.flowcb.nodupe.disk_test ‑ test_clean__Persist_DelPath
sarracenia.flowcb.nodupe.disk_test ‑ test_close
sarracenia.flowcb.nodupe.disk_test ‑ test_close__ErrorThrown
sarracenia.flowcb.nodupe.disk_test ‑ test_close__Unlink
sarracenia.flowcb.nodupe.disk_test ‑ test_close__Unlink_ErrorThrown
sarracenia.flowcb.nodupe.disk_test ‑ test_deriveKey
sarracenia.flowcb.nodupe.disk_test ‑ test_on_housekeeping
sarracenia.flowcb.nodupe.disk_test ‑ test_on_start
sarracenia.flowcb.nodupe.disk_test ‑ test_on_stop
sarracenia.flowcb.nodupe.disk_test ‑ test_open__WithData
sarracenia.flowcb.nodupe.disk_test ‑ test_open__WithFile
sarracenia.flowcb.nodupe.disk_test ‑ test_open__WithoutFile
sarracenia.flowcb.nodupe.disk_test ‑ test_save
sarracenia.flowcb.nodupe.disk_test ‑ test_save__Open_Error
sarracenia.flowcb.nodupe.disk_test ‑ test_save__Unlink_Error
sarracenia.flowcb.nodupe.name_test ‑ test_after_accept
sarracenia.flowcb.nodupe.redis_test ‑ test__deriveKey
sarracenia.flowcb.nodupe.redis_test ‑ test__is_new
sarracenia.flowcb.nodupe.redis_test ‑ test_after_accept
sarracenia.flowcb.nodupe.redis_test ‑ test_after_accept__InFlight
sarracenia.flowcb.nodupe.redis_test ‑ test_after_accept__WithFileAges
sarracenia.flowcb.nodupe.redis_test ‑ test_on_housekeeping
sarracenia.flowcb.nodupe.redis_test ‑ test_on_start
sarracenia.flowcb.nodupe.redis_test ‑ test_on_stop
sarracenia.flowcb.retry_test ‑ test_after_accept
sarracenia.flowcb.retry_test ‑ test_after_accept__SmallQty
sarracenia.flowcb.retry_test ‑ test_after_post
sarracenia.flowcb.retry_test ‑ test_after_work
sarracenia.flowcb.retry_test ‑ test_after_work__SmallQty
sarracenia.flowcb.retry_test ‑ test_after_work__WLFailed
sarracenia.flowcb.retry_test ‑ test_cleanup
sarracenia.flowcb.retry_test ‑ test_metricsReport
sarracenia.flowcb.retry_test ‑ test_on_housekeeping
sarracenia.flowcb.scheduled.__scheduled___test ‑ test_schedules
sarracenia.identity.__identity___test ‑ test___Property_value
sarracenia.identity.__identity___test ‑ test_factory
sarracenia.identity.__identity___test ‑ test_get_method
sarracenia.identity.__identity___test ‑ test_update_file
sarracenia.identity.arbitrary_test ‑ test___Property_value
sarracenia.identity.arbitrary_test ‑ test___init__
sarracenia.identity.arbitrary_test ‑ test_registered_as
sarracenia.identity.arbitrary_test ‑ test_set_path
sarracenia.identity.arbitrary_test ‑ test_update
sarracenia.identity.md5_test ‑ test_registered_as
sarracenia.identity.md5_test ‑ test_set_path
sarracenia.identity.md5_test ‑ test_update
sarracenia.identity.random_test ‑ test___Property_value
sarracenia.identity.random_test ‑ test_registered_as
sarracenia.identity.random_test ‑ test_set_path
sarracenia.identity.sha512_test ‑ test_registered_as
sarracenia.identity.sha512_test ‑ test_set_path
sarracenia.identity.sha512_test ‑ test_update
sarracenia.interruptible_sleep_test ‑ test_interruptible_sleep
sarracenia.redisqueue_test ‑ test___len__
sarracenia.redisqueue_test ‑ test__in_cache
sarracenia.redisqueue_test ‑ test__is_exired__TooLate
sarracenia.redisqueue_test ‑ test__is_exired__TooSoon
sarracenia.redisqueue_test ‑ test__lpop
sarracenia.redisqueue_test ‑ test__msgFromJSON
sarracenia.redisqueue_test ‑ test__msgToJSON
sarracenia.redisqueue_test ‑ test__needs_requeuing
sarracenia.redisqueue_test ‑ test_cleanup
sarracenia.redisqueue_test ‑ test_get__Locked
sarracenia.redisqueue_test ‑ test_get__NotLocked_Multi
sarracenia.redisqueue_test ‑ test_get__NotLocked_Single
sarracenia.redisqueue_test ‑ test_on_housekeeping
sarracenia.redisqueue_test ‑ test_on_housekeeping__FinishRetry
sarracenia.redisqueue_test ‑ test_on_housekeeping__TooSoon
sarracenia.redisqueue_test ‑ test_put__Multi
sarracenia.redisqueue_test ‑ test_put__Single
sarracenia.transfer.__transfer___test ‑ test___init__
sarracenia.transfer.__transfer___test ‑ test_factory
sarracenia.transfer.azure_test ‑ test___credentials
sarracenia.transfer.azure_test ‑ test___init__
sarracenia.transfer.azure_test ‑ test_cd
sarracenia.transfer.azure_test ‑ test_cd_forced
sarracenia.transfer.azure_test ‑ test_check_is_connected
sarracenia.transfer.azure_test ‑ test_chmod
sarracenia.transfer.azure_test ‑ test_close
sarracenia.transfer.azure_test ‑ test_connect
sarracenia.transfer.azure_test ‑ test_delete
sarracenia.transfer.azure_test ‑ test_get
sarracenia.transfer.azure_test ‑ test_getcwd
sarracenia.transfer.azure_test ‑ test_gethttpsUrl
sarracenia.transfer.azure_test ‑ test_ls
sarracenia.transfer.azure_test ‑ test_mkdir
sarracenia.transfer.azure_test ‑ test_put
sarracenia.transfer.azure_test ‑ test_registered_as
sarracenia.transfer.azure_test ‑ test_rename
sarracenia.transfer.azure_test ‑ test_rmdir
sarracenia.transfer.azure_test ‑ test_umask
sarracenia.transfer.s3_test ‑ test___credentials
sarracenia.transfer.s3_test ‑ test___init__
sarracenia.transfer.s3_test ‑ test_cd
sarracenia.transfer.s3_test ‑ test_cd_forced
sarracenia.transfer.s3_test ‑ test_check_is_connected
sarracenia.transfer.s3_test ‑ test_chmod
sarracenia.transfer.s3_test ‑ test_close
sarracenia.transfer.s3_test ‑ test_connect
sarracenia.transfer.s3_test ‑ test_delete
sarracenia.transfer.s3_test ‑ test_get
sarracenia.transfer.s3_test ‑ test_getcwd
sarracenia.transfer.s3_test ‑ test_ls
sarracenia.transfer.s3_test ‑ test_mkdir
sarracenia.transfer.s3_test ‑ test_put
sarracenia.transfer.s3_test ‑ test_registered_as
sarracenia.transfer.s3_test ‑ test_rename
sarracenia.transfer.s3_test ‑ test_rmdir
sarracenia.transfer.s3_test ‑ test_umask