xmpp: move SASL tests to xmpp_test package
I prefer to keep tests in a separate package from the main code where
possible to ensure that the public API is what ends up being tested.
This makes it less likely that tests only test small internal pieces and
not the behavior of the package as a whole.
Signed-off-by: Sam Whited <firstname.lastname@example.org>
xmpp, xmpp/sasl2: improve test error handling
Also fixes several ineffectual assignments in test files.
all: update copyright message
all: rewrap copyright comments/use xml.TokenReader
all: remove credentials from config
internal/ns: move ns package to internal/ns
xmpp: cleanup odd buffer indirection in tests
Fix tests broken by change in encoder flushing
Change stream features list API to use xml encoder
Update SASL to use new mellium.im/sasl API
Add credentials to config (probably temporarily)
Fix broken SASL ScramSha256 call in tests
ns: Move namespaces to own package
This lets us prevent import loops (eg. if we want to access namespace
constants from a sibling tree under xmpp/)
Add SASL feature parsing and test
Add test for listing SASL mechanisms
Test that SASL() with no mechanisms panics