question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Lots of provider modules tests failing post v0.9.16

See original GitHub issue

Started seeing failures when manually working so I created a new manually runnable action that runs the test suites of all the modules in https://github.com/octodns/octodns/pull/883.

Result is a lot of copy-n-pasted failures due to the fact that Zone.changes no longer excludes root NS records with the _is_eligible filter function.

This is fine in terms of it’s not an actual breakage of any real-world use of octoDNS. It’s also something that the work in https://github.com/octodns/octodns/pull/883 is designed to surface earlier…

            zone = Zone('unit.tests.', [])
            provider.populate(zone)
            self.assertEqual(19, len(zone.records))
            changes = expected.changes(zone, provider)
>           self.assertEqual(0, len(changes))
E           AssertionError: 0 != 1

I think the fix here will just be to go through and update all the tests to handle this case. It’s not ideal, but it’s probably the best option.

/cc https://github.com/octodns/octodns/runs/5482284584?check_suite_focus=true /cc https://github.com/octodns/octodns/pull/883

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:9 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
rosscommented, Mar 10, 2022

Made a pass through all the modules updating all the requirements and making sure they’re passing with 0.9.16. PRs that do so are all linked up above. Will re-run the test suite once they’ve all been merged which should get things green.

0reactions
rosscommented, Mar 13, 2022

https://github.com/octodns/terraformed/pull/7 will fill out all the required contexts on repos which I believe should (additionally) force the modules tests to be manually run before merge. If/when we come up with or find a good way to trigger them at an appropriate point that would be even better.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error: Failed to query available provider packages: Client ...
Terraform v0.13 will not query the registry for any provider it finds locally installed under ${CONFIG_DIR}.terraform/plugins . Run terraform ...
Read more >
Gruntwork Newsletter, September 2018 | by Yevgeniy Brikman
Hello Grunts,. This month, we made major updates to Terratest, our IaC testing library, including adding support for Google Cloud, RDS, SSH ...
Read more >
Angular Unit tests failing with undefined / no provider
Your biggest issue is that you're importing AppModule . Your app module is going to bring in all of your module's dependencies -...
Read more >
3.1.9. Utilities — Buildbot 0.9.9.post2 documentation
This is mostly used in tests to create timezone-aware datetime objects in UTC: ... If the wrapped function fails, its traceback will be...
Read more >
Module Testing Experiment - Terraform - HashiCorp Developer
The Terraform provider apparentlymart/testing introduced the idea of ... only need to use v0.15.0 or later for running tests; your module itself can...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found