Skip to content

e2e-tests: Add tests for allowed_users broker property#1469

Open
nooreldeenmansour wants to merge 5 commits intomainfrom
e2e-tests-allowed-users
Open

e2e-tests: Add tests for allowed_users broker property#1469
nooreldeenmansour wants to merge 5 commits intomainfrom
e2e-tests-allowed-users

Conversation

@nooreldeenmansour
Copy link
Copy Markdown
Member

@nooreldeenmansour nooreldeenmansour commented Apr 16, 2026

Add tests for the following scenarios:

  • allowed_users is set to OWNER and the owner is set to the test user (login successful)
  • allowed_users is set to OWNER and owner is explicitly set to an empty value (login denied)
  • allowed_users is set to user and login with that user (login successful)
  • allowed_users set to a specific user and login with a different user (login denied)
  • allowed_users is set to to ALL (login successful)

UDENG-9543
UDENG-9544
UDENG-9545
UDENG-9546
UDENG-9547

@nooreldeenmansour nooreldeenmansour changed the title e2e-tests: Add tests for allowed_users broker config property e2e-tests: Add tests for allowed_users broker property Apr 16, 2026
@codecov
Copy link
Copy Markdown

codecov bot commented Apr 16, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 86.94%. Comparing base (0343a33) to head (02dc55e).
⚠️ Report is 10 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1469      +/-   ##
==========================================
+ Coverage   80.48%   86.94%   +6.46%     
==========================================
  Files          20       93      +73     
  Lines        1030     6366    +5336     
  Branches        0      111     +111     
==========================================
+ Hits          829     5535    +4706     
- Misses        201      775     +574     
- Partials        0       56      +56     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@nooreldeenmansour nooreldeenmansour force-pushed the e2e-tests-allowed-users branch 2 times, most recently from 3a25d0d to 5034c2d Compare April 16, 2026 17:29
@nooreldeenmansour
Copy link
Copy Markdown
Member Author

Any idea why the provisioning ci jobs are failing?

This my third time doing a force push to trigger CI

@adombeck
Copy link
Copy Markdown
Contributor

Any idea why the provisioning ci jobs are failing?

This my third time doing a force push to trigger CI

The Ubuntu archive is having issues today

@adombeck
Copy link
Copy Markdown
Contributor

https://status.canonical.com/

@nooreldeenmansour nooreldeenmansour force-pushed the e2e-tests-allowed-users branch 2 times, most recently from b07f13c to caf67c7 Compare April 17, 2026 10:32
@nooreldeenmansour
Copy link
Copy Markdown
Member Author

The archive is operational now, but the CI jobs is failing because the broker snaps are failing to build. Probably related to #1470

Test that a user set as broker owner can log in successfully when
`allowed_users` is configured to `OWNER `and the configuration remains
unchanged after login
Test that login fails with permission denied when `allowed_users` is set
to `OWNER` but `owner` is explicitly set to an empty value, since no user
can match an empty owner.
Test that a remote user can log in successfully when `allowed_users` is configured to `ALL` and the configuration remains unchanged after login.
Test that a remote user can log in successfully when `allowed_users` is configured to the user name used for login and the configuration remains unchanged after login.
Test that login fails with permission denied when `allowed_users` is set to a different user than the one attempting to log in.
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.

2 participants