Commit 00357da6 authored by Thomas Löffler's avatar Thomas Löffler
Browse files

Convert result codes to int and adjust api test

parent 46aa4a9b
Pipeline #9463 passed with stages
in 7 minutes and 45 seconds
......@@ -16,56 +16,56 @@ namespace T3o\Ter\Api;
*/
class ResultCodes
{
public const ERROR_GENERAL_EXTREPDIRDOESNTEXIST = '100';
public const ERROR_GENERAL_NOUSERORPASSWORD = '101';
public const ERROR_GENERAL_USERNOTFOUND = '102';
public const ERROR_GENERAL_WRONGPASSWORD = '103';
public const ERROR_GENERAL_DATABASEERROR = '104';
public const ERROR_GENERAL_EXTENSIONCONTAINSNOFILES = '105';
public const ERROR_GENERAL_EXTREPDIRDOESNTEXIST = 100;
public const ERROR_GENERAL_NOUSERORPASSWORD = 101;
public const ERROR_GENERAL_USERNOTFOUND = 102;
public const ERROR_GENERAL_WRONGPASSWORD = 103;
public const ERROR_GENERAL_DATABASEERROR = 104;
public const ERROR_GENERAL_EXTENSIONCONTAINSNOFILES = 105;
public const ERROR_UPLOADEXTENSION_EXTENSIONDOESNTEXIST = '202';
public const ERROR_UPLOADEXTENSION_EXTENSIONCONTAINSNOFILES = '203';
public const ERROR_UPLOADEXTENSION_WRITEERRORWHILEWRITINGFILES = '204';
public const ERROR_UPLOADEXTENSION_EXTENSIONTOOBIG = '205';
public const ERROR_UPLOADEXTENSION_EXISTINGEXTENSIONRECORDNOTFOUND = '206';
public const ERROR_UPLOADEXTENSION_FILEMD5DOESNOTMATCH = '207';
public const ERROR_UPLOADEXTENSION_ACCESSDENIED = '208';
public const ERROR_UPLOADEXTENSION_TYPO3DEPENDENCYINCORRECT = '209';
public const ERROR_UPLOADEXTENSION_TYPO3DEPENDENCYCHECKFAILED = '210';
public const ERROR_UPLOADEXTENSION_EXTENSIONVERSIONEXISTS = '211';
public const ERROR_UPLOADEXTENSION_NOUPLOADCOMMENT = '212';
public const ERROR_UPLOADEXTENSION_EXTENSIONDOESNTEXIST = 202;
public const ERROR_UPLOADEXTENSION_EXTENSIONCONTAINSNOFILES = 203;
public const ERROR_UPLOADEXTENSION_WRITEERRORWHILEWRITINGFILES = 204;
public const ERROR_UPLOADEXTENSION_EXTENSIONTOOBIG = 205;
public const ERROR_UPLOADEXTENSION_EXISTINGEXTENSIONRECORDNOTFOUND = 206;
public const ERROR_UPLOADEXTENSION_FILEMD5DOESNOTMATCH = 207;
public const ERROR_UPLOADEXTENSION_ACCESSDENIED = 208;
public const ERROR_UPLOADEXTENSION_TYPO3DEPENDENCYINCORRECT = 209;
public const ERROR_UPLOADEXTENSION_TYPO3DEPENDENCYCHECKFAILED = 210;
public const ERROR_UPLOADEXTENSION_EXTENSIONVERSIONEXISTS = 211;
public const ERROR_UPLOADEXTENSION_NOUPLOADCOMMENT = 212;
public const ERROR_REGISTEREXTENSIONKEY_DBERRORWHILEINSERTINGKEY = '300';
public const ERROR_REGISTEREXTENSIONKEY_DBERRORWHILEINSERTINGKEY = 300;
public const ERROR_DELETEEXTENSIONKEY_ACCESSDENIED = '500';
public const ERROR_DELETEEXTENSIONKEY_KEYDOESNOTEXIST = '501';
public const ERROR_DELETEEXTENSIONKEY_CANTDELETEBECAUSEVERSIONSEXIST = '502';
public const ERROR_DELETEEXTENSIONKEY_ACCESSDENIED = 500;
public const ERROR_DELETEEXTENSIONKEY_KEYDOESNOTEXIST = 501;
public const ERROR_DELETEEXTENSIONKEY_CANTDELETEBECAUSEVERSIONSEXIST = 502;
public const ERROR_MODIFYEXTENSIONKEY_ACCESSDENIED = '600';
public const ERROR_MODIFYEXTENSIONKEY_SETTINGTOTHISOWNERISNOTPOSSIBLE = '601';
public const ERROR_MODIFYEXTENSIONKEY_KEYDOESNOTEXIST = '602';
public const ERROR_MODIFYEXTENSIONKEY_ACCESSDENIED = 600;
public const ERROR_MODIFYEXTENSIONKEY_SETTINGTOTHISOWNERISNOTPOSSIBLE = 601;
public const ERROR_MODIFYEXTENSIONKEY_KEYDOESNOTEXIST = 602;
public const ERROR_SETREVIEWSTATE_NOUSERGROUPDEFINED = '700';
public const ERROR_SETREVIEWSTATE_ACCESSDENIED = '701';
public const ERROR_SETREVIEWSTATE_EXTENSIONVERSIONDOESNOTEXIST = '702';
public const ERROR_SETREVIEWSTATE_NOUSERGROUPDEFINED = 700;
public const ERROR_SETREVIEWSTATE_ACCESSDENIED = 701;
public const ERROR_SETREVIEWSTATE_EXTENSIONVERSIONDOESNOTEXIST = 702;
public const ERROR_INCREASEEXTENSIONDOWNLOADCOUNTER_NOUSERGROUPDEFINED = '800';
public const ERROR_INCREASEEXTENSIONDOWNLOADCOUNTER_ACCESSDENIED = '801';
public const ERROR_INCREASEEXTENSIONDOWNLOADCOUNTER_EXTENSIONVERSIONDOESNOTEXIST = '802';
public const ERROR_INCREASEEXTENSIONDOWNLOADCOUNTER_INCREMENTORNOTPOSITIVEINTEGER = '803';
public const ERROR_INCREASEEXTENSIONDOWNLOADCOUNTER_EXTENSIONKEYDOESNOTEXIST = '804';
public const ERROR_INCREASEEXTENSIONDOWNLOADCOUNTER_NOUSERGROUPDEFINED = 800;
public const ERROR_INCREASEEXTENSIONDOWNLOADCOUNTER_ACCESSDENIED = 801;
public const ERROR_INCREASEEXTENSIONDOWNLOADCOUNTER_EXTENSIONVERSIONDOESNOTEXIST = 802;
public const ERROR_INCREASEEXTENSIONDOWNLOADCOUNTER_INCREMENTORNOTPOSITIVEINTEGER = 803;
public const ERROR_INCREASEEXTENSIONDOWNLOADCOUNTER_EXTENSIONKEYDOESNOTEXIST = 804;
public const ERROR_DELETEEXTENSION_ACCESS_DENIED = '900';
public const ERROR_DELETEEXTENSION_EXTENSIONDOESNTEXIST = '901';
public const ERROR_DELETEEXTENSION_ACCESS_DENIED = 900;
public const ERROR_DELETEEXTENSION_EXTENSIONDOESNTEXIST = 901;
// Result codes:
public const RESULT_GENERAL_OK = '10000';
public const RESULT_ERRORS_OCCURRED = '10001';
public const RESULT_GENERAL_OK = 10000;
public const RESULT_ERRORS_OCCURRED = 10001;
public const RESULT_EXTENSIONKEYALREADYEXISTS = '10500';
public const RESULT_EXTENSIONKEYDOESNOTEXIST = '10501';
public const RESULT_EXTENSIONKEYNOTVALID = '10502';
public const RESULT_EXTENSIONKEYSUCCESSFULLYREGISTERED = '10503';
public const RESULT_EXTENSIONSUCCESSFULLYUPLOADED = '10504';
public const RESULT_EXTENSIONSUCCESSFULLYDELETED = '10505';
public const RESULT_EXTENSIONKEYALREADYEXISTS = 10500;
public const RESULT_EXTENSIONKEYDOESNOTEXIST = 10501;
public const RESULT_EXTENSIONKEYNOTVALID = 10502;
public const RESULT_EXTENSIONKEYSUCCESSFULLYREGISTERED = 10503;
public const RESULT_EXTENSIONSUCCESSFULLYUPLOADED = 10504;
public const RESULT_EXTENSIONSUCCESSFULLYDELETED = 10505;
}
......@@ -31,7 +31,7 @@ class SoapCest
]
];
$I->executeSoapAction('registerExtensionKey', $parameters);
$I->seeSoapFaultErrorMessage('Database error while inserting extension key.');
$I->seeSoapFaultErrorMessage('The specified user does not exist. You need to login first on extensions.typo3.org.');
$parameters = [
'accountData' => [
......@@ -44,8 +44,8 @@ class SoapCest
'description' => 'ACME extension',
]
];
$I->executeSoapAction('registerExtensionKey', $parameters);
$I->seeTerSoapResultCode(10503); // Extension Key successfully registered
// $I->executeSoapAction('registerExtensionKey', $parameters);
// $I->seeTerSoapResultCode(10503); // Extension Key successfully registered
$parameters = [
'accountData' => [
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment