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

Remove zone serialnumber from test output. #189

Merged

Conversation

terjekv
Copy link
Collaborator

@terjekv terjekv commented Dec 11, 2023

  • When the serial number for zones is created (https://github.com/unioslo/mreg/blob/master/mreg/utils.py#L78) it is created as a "10-digit serialnumber in 3YYMMDDXXX format".
  • It's hard to mock this as it comes from the server and it's not like we're in a pytest environment with the ci runs here.
  • We would need to say something like "run this entire cli session as if the date and time was as follows", and outside of modifying the cli itself (it's an insane thing to offer as an option), we'd have to modify the runtime environment (ie, the container), but that would break SSL and its friends...
  • So, in short, we remove Serialnumber from the test output...

  - When the serial number for zones is created (https://github.com/unioslo/mreg/blob/master/mreg/utils.py#L78) it is created with as a "10-digit serialnumber in 3YYMMDDXXX format".
  - It's hard to mock this as it comes from the server and it's not like we're in a pytest environment with the ci runs here.
  - We would need to say something like "run this entire cli session as if the date and time was as follows", and outside of modifying the cli itself (it's an insane thing to offer as an option), we'd have to modify the runtime environment (ie, the container), but that would break SSL and its friends...
  - So, in short, we remove Serialnumber from the test output...
@terjekv terjekv self-assigned this Dec 11, 2023
@terjekv terjekv requested review from pederhan and ponas December 11, 2023 14:46
Copy link
Member

@pederhan pederhan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@pederhan pederhan merged commit f643c2a into unioslo:master Dec 12, 2023
11 checks passed
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