Permalink
Browse files

Disabling tests for PLAINTEXT signature method in ft_interface

* Test server provides incorrect PLAINTEXT signature :)
  • Loading branch information...
ayoy committed Jan 21, 2012
1 parent 8bbb0fd commit c7f154659ae14ee82b9cbdd12d5731ce91c6978c
Showing with 9 additions and 6 deletions.
  1. +9 −6 tests/ft_interface/ft_interface.cpp
@@ -80,15 +80,16 @@ void QOAuth::Ft_Interface::requestToken_data()
<< QByteArray( "requestkey" )
<< QByteArray( "requestsecret" );

QTest::newRow("PLAINTEXT") << (uint) 10000
// term.ie fails at creating PLAINTEXT signature :(
/*QTest::newRow("PLAINTEXT") << (uint) 10000
<< QByteArray( "key" )
<< QByteArray( "secret" )
<< QString( "http://term.ie/oauth/example/request_token.php" )
<< (int) GET
<< (int) PLAINTEXT
<< (int) NoError
<< QByteArray( "requestkey" )
<< QByteArray( "requestsecret" );
<< QByteArray( "requestsecret" ); */

// timeout seems to be untestable for a moment
// QTest::newRow("timeout") << (uint) 100
@@ -219,7 +220,8 @@ void QOAuth::Ft_Interface::accessToken_data()
<< QByteArray( "accesskey" )
<< QByteArray( "accesssecret" );

QTest::newRow("PLAINTEXT") << (uint) 10000
// term.ie fails at creating PLAINTEXT signature :(
/*QTest::newRow("PLAINTEXT") << (uint) 10000
<< QByteArray( "key" )
<< QByteArray( "secret" )
<< QByteArray( "requestkey" )
@@ -229,7 +231,7 @@ void QOAuth::Ft_Interface::accessToken_data()
<< (int) PLAINTEXT
<< (int) NoError
<< QByteArray( "accesskey" )
<< QByteArray( "accesssecret" );
<< QByteArray( "accesssecret" );*/
}

void QOAuth::Ft_Interface::accessToken()
@@ -368,7 +370,8 @@ void QOAuth::Ft_Interface::accessResources_data()
<< (int) ParseForHeaderArguments
<< (int) NoError;

QTest::newRow("PLAINTEXT") << QByteArray( "key" )
// term.ie fails at creating PLAINTEXT signature :(
/*QTest::newRow("PLAINTEXT") << QByteArray( "key" )
<< QByteArray( "secret" )
<< QByteArray( "accesskey" )
<< QByteArray( "accesssecret" )
@@ -382,7 +385,7 @@ void QOAuth::Ft_Interface::accessResources_data()
<< QByteArray( "third" )
<< QByteArray( "third" )
<< (int) ParseForHeaderArguments
<< (int) NoError;
<< (int) NoError;*/
}

void QOAuth::Ft_Interface::accessResources()

0 comments on commit c7f1546

Please sign in to comment.