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

chore: write tests for ArchivalDNSLookupResult #1326

Merged
merged 1 commit into from
Sep 28, 2023
Merged

Conversation

bassosimone
Copy link
Contributor

My aim here is to have marshal/unmarshal tests for all the toplevel data structures inside the internal/model/archival.go file.

Once I have done that, I can have additional confidence about changing the structure fields and simplifying the code.

All of this is preparatory work to automatically scrub HTTP measurements which is something we should really do before continuing to improve the boostrap process in light of ooni/probe#2531.

I have also added currently skipped tests for other structures as placeholder, but I did not want to submit a too large PR, hence for now we will just have tests for ArchivalDNSLookupResult. More PRs will follow and they will add additional unit tests.

My aim here is to have marshal/unmarshal tests for all the toplevel
data structures inside the internal/model/archival.go file.

Once I have done that, I can have additional confidence about changing
the structure fields and simplifying the code.

All of this is preparatory work to automatically scrub HTTP measurements
which is something we should really do before continuing to improve
the boostrap process in light of ooni/probe#2531.

I have also added currently skipped tests for other structures as
placeholder, but I did not want to submit a too large PR, hence for
now we will just have tests for ArchivalDNSLookupResult. More PRs
will follow and they will add additional unit tests.
@bassosimone bassosimone merged commit 40c88e2 into master Sep 28, 2023
6 checks passed
@bassosimone bassosimone deleted the issue/2531 branch September 28, 2023 14:28
Murphy-OrangeMud pushed a commit to Murphy-OrangeMud/probe-cli that referenced this pull request Feb 13, 2024
My aim here is to have marshal/unmarshal tests for all the toplevel data
structures inside the internal/model/archival.go file.

Once I have done that, I can have additional confidence about changing
the structure fields and simplifying the code.

All of this is preparatory work to automatically scrub HTTP measurements
which is something we should really do before continuing to improve the
boostrap process in light of ooni/probe#2531.

I have also added currently skipped tests for other structures as
placeholder, but I did not want to submit a too large PR, hence for now
we will just have tests for ArchivalDNSLookupResult. More PRs will
follow and they will add additional unit tests.
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