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

tests: basic login test #24

Merged
merged 1 commit into from
Mar 8, 2024
Merged

tests: basic login test #24

merged 1 commit into from
Mar 8, 2024

Conversation

robvdl
Copy link
Member

@robvdl robvdl commented Mar 8, 2024

Requires new environment variable only needed for testing.

  • SAMBAL_SAMBA_HOST
  • SAMBAL_SAMBA_USERNAME
  • SAMBAL_SAMBA_PASSWORD
  • SAMBAL_SAMBA_REALM

They are loaded from environment variable so no secrets are put into the code.

The csrf token is read from the from using HTMLParser which turned out to be a nice and simple solution for extracting these actually, and didn't require any additional libraries.

Requires new environment variable only needed for testing.

* SAMBAL_SAMBA_HOST
* SAMBAL_SAMBA_USERNAME
* SAMBAL_SAMBA_PASSWORD
* SAMBAL_SAMBA_REALM

They are loaded from environment variable so no secrets are put into the code.

The csrf token is read from the from using HTMLParser which turned out to be a nice and simple solution for extracting these actually, and didn't require any additional libraries.
@robvdl robvdl merged commit d65ea3e into master Mar 8, 2024
1 check passed
@robvdl robvdl deleted the test-login branch March 8, 2024 00:23
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.

1 participant