-
Notifications
You must be signed in to change notification settings - Fork 4
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
Make createuser work for new installations and add basic coverage. #120
Open
albu-diku
wants to merge
11
commits into
edge
Choose a base branch
from
fix/createuser-py3
base: edge
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
albu-diku
force-pushed
the
fix/make-hash-py3
branch
2 times, most recently
from
October 7, 2024 09:12
deb99dd
to
787f546
Compare
albu-diku
force-pushed
the
fix/createuser-py3
branch
from
October 7, 2024 09:55
ecd8bb7
to
4a74e13
Compare
albu-diku
force-pushed
the
fix/createuser-py3
branch
2 times, most recently
from
October 8, 2024 10:12
7cb4801
to
298dc07
Compare
albu-diku
force-pushed
the
fix/createuser-py3
branch
2 times, most recently
from
November 2, 2024 10:57
ebbcebd
to
9720921
Compare
Import the experimental branch version of force_utf8 wholesale adding a -py(2|3) suffix and expose the correct implementation dependent on PY2. Include forcing InputException messages to a native string as is done in experimental (also taken directly from that branch) which ensures the exception message, which may be unicode, becomes a string everywhere.
albu-diku
force-pushed
the
fix/createuser-py3
branch
from
November 11, 2024 18:22
9720921
to
ff2f5cb
Compare
A previous revision fixed an immediate problem with test path handling but knowingly left some things on the table - in particular a split between container based handling of Python 2 and the local execution of Python 3 (meaning a potentially inconsistent version relative to what the project considers officially supported). Address this entirely: rework the default behaviour of `make test` to container based execution and use a consistent baseline Python 3. In order to continue to support rapid local iteration, provide a separate `make unittest` target which will execute the test suite locally and is also used as a mechanism to run other supporting tools. The clean use of containers necessitated various changes that make path arguments within the testconfig non-overlapping and better isolated. Adjust all paths generated within the test suite to be always from the base root instead of relative the output directory. Opt to patch the makeconfig generator rather than fiddle with generateconfs again. While here also add support for an environment variable overried that allows execution of the test suite against arbitrary python 3 versions.
Allow user creation to provision the directries necessary for user creation to succeed in addition to the database file itself given the state that exists after config generation is run to completion for a new installation. Cover the very basic operation of createuser ensuring that a user db and lock file are correctly create upon a call to create a test user.
albu-diku
force-pushed
the
fix/createuser-py3
branch
from
November 12, 2024 08:07
ff2f5cb
to
47ff7f3
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Allow user creation to provision the user_db_home directory as well as the file itself which is the situation after config generation is run to completion for a new installation.
Cover the very asic operation of createuser ensuring that a user db and lock file are correctly create upon a call to create a test user.
Depends on: #140
Depends on: #134