Skip to content
New issue

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

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

Already on GitHub? # to your account

Remove UnitTestConfig::array_encryption_key_length #4482

Merged
merged 1 commit into from
Nov 2, 2023

Conversation

davisp
Copy link
Contributor

@davisp davisp commented Nov 2, 2023

This field existed to force invalid key lengths. This is unnecessary since we can just set the invalid key lengths in the test. The reason I stopped to remove this is because the test state is improperly persisted between unit tests. If you run tiledb_unit -d y [capi][encryption] it will fail because the UnitTestConfig is not reset.

It took me so long to debug this issue that I decided to light it on fire and just remove the whole global state and write the tests properly.


TYPE: IMPROVEMENT
DESC: Remove UnitTestConfig::array_encryption_key_length

Copy link

This pull request has been linked to Shortcut Story #36397: Remove UnitTestConfig::array_encryption_key_length.

@davisp davisp force-pushed the pd/sc-36397/remove-unit-test-config-enc-key-len branch 2 times, most recently from 2608659 to ee44449 Compare November 2, 2023 17:57
This field existed to force invalid key lengths. This is unnecessary
since we can just set the invalid key lengths in the test. The reason I
stopped to remove this is because the test state is improperly persisted
between unit tests. If you run `tiledb_unit -d y [capi][encryption]` it
will fail because the UnitTestConfig is not reset.

It took me so long to debug this issue that I decided to light it on
fire and just remove the whole global state and write the tests
properly.
@davisp davisp force-pushed the pd/sc-36397/remove-unit-test-config-enc-key-len branch from ee44449 to 6c24053 Compare November 2, 2023 17:59
@KiterLuc KiterLuc merged commit 836f981 into dev Nov 2, 2023
55 checks passed
@KiterLuc KiterLuc deleted the pd/sc-36397/remove-unit-test-config-enc-key-len branch November 2, 2023 19:45
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants