Skip to content

Conversation

@FragmentedPacket
Copy link
Contributor

Fixes #167

  • Allow username to not be mandatory any longer by removing the if statement to add the credentials.
  • The default for username was an empty string, which was being added to Infrahub as an empty string rather than null and was causing auth issues on initial sync. Default changed from empty string to None.
  • Added unit testing around infrahubctl repostory CLI app.

@codecov
Copy link

codecov bot commented Dec 11, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

@@             Coverage Diff             @@
##           develop     #172      +/-   ##
===========================================
+ Coverage    65.46%   66.22%   +0.76%     
===========================================
  Files           76       76              
  Lines         6992     7031      +39     
  Branches      1382     1388       +6     
===========================================
+ Hits          4577     4656      +79     
+ Misses        2039     1991      -48     
- Partials       376      384       +8     
Flag Coverage Δ
python-3.10 45.07% <100.00%> (+0.64%) ⬆️
python-3.11 45.07% <100.00%> (+0.64%) ⬆️
python-3.12 45.07% <100.00%> (+0.64%) ⬆️
python-3.13 45.07% <100.00%> (+0.64%) ⬆️
python-3.9 44.15% <100.00%> (+0.62%) ⬆️
python-filler-3.12 23.95% <0.00%> (+0.09%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
infrahub_sdk/ctl/repository.py 73.58% <100.00%> (+16.98%) ⬆️

... and 6 files with indirect coverage changes

@FragmentedPacket FragmentedPacket merged commit 3bf1c5c into develop Dec 13, 2024
13 checks passed
@FragmentedPacket FragmentedPacket deleted the may-202412-167-gitlab-un branch December 13, 2024 16:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug: Allow infrahubctl repository add without username to support GitLab private instances where only token is needed

3 participants