-
Notifications
You must be signed in to change notification settings - Fork 186
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
YAML validation #3790
YAML validation #3790
Conversation
IP validation regex had a couple of silly bugs -- finally properly tested
There is no lena.ns.cloudflare.com; maybe this was supposed to be Art+Lana? (Only one hit, in October 2019 -- the watch was from early December.)
The test currently adds about 45 seconds to the duration of the test suite. Maybe it should be hacked to run only at the end. |
The CI test failure looks spurious; I sometimes get this on my laptop, too. Will rebase and re-push and hope it works this time. |
blacklists.py: refactor slightly to facilitate validation
1d47c69
to
0d1fdd6
Compare
watched_nses.yml
Outdated
@@ -516,7 +513,9 @@ items: | |||
ns: mihanwebhost.com. | |||
- ns: offshoreracks.com. | |||
- ns: sathyats.net. | |||
- ns: shared-host.org. | |||
- comment: no longert responding 2020-04-02 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You've substituted typos in NSes to typos in comments :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for noticing, I'll fix and merge on Monday.
Special case "pass: true" for recent freak addition; probably remove the code in blacklists.py to support this case if it goes away
030224f
to
9e95c14
Compare
See also now #3793. |
This adds a test case to check the YAML lists for some simple problems.
Testing revealed a number of issues which are also solved with this PR.
The commented-out entries should probably be removed eventually, but some of the issues may be transient, so I want to keep them around and revisit them in a few weeks.