Browse files

Applies namespaces fix to SASL tests

  • Loading branch information...
1 parent c5578e4 commit acb8bd6fd1c30034046a2354abb7b3bfabe3ece7 @yannk yannk committed Jun 2, 2010
Showing with 2 additions and 2 deletions.
  1. +1 −1 t/features-hook.t
  2. +1 −1 t/lib/djabberd-test.pl
View
2 t/features-hook.t
@@ -64,7 +64,7 @@ sub connect_and_get_features{
{
my $features = connect_and_get_features($client);
- like($features, qr{^<features xmlns='http://etherx.jabber.org/streams'>.*</features>$});
+ like($features, qr{^<stream:features>.*</stream:features>$});
like($features, qr{<auth xmlns='http://jabber.org/features/iq-auth'/>});
like($features, qr{<mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>.*</mechanisms>});
like($features, qr{<optional/>}, "our test setup makes sasl optional, bc of history of djabberd");
View
2 t/lib/djabberd-test.pl
@@ -627,7 +627,7 @@ sub sasl_login {
my $features = $self->recv_xml;
warn "FEATURES: $features" if $ENV{TESTDEBUG};
- die "no features" unless $features =~ /^<features\b/;
+ die "no features" unless $features =~ /^<([^\:]+\:)?features\b/;
die "no bind" unless $features =~ /bind\b/sm;
die "no session" unless $features =~ /session\b/sm;

0 comments on commit acb8bd6

Please sign in to comment.