GithubHelp home page GithubHelp logo

progval / irctest Goto Github PK

View Code? Open in Web Editor NEW
37.0 6.0 10.0 1.04 MB

Semi-automated conformance checking for IRC implementations (RFC1459/RFC2812, the "modern spec" by ircdocs, and IRCv3)

Home Page: https://dashboard.irctest.limnoria.net/

License: MIT License

Python 98.78% Makefile 1.02% CSS 0.20%
irc sopel irc-protocol limnoria testing supybot inspircd mammon charybdis specification

irctest's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

irctest's Issues

Factorize client and server tests

It would be nice to have a way to write tests that work for both peers.
The problem is tests would have to be both loose (what they accept) and exact (what they send) for each event.

irctest dashboard

[Just dumping some thoughts here]

In the last week I added CI to the repo + made it so GH Actions exports the pytest results as junit XML.

So far this isn't very useful, because the only UI we have is the shitty bot comments on PRs, and a list of successful/failed builds, without per-test details.

So I'd like to make a dashboard (probably just a cron generating XHTML files) that reads these junit XML files, and produces large support tables, highlighting what tests pass for each ircd, and what tests are automatically skipped (with the reason) based on these XML files, and what tests are manually excluded from the collection (also with the reason) somehow (parsing comments in the makefile?)

Ideally this should be readable to people unfamiliar with irctest (eg. by including each test's docstring) so they can use it to see exactly what is implemented by each IRCd.

tests for the bot mode spec

ircv3/ircv3-specifications#439 specifies the bot mode; Oragono's master (0db7f886374ce616 and later) implements the spec as written, including the new draft/bot tag. It would be neat to get some tests for this (they can be fully ircd-agnostic, since the value of the bot mode is published in 005).

chathistory batch parameter is not validated

I accidentally switched the batch type (chathistory) and batch parameter (canonical name of the message target) in Ergo. This is the fix for reference: ergochat/ergo#2070

This is a MUST in the spec, so we should have a test for it:

If the batch capability was negotiated, the server MUST reply to a successful CHATHISTORY command using a batch. For subcommands that return message history (i.e. all subcommands other than TARGETS), the batch MUST have type chathistory and take a single additional parameter, the canonical name of the target being queried.

default assertion failure messages have become unhelpful

I broke one of my ZNC tests in development and:

        self.sendLine("viewer", "PRIVMSG *playback :play * %d" % (early_time,))
        messages = extract_playback_privmsgs(self.getMessages("viewer"))
>       self.assertEqual(set(messages), set([dm] + echo_messages))
E       AssertionError: None

irctest/server_tests/znc_playback.py:95: AssertionError

It looks like there's no sane default for msg here?

msg: Any = None,

Not supporting ECDSA is seen as a failure in all cases

Since IRC ECDSA SASL isn't a standard, I don't think it should be seen as a failure for clients to not support it in all cases.

I've got a (dodgy) attempt at a fix here, but maybe it would be nice to allow controllers to set a variable like:

self.supported_sasl_mechs = ['PLAIN']

And if that list exists and the given mechanism isn't in that list, just skip the testing of it?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.