Codeception workaround

This commit is contained in:
paolo
2016-08-03 09:57:24 +02:00
parent c01eecf196
commit 2d8f7fcac3
221 changed files with 561 additions and 300 deletions
+14 -1
View File
@@ -1,6 +1,5 @@
<?php <?php
/** /**
* Inherited Methods * Inherited Methods
* @method void wantToTest($text) * @method void wantToTest($text)
@@ -18,9 +17,23 @@
*/ */
class ApiTester extends \Codeception\Actor class ApiTester extends \Codeception\Actor
{ {
const WAIT = 70000; // 0.07 seconds
use _generated\ApiTesterActions; use _generated\ApiTesterActions;
/** /**
* Define custom actions here * Define custom actions here
*/ */
public function wait($micro_seconds = null)
{
if (!is_null($micro_seconds))
{
usleep($micro_seconds);
}
else
{
usleep(ApiTester::WAIT);
}
}
} }
@@ -9,3 +9,4 @@ $I->sendGET("v1/education/abgabe/Abgabe", array("abgabe_id" => "0"));
$I->seeResponseCodeIs(200); $I->seeResponseCodeIs(200);
$I->seeResponseIsJson(); $I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]); $I->seeResponseContainsJson(["error" => 0]);
$I->wait();
@@ -9,3 +9,4 @@ $I->sendGET("v1/testtool/Ablauf/Ablauf", array("ablauf_id" => "0"));
$I->seeResponseCodeIs(200); $I->seeResponseCodeIs(200);
$I->seeResponseIsJson(); $I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]); $I->seeResponseContainsJson(["error" => 0]);
$I->wait();
@@ -9,3 +9,4 @@ $I->sendGET("v1/education/abschlussbeurteilung/Abschlussbeurteilung", array("abs
$I->seeResponseCodeIs(200); $I->seeResponseCodeIs(200);
$I->seeResponseIsJson(); $I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]); $I->seeResponseContainsJson(["error" => 0]);
$I->wait();
@@ -9,3 +9,4 @@ $I->sendGET("v1/education/abschlusspruefung/Abschlusspruefung", array("abschluss
$I->seeResponseCodeIs(200); $I->seeResponseCodeIs(200);
$I->seeResponseIsJson(); $I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]); $I->seeResponseContainsJson(["error" => 0]);
$I->wait();
@@ -9,3 +9,4 @@ $I->sendGET("v1/person/adresse/Adresse", array("person_id" => 0));
$I->seeResponseCodeIs(200); $I->seeResponseCodeIs(200);
$I->seeResponseIsJson(); $I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]); $I->seeResponseContainsJson(["error" => 0]);
$I->wait();
@@ -9,3 +9,4 @@ $I->sendGET("v1/codex/Akadgrad/Akadgrad", array("akadgrad_id" => "0"));
$I->seeResponseCodeIs(200); $I->seeResponseCodeIs(200);
$I->seeResponseIsJson(); $I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]); $I->seeResponseContainsJson(["error" => 0]);
$I->wait();
@@ -9,3 +9,4 @@ $I->sendGET("v1/crm/Akte/Akte", array("akte_id" => "0", "person_id" => "0", "dok
$I->seeResponseCodeIs(200); $I->seeResponseCodeIs(200);
$I->seeResponseIsJson(); $I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]); $I->seeResponseContainsJson(["error" => 0]);
$I->wait();
@@ -9,3 +9,4 @@ $I->sendGET("v1/project/Aktivitaet/Aktivitaet", array("aktivitaet_kurzbz" => "0"
$I->seeResponseCodeIs(200); $I->seeResponseCodeIs(200);
$I->seeResponseIsJson(); $I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]); $I->seeResponseContainsJson(["error" => 0]);
$I->wait();
@@ -9,3 +9,4 @@ $I->sendGET("v1/content/Ampel/Ampel", array("ampel_id" => "0"));
$I->seeResponseCodeIs(200); $I->seeResponseCodeIs(200);
$I->seeResponseIsJson(); $I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]); $I->seeResponseContainsJson(["error" => 0]);
$I->wait();
@@ -9,3 +9,4 @@ $I->sendGET("v1/education/anrechnung/Anrechnung", array("anrechnung_id" => "0"))
$I->seeResponseCodeIs(200); $I->seeResponseCodeIs(200);
$I->seeResponseIsJson(); $I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]); $I->seeResponseContainsJson(["error" => 0]);
$I->wait();
@@ -9,3 +9,4 @@ $I->sendGET("v1/testtool/Antwort/Antwort", array("antwort_id" => "0"));
$I->seeResponseCodeIs(200); $I->seeResponseCodeIs(200);
$I->seeResponseIsJson(); $I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]); $I->seeResponseContainsJson(["error" => 0]);
$I->wait();
@@ -9,3 +9,4 @@ $I->sendGET("v1/education/anwesenheit/Anwesenheit", array("anwesenheit_id" => "0
$I->seeResponseCodeIs(200); $I->seeResponseCodeIs(200);
$I->seeResponseIsJson(); $I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]); $I->seeResponseContainsJson(["error" => 0]);
$I->wait();
@@ -9,3 +9,4 @@ $I->sendGET("v1/system/appdaten/Appdaten", array("appdaten_id" => "0"));
$I->seeResponseCodeIs(200); $I->seeResponseCodeIs(200);
$I->seeResponseIsJson(); $I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]); $I->seeResponseContainsJson(["error" => 0]);
$I->wait();
@@ -9,3 +9,4 @@ $I->sendGET("v1/codex/Archiv/Archiv", array("archiv_id" => "0"));
$I->seeResponseCodeIs(200); $I->seeResponseCodeIs(200);
$I->seeResponseIsJson(); $I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]); $I->seeResponseContainsJson(["error" => 0]);
$I->wait();
@@ -9,3 +9,4 @@ $I->sendGET("v1/codex/Aufmerksamdurch/Aufmerksamdurch", array("aufmerksamdurch_k
$I->seeResponseCodeIs(200); $I->seeResponseCodeIs(200);
$I->seeResponseIsJson(); $I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]); $I->seeResponseContainsJson(["error" => 0]);
$I->wait();
@@ -9,3 +9,4 @@ $I->sendGET("v1/crm/Aufnahmeschluessel/Aufnahmeschluessel", array("aufnahmeschlu
$I->seeResponseCodeIs(200); $I->seeResponseCodeIs(200);
$I->seeResponseIsJson(); $I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]); $I->seeResponseContainsJson(["error" => 0]);
$I->wait();
@@ -9,3 +9,4 @@ $I->sendGET("v1/crm/Aufnahmetermin/Aufnahmetermin", array("aufnahmetermin_id" =>
$I->seeResponseCodeIs(200); $I->seeResponseCodeIs(200);
$I->seeResponseIsJson(); $I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]); $I->seeResponseContainsJson(["error" => 0]);
$I->wait();
@@ -9,3 +9,4 @@ $I->sendGET("v1/crm/Aufnahmetermintyp/Aufnahmetermintyp", array("aufnahmetermint
$I->seeResponseCodeIs(200); $I->seeResponseCodeIs(200);
$I->seeResponseIsJson(); $I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]); $I->seeResponseContainsJson(["error" => 0]);
$I->wait();
@@ -9,3 +9,4 @@ $I->sendGET("v1/accounting/Aufteilung/Aufteilung", array("aufteilung_id" => "0")
$I->seeResponseCodeIs(200); $I->seeResponseCodeIs(200);
$I->seeResponseIsJson(); $I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]); $I->seeResponseContainsJson(["error" => 0]);
$I->wait();
@@ -9,3 +9,4 @@ $I->sendGET("v1/project/Aufwandstyp/Aufwandstyp", array("aufwandstyp_kurzbz" =>
$I->seeResponseCodeIs(200); $I->seeResponseCodeIs(200);
$I->seeResponseIsJson(); $I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]); $I->seeResponseContainsJson(["error" => 0]);
$I->wait();
@@ -9,3 +9,4 @@ $I->sendGET("v1/codex/Ausbildung/Ausbildung", array("ausbildungcode" => "0"));
$I->seeResponseCodeIs(200); $I->seeResponseCodeIs(200);
$I->seeResponseIsJson(); $I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]); $I->seeResponseContainsJson(["error" => 0]);
$I->wait();
@@ -9,3 +9,4 @@ $I->sendGET("v1/person/Bankverbindung/Bankverbindung", array("bankverbindung_id"
$I->seeResponseCodeIs(200); $I->seeResponseCodeIs(200);
$I->seeResponseIsJson(); $I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]); $I->seeResponseContainsJson(["error" => 0]);
$I->wait();
@@ -9,3 +9,4 @@ $I->sendGET("v1/education/beispiel/Beispiel", array("beispiel_id" => "0"));
$I->seeResponseCodeIs(200); $I->seeResponseCodeIs(200);
$I->seeResponseIsJson(); $I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]); $I->seeResponseContainsJson(["error" => 0]);
$I->wait();
@@ -9,3 +9,4 @@ $I->sendGET("v1/person/Benutzer/Benutzer", array("uid" => "0"));
$I->seeResponseCodeIs(200); $I->seeResponseCodeIs(200);
$I->seeResponseIsJson(); $I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]); $I->seeResponseContainsJson(["error" => 0]);
$I->wait();
@@ -9,3 +9,4 @@ $I->sendGET("v1/person/Benutzerfunktion/Benutzerfunktion", array("benutzerfunkti
$I->seeResponseCodeIs(200); $I->seeResponseCodeIs(200);
$I->seeResponseIsJson(); $I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]); $I->seeResponseContainsJson(["error" => 0]);
$I->wait();
@@ -9,3 +9,4 @@ $I->sendGET("v1/person/Benutzergruppe/Benutzergruppe", array("gruppe_kurzbz" =>
$I->seeResponseCodeIs(200); $I->seeResponseCodeIs(200);
$I->seeResponseIsJson(); $I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]); $I->seeResponseContainsJson(["error" => 0]);
$I->wait();
@@ -9,3 +9,4 @@ $I->sendGET("v1/system/Benutzerrolle/Benutzerrolle", array("benutzerrolle_id" =>
$I->seeResponseCodeIs(200); $I->seeResponseCodeIs(200);
$I->seeResponseIsJson(); $I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]); $I->seeResponseContainsJson(["error" => 0]);
$I->wait();
@@ -9,3 +9,4 @@ $I->sendGET("v1/system/Berechtigung/Berechtigung", array("berechtigung_kurzbz" =
$I->seeResponseCodeIs(200); $I->seeResponseCodeIs(200);
$I->seeResponseIsJson(); $I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]); $I->seeResponseContainsJson(["error" => 0]);
$I->wait();
@@ -9,3 +9,4 @@ $I->sendGET("v1/codex/Berufstaetigkeit/Berufstaetigkeit", array("berufstaetigkei
$I->seeResponseCodeIs(200); $I->seeResponseCodeIs(200);
$I->seeResponseIsJson(); $I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]); $I->seeResponseContainsJson(["error" => 0]);
$I->wait();
@@ -9,3 +9,4 @@ $I->sendGET("v1/codex/Beschaeftigungsausmass/Beschaeftigungsausmass", array("bes
$I->seeResponseCodeIs(200); $I->seeResponseCodeIs(200);
$I->seeResponseIsJson(); $I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]); $I->seeResponseContainsJson(["error" => 0]);
$I->wait();
@@ -9,3 +9,4 @@ $I->sendGET("v1/codex/Besqual/Besqual", array("besqualcode" => "0"));
$I->seeResponseCodeIs(200); $I->seeResponseCodeIs(200);
$I->seeResponseIsJson(); $I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]); $I->seeResponseContainsJson(["error" => 0]);
$I->wait();
@@ -9,3 +9,4 @@ $I->sendGET("v1/accounting/Bestelldetail/Bestelldetail", array("bestelldetail_id
$I->seeResponseCodeIs(200); $I->seeResponseCodeIs(200);
$I->seeResponseIsJson(); $I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]); $I->seeResponseContainsJson(["error" => 0]);
$I->wait();
@@ -9,3 +9,4 @@ $I->sendGET("v1/accounting/Bestelldetailtag/Bestelldetailtag", array("bestelldet
$I->seeResponseCodeIs(200); $I->seeResponseCodeIs(200);
$I->seeResponseIsJson(); $I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]); $I->seeResponseContainsJson(["error" => 0]);
$I->wait();
@@ -9,3 +9,4 @@ $I->sendGET("v1/accounting/Bestellstatus/Bestellstatus", array("bestellstatus_ku
$I->seeResponseCodeIs(200); $I->seeResponseCodeIs(200);
$I->seeResponseIsJson(); $I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]); $I->seeResponseContainsJson(["error" => 0]);
$I->wait();
@@ -9,3 +9,4 @@ $I->sendGET("v1/accounting/Bestellung/Bestellung", array("bestellung_id" => "0")
$I->seeResponseCodeIs(200); $I->seeResponseCodeIs(200);
$I->seeResponseIsJson(); $I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]); $I->seeResponseContainsJson(["error" => 0]);
$I->wait();
@@ -9,3 +9,4 @@ $I->sendGET("v1/accounting/Bestellungtag/Bestellungtag", array("bestellung_id" =
$I->seeResponseCodeIs(200); $I->seeResponseCodeIs(200);
$I->seeResponseIsJson(); $I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]); $I->seeResponseContainsJson(["error" => 0]);
$I->wait();
@@ -9,3 +9,4 @@ $I->sendGET("v1/education/betreuerart/Betreuerart", array("betreuerart_kurzbz" =
$I->seeResponseCodeIs(200); $I->seeResponseCodeIs(200);
$I->seeResponseIsJson(); $I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]); $I->seeResponseContainsJson(["error" => 0]);
$I->wait();
@@ -9,3 +9,4 @@ $I->sendGET("v1/ressource/Betriebsmittel/Betriebsmittel", array("betriebsmittel_
$I->seeResponseCodeIs(200); $I->seeResponseCodeIs(200);
$I->seeResponseIsJson(); $I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]); $I->seeResponseContainsJson(["error" => 0]);
$I->wait();
@@ -9,3 +9,4 @@ $I->sendGET("v1/ressource/betriebsmittelperson/Betriebsmittelperson", array("bet
$I->seeResponseCodeIs(200); $I->seeResponseCodeIs(200);
$I->seeResponseIsJson(); $I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]); $I->seeResponseContainsJson(["error" => 0]);
$I->wait();
@@ -9,3 +9,4 @@ $I->sendGET("v1/ressource/Betriebsmittelstatus/Betriebsmittelstatus", array("bet
$I->seeResponseCodeIs(200); $I->seeResponseCodeIs(200);
$I->seeResponseIsJson(); $I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]); $I->seeResponseContainsJson(["error" => 0]);
$I->wait();
@@ -9,3 +9,4 @@ $I->sendGET("v1/ressource/Betriebsmitteltyp/Betriebsmitteltyp", array("betriebsm
$I->seeResponseCodeIs(200); $I->seeResponseCodeIs(200);
$I->seeResponseIsJson(); $I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]); $I->seeResponseContainsJson(["error" => 0]);
$I->wait();
@@ -9,3 +9,4 @@ $I->sendGET("v1/crm/Bewerbungstermine/Bewerbungstermine", array("bewerbungstermi
$I->seeResponseCodeIs(200); $I->seeResponseCodeIs(200);
$I->seeResponseIsJson(); $I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]); $I->seeResponseContainsJson(["error" => 0]);
$I->wait();
@@ -9,3 +9,4 @@ $I->sendGET("v1/codex/Bisfunktion/Bisfunktion", array("studiengang_kz" => "0", "
$I->seeResponseCodeIs(200); $I->seeResponseCodeIs(200);
$I->seeResponseIsJson(); $I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]); $I->seeResponseContainsJson(["error" => 0]);
$I->wait();
@@ -9,3 +9,4 @@ $I->sendGET("v1/codex/Bisio/Bisio", array("bisio_id" => "0"));
$I->seeResponseCodeIs(200); $I->seeResponseCodeIs(200);
$I->seeResponseIsJson(); $I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]); $I->seeResponseContainsJson(["error" => 0]);
$I->wait();
@@ -9,3 +9,4 @@ $I->sendGET("v1/codex/Bisorgform/Bisorgform", array("bisorgform_kurzbz" => "0"))
$I->seeResponseCodeIs(200); $I->seeResponseCodeIs(200);
$I->seeResponseIsJson(); $I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]); $I->seeResponseContainsJson(["error" => 0]);
$I->wait();
@@ -9,3 +9,4 @@ $I->sendGET("v1/codex/Bisverwendung/Bisverwendung", array("bisverwendung_id" =>
$I->seeResponseCodeIs(200); $I->seeResponseCodeIs(200);
$I->seeResponseIsJson(); $I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]); $I->seeResponseContainsJson(["error" => 0]);
$I->wait();
@@ -9,3 +9,4 @@ $I->sendGET("v1/accounting/Buchung/Buchung", array("buchung_id" => "0"));
$I->seeResponseCodeIs(200); $I->seeResponseCodeIs(200);
$I->seeResponseIsJson(); $I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]); $I->seeResponseContainsJson(["error" => 0]);
$I->wait();
@@ -9,3 +9,4 @@ $I->sendGET("v1/accounting/Buchungstyp/Buchungstyp", array("buchungstyp_kurzbz"
$I->seeResponseCodeIs(200); $I->seeResponseCodeIs(200);
$I->seeResponseIsJson(); $I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]); $I->seeResponseContainsJson(["error" => 0]);
$I->wait();
@@ -9,3 +9,4 @@ $I->sendGET("v1/crm/Buchungstyp/Buchungstyp", array("buchungstyp_kurzbz" => "0")
$I->seeResponseCodeIs(200); $I->seeResponseCodeIs(200);
$I->seeResponseIsJson(); $I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]); $I->seeResponseContainsJson(["error" => 0]);
$I->wait();
@@ -9,3 +9,4 @@ $I->sendGET("v1/accounting/Budget/Budget", array("kostenstelle_id" => "0", "gesc
$I->seeResponseCodeIs(200); $I->seeResponseCodeIs(200);
$I->seeResponseIsJson(); $I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]); $I->seeResponseContainsJson(["error" => 0]);
$I->wait();
@@ -1,11 +1,12 @@
<?php <?php
$I = new ApiTester($scenario); $I = new ApiTester($scenario);
$I->wantTo('Test API call v1/codex/bundesland/All'); $I->wantTo("Test API call v1/codex/bundesland/All");
$I->amHttpAuthenticated("admin", "1q2w3"); $I->amHttpAuthenticated("admin", "1q2w3");
$I->haveHttpHeader('FHC-API-KEY', '[email protected]'); $I->haveHttpHeader("FHC-API-KEY", "[email protected]");
$I->sendGET('v1/codex/bundesland/All'); $I->sendGET("v1/codex/bundesland/All");
$I->seeResponseCodeIs(200); $I->seeResponseCodeIs(200);
$I->seeResponseIsJson(); $I->seeResponseIsJson();
$I->seeResponseContainsJson(['error' => 0]); $I->seeResponseContainsJson(["error" => 0]);
$I->wait();
@@ -9,3 +9,4 @@ $I->sendGET("TO_BE_REPLACED_NAME", array(TO_BE_REPLACED_PARAMETERS));
$I->seeResponseCodeIs(200); $I->seeResponseCodeIs(200);
$I->seeResponseIsJson(); $I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]); $I->seeResponseContainsJson(["error" => 0]);
$I->wait();
@@ -9,3 +9,4 @@ $I->sendGET("v1/content/Content/Content", array("content_id" => "0"));
$I->seeResponseCodeIs(200); $I->seeResponseCodeIs(200);
$I->seeResponseIsJson(); $I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]); $I->seeResponseContainsJson(["error" => 0]);
$I->wait();
@@ -9,3 +9,4 @@ $I->sendGET("v1/content/Contentchild/Contentchild", array("contentchild_id" => "
$I->seeResponseCodeIs(200); $I->seeResponseCodeIs(200);
$I->seeResponseIsJson(); $I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]); $I->seeResponseContainsJson(["error" => 0]);
$I->wait();
@@ -9,3 +9,4 @@ $I->sendGET("v1/content/Contentgruppe/Contentgruppe", array("gruppe_kurzbz" => "
$I->seeResponseCodeIs(200); $I->seeResponseCodeIs(200);
$I->seeResponseIsJson(); $I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]); $I->seeResponseContainsJson(["error" => 0]);
$I->wait();
@@ -9,3 +9,4 @@ $I->sendGET("v1/content/Contentlog/Contentlog", array("contentlog_id" => "0"));
$I->seeResponseCodeIs(200); $I->seeResponseCodeIs(200);
$I->seeResponseIsJson(); $I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]); $I->seeResponseContainsJson(["error" => 0]);
$I->wait();
@@ -9,3 +9,4 @@ $I->sendGET("v1/content/Contentsprache/Contentsprache", array("contentsprache_id
$I->seeResponseCodeIs(200); $I->seeResponseCodeIs(200);
$I->seeResponseIsJson(); $I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]); $I->seeResponseContainsJson(["error" => 0]);
$I->wait();
@@ -9,3 +9,4 @@ $I->sendGET("v1/ressource/Coodle/Coodle", array("coodle_id" => "0"));
$I->seeResponseCodeIs(200); $I->seeResponseCodeIs(200);
$I->seeResponseIsJson(); $I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]); $I->seeResponseContainsJson(["error" => 0]);
$I->wait();
@@ -9,3 +9,4 @@ $I->sendGET("v1/system/Cronjob/Cronjob", array("cronjob_id" => "0"));
$I->seeResponseCodeIs(200); $I->seeResponseCodeIs(200);
$I->seeResponseIsJson(); $I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]); $I->seeResponseContainsJson(["error" => 0]);
$I->wait();
+5 -4
View File
@@ -1,11 +1,12 @@
<?php <?php
$I = new ApiTester($scenario); $I = new ApiTester($scenario);
$I->wantTo('Test API call v1/content/dms/dms'); $I->wantTo("Test API call v1/content/dms/dms");
$I->amHttpAuthenticated("admin", "1q2w3"); $I->amHttpAuthenticated("admin", "1q2w3");
$I->haveHttpHeader('FHC-API-KEY', '[email protected]'); $I->haveHttpHeader("FHC-API-KEY", "[email protected]");
$I->sendGET('v1/content/dms/Dms', array('dms_id' => 1)); $I->sendGET("v1/content/dms/Dms", array("dms_id" => 1));
$I->seeResponseCodeIs(200); $I->seeResponseCodeIs(200);
$I->seeResponseIsJson(); $I->seeResponseIsJson();
$I->seeResponseContainsJson(['error' => 0]); $I->seeResponseContainsJson(["error" => 0]);
$I->wait();
@@ -9,3 +9,4 @@ $I->sendGET("v1/crm/Dokument/Dokument", array("dokument_kurzbz" => "0"));
$I->seeResponseCodeIs(200); $I->seeResponseCodeIs(200);
$I->seeResponseIsJson(); $I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]); $I->seeResponseContainsJson(["error" => 0]);
$I->wait();
@@ -9,3 +9,4 @@ $I->sendGET("v1/crm/Dokumentprestudent/Dokumentprestudent", array("prestudent_id
$I->seeResponseCodeIs(200); $I->seeResponseCodeIs(200);
$I->seeResponseIsJson(); $I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]); $I->seeResponseContainsJson(["error" => 0]);
$I->wait();
@@ -9,3 +9,4 @@ $I->sendGET("v1/crm/Dokumentstudiengang/Dokumentstudiengang", array("studiengang
$I->seeResponseCodeIs(200); $I->seeResponseCodeIs(200);
$I->seeResponseIsJson(); $I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]); $I->seeResponseContainsJson(["error" => 0]);
$I->wait();
@@ -9,3 +9,4 @@ $I->sendGET("v1/codex/Entwicklungsteam/Entwicklungsteam", array("studiengang_kz"
$I->seeResponseCodeIs(200); $I->seeResponseCodeIs(200);
$I->seeResponseIsJson(); $I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]); $I->seeResponseContainsJson(["error" => 0]);
$I->wait();
@@ -9,3 +9,4 @@ $I->sendGET("v1/organisation/Erhalter/Erhalter", array("erhalter_kz" => "0"));
$I->seeResponseCodeIs(200); $I->seeResponseCodeIs(200);
$I->seeResponseIsJson(); $I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]); $I->seeResponseContainsJson(["error" => 0]);
$I->wait();
@@ -9,3 +9,4 @@ $I->sendGET("v1/ressource/Erreichbarkeit/Erreichbarkeit", array("erreichbarkeit_
$I->seeResponseCodeIs(200); $I->seeResponseCodeIs(200);
$I->seeResponseIsJson(); $I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]); $I->seeResponseContainsJson(["error" => 0]);
$I->wait();
@@ -9,3 +9,4 @@ $I->sendGET("v1/organisation/fachbereich/Fachbereich", array("fachbereich_kurzbz
$I->seeResponseCodeIs(200); $I->seeResponseCodeIs(200);
$I->seeResponseIsJson(); $I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]); $I->seeResponseContainsJson(["error" => 0]);
$I->wait();
@@ -9,3 +9,4 @@ $I->sendGET("v1/education/feedback/Feedback", array("feedback_id" => "0"));
$I->seeResponseCodeIs(200); $I->seeResponseCodeIs(200);
$I->seeResponseIsJson(); $I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]); $I->seeResponseContainsJson(["error" => 0]);
$I->wait();
@@ -9,3 +9,4 @@ $I->sendGET("v1/organisation/Ferien/Ferien", array("studiengang_kz" => "0", "bez
$I->seeResponseCodeIs(200); $I->seeResponseCodeIs(200);
$I->seeResponseIsJson(); $I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]); $I->seeResponseContainsJson(["error" => 0]);
$I->wait();
@@ -9,3 +9,4 @@ $I->sendGET("v1/system/Filter/Filter", array("filter_id" => "0"));
$I->seeResponseCodeIs(200); $I->seeResponseCodeIs(200);
$I->seeResponseIsJson(); $I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]); $I->seeResponseContainsJson(["error" => 0]);
$I->wait();
@@ -9,3 +9,4 @@ $I->sendGET("v1/ressource/Firma/Firma", array("firma_id" => "0"));
$I->seeResponseCodeIs(200); $I->seeResponseCodeIs(200);
$I->seeResponseIsJson(); $I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]); $I->seeResponseContainsJson(["error" => 0]);
$I->wait();
@@ -9,3 +9,4 @@ $I->sendGET("v1/ressource/Firmatag/Firmatag", array("tag" => "0", "firma_id" =>
$I->seeResponseCodeIs(200); $I->seeResponseCodeIs(200);
$I->seeResponseIsJson(); $I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]); $I->seeResponseContainsJson(["error" => 0]);
$I->wait();
@@ -9,3 +9,4 @@ $I->sendGET("v1/ressource/Firmentyp/Firmentyp", array("firmentyp_kurzbz" => "0")
$I->seeResponseCodeIs(200); $I->seeResponseCodeIs(200);
$I->seeResponseIsJson(); $I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]); $I->seeResponseContainsJson(["error" => 0]);
$I->wait();
@@ -9,3 +9,4 @@ $I->sendGET("v1/person/Fotostatus/Fotostatus", array("fotostatus_kurzbz" => "0")
$I->seeResponseCodeIs(200); $I->seeResponseCodeIs(200);
$I->seeResponseIsJson(); $I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]); $I->seeResponseContainsJson(["error" => 0]);
$I->wait();
@@ -9,3 +9,4 @@ $I->sendGET("v1/testtool/Frage/Frage", array("frage_id" => "0"));
$I->seeResponseCodeIs(200); $I->seeResponseCodeIs(200);
$I->seeResponseIsJson(); $I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]); $I->seeResponseContainsJson(["error" => 0]);
$I->wait();
@@ -9,3 +9,4 @@ $I->sendGET("v1/person/Freebusy/Freebusy", array("freebusy_id" => "0"));
$I->seeResponseCodeIs(200); $I->seeResponseCodeIs(200);
$I->seeResponseIsJson(); $I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]); $I->seeResponseContainsJson(["error" => 0]);
$I->wait();
@@ -9,3 +9,4 @@ $I->sendGET("v1/person/Freebusytyp/Freebusytyp", array("freebusytyp_kurzbz" => "
$I->seeResponseCodeIs(200); $I->seeResponseCodeIs(200);
$I->seeResponseIsJson(); $I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]); $I->seeResponseContainsJson(["error" => 0]);
$I->wait();
@@ -9,3 +9,4 @@ $I->sendGET("v1/ressource/Funktion/Funktion", array("funktion_kurzbz" => "0"));
$I->seeResponseCodeIs(200); $I->seeResponseCodeIs(200);
$I->seeResponseIsJson(); $I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]); $I->seeResponseContainsJson(["error" => 0]);
$I->wait();
@@ -9,3 +9,4 @@ $I->sendGET("v1/testtool/Gebiet/Gebiet", array("gebiet_id" => "0"));
$I->seeResponseCodeIs(200); $I->seeResponseCodeIs(200);
$I->seeResponseIsJson(); $I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]); $I->seeResponseContainsJson(["error" => 0]);
$I->wait();
@@ -9,3 +9,4 @@ $I->sendGET("v1/codex/Gemeinde/Gemeinde", array("gemeinde_id" => "0"));
$I->seeResponseCodeIs(200); $I->seeResponseCodeIs(200);
$I->seeResponseIsJson(); $I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]); $I->seeResponseContainsJson(["error" => 0]);
$I->wait();
@@ -9,3 +9,4 @@ $I->sendGET("v1/organisation/geschaeftsjahr/Geschaeftsjahr", array("geschaeftsja
$I->seeResponseCodeIs(200); $I->seeResponseCodeIs(200);
$I->seeResponseIsJson(); $I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]); $I->seeResponseContainsJson(["error" => 0]);
$I->wait();
@@ -9,3 +9,4 @@ $I->sendGET("v1/organisation/Gruppe/Gruppe", array("gruppe_kurzbz" => "0"));
$I->seeResponseCodeIs(200); $I->seeResponseCodeIs(200);
$I->seeResponseIsJson(); $I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]); $I->seeResponseContainsJson(["error" => 0]);
$I->wait();
@@ -9,3 +9,4 @@ $I->sendGET("v1/codex/Hauptberuf/Hauptberuf", array("hauptberufcode" => "0"));
$I->seeResponseCodeIs(200); $I->seeResponseCodeIs(200);
$I->seeResponseIsJson(); $I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]); $I->seeResponseContainsJson(["error" => 0]);
$I->wait();
@@ -9,3 +9,4 @@ $I->sendGET("v1/content/Infoscreen/Infoscreen", array("infoscreen_id" => "0"));
$I->seeResponseCodeIs(200); $I->seeResponseCodeIs(200);
$I->seeResponseIsJson(); $I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]); $I->seeResponseContainsJson(["error" => 0]);
$I->wait();
@@ -9,3 +9,4 @@ $I->sendGET("v1/testtool/Kategorie/Kategorie", array("kategorie_kurzbz" => "0"))
$I->seeResponseCodeIs(200); $I->seeResponseCodeIs(200);
$I->seeResponseIsJson(); $I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]); $I->seeResponseContainsJson(["error" => 0]);
$I->wait();
+11 -8
View File
@@ -1,21 +1,24 @@
<?php <?php
$I = new ApiTester($scenario); $I = new ApiTester($scenario);
$I->wantTo('Test API call v1/person/kontakt/ kontakt, KontaktByPersonID and KontaktByPersonIDKontaktTyp'); $I->wantTo("Test API call v1/person/kontakt/ kontakt, KontaktByPersonID and KontaktByPersonIDKontaktTyp");
$I->amHttpAuthenticated("admin", "1q2w3"); $I->amHttpAuthenticated("admin", "1q2w3");
$I->haveHttpHeader('FHC-API-KEY', '[email protected]'); $I->haveHttpHeader("FHC-API-KEY", "[email protected]");
$I->sendGET('v1/person/kontakt/kontakt', array('kontakt_id' => 1)); $I->sendGET("v1/person/kontakt/kontakt", array("kontakt_id" => 1));
$I->seeResponseCodeIs(200); $I->seeResponseCodeIs(200);
$I->seeResponseIsJson(); $I->seeResponseIsJson();
$I->seeResponseContainsJson(['error' => 0]); $I->seeResponseContainsJson(["error" => 0]);
$I->wait();
$I->sendGET('v1/person/kontakt/KontaktByPersonID', array('person_id' => 3)); $I->sendGET("v1/person/kontakt/KontaktByPersonID", array("person_id" => 3));
$I->seeResponseCodeIs(200); $I->seeResponseCodeIs(200);
$I->seeResponseIsJson(); $I->seeResponseIsJson();
$I->seeResponseContainsJson(['error' => 0]); $I->seeResponseContainsJson(["error" => 0]);
$I->wait();
$I->sendGET('v1/person/kontakt/KontaktByPersonIDKontaktTyp', array('person_id' => 3, 'kontakttyp' => 'email')); $I->sendGET("v1/person/kontakt/KontaktByPersonIDKontaktTyp", array("person_id" => 3, "kontakttyp" => "email"));
$I->seeResponseCodeIs(200); $I->seeResponseCodeIs(200);
$I->seeResponseIsJson(); $I->seeResponseIsJson();
$I->seeResponseContainsJson(['error' => 0]); $I->seeResponseContainsJson(["error" => 0]);
$I->wait();
@@ -9,3 +9,4 @@ $I->sendGET("v1/person/kontakt/Kontakt", array("kontakt_id" => 0));
$I->seeResponseCodeIs(200); $I->seeResponseCodeIs(200);
$I->seeResponseIsJson(); $I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]); $I->seeResponseContainsJson(["error" => 0]);
$I->wait();
@@ -9,3 +9,4 @@ $I->sendGET("v1/person/Kontaktmedium/Kontaktmedium", array("kontaktmedium_kurzbz
$I->seeResponseCodeIs(200); $I->seeResponseCodeIs(200);
$I->seeResponseIsJson(); $I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]); $I->seeResponseContainsJson(["error" => 0]);
$I->wait();
@@ -9,3 +9,4 @@ $I->sendGET("v1/person/Kontakttyp/Kontakttyp", array("kontakttyp" => "0"));
$I->seeResponseCodeIs(200); $I->seeResponseCodeIs(200);
$I->seeResponseIsJson(); $I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]); $I->seeResponseContainsJson(["error" => 0]);
$I->wait();
@@ -9,3 +9,4 @@ $I->sendGET("v1/accounting/konto/Konto", array("konto_id" => "0"));
$I->seeResponseCodeIs(200); $I->seeResponseCodeIs(200);
$I->seeResponseIsJson(); $I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]); $I->seeResponseContainsJson(["error" => 0]);
$I->wait();
@@ -9,3 +9,4 @@ $I->sendGET("v1/crm/Konto/Konto", array("buchungsnr" => "0"));
$I->seeResponseCodeIs(200); $I->seeResponseCodeIs(200);
$I->seeResponseIsJson(); $I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]); $I->seeResponseContainsJson(["error" => 0]);
$I->wait();
@@ -9,3 +9,4 @@ $I->sendGET("v1/accounting/Kostenstelle/Kostenstelle", array("kostenstelle_id" =
$I->seeResponseCodeIs(200); $I->seeResponseCodeIs(200);
$I->seeResponseIsJson(); $I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]); $I->seeResponseContainsJson(["error" => 0]);
$I->wait();
@@ -9,3 +9,4 @@ $I->sendGET("v1/testtool/Kriterien/Kriterien", array("kriterien_id" => "0"));
$I->seeResponseCodeIs(200); $I->seeResponseCodeIs(200);
$I->seeResponseIsJson(); $I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]); $I->seeResponseContainsJson(["error" => 0]);
$I->wait();
@@ -9,3 +9,4 @@ $I->sendGET("v1/education/lenotenschluessel/LeNotenschluessel", array("note" =>
$I->seeResponseCodeIs(200); $I->seeResponseCodeIs(200);
$I->seeResponseIsJson(); $I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]); $I->seeResponseContainsJson(["error" => 0]);
$I->wait();
@@ -9,3 +9,4 @@ $I->sendGET("v1/education/lepruefung/LePruefung", array("lepruefung_id" => "0"))
$I->seeResponseCodeIs(200); $I->seeResponseCodeIs(200);
$I->seeResponseIsJson(); $I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]); $I->seeResponseContainsJson(["error" => 0]);
$I->wait();
@@ -9,3 +9,4 @@ $I->sendGET("v1/education/legesamtnote/Legesamtnote", array("lehreinheit_id" =>
$I->seeResponseCodeIs(200); $I->seeResponseCodeIs(200);
$I->seeResponseIsJson(); $I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]); $I->seeResponseContainsJson(["error" => 0]);
$I->wait();
@@ -9,3 +9,4 @@ $I->sendGET("v1/education/lehreinheit/Lehreinheit", array("lehreinheit_id" => "0
$I->seeResponseCodeIs(200); $I->seeResponseCodeIs(200);
$I->seeResponseIsJson(); $I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]); $I->seeResponseContainsJson(["error" => 0]);
$I->wait();
@@ -9,3 +9,4 @@ $I->sendGET("v1/education/lehreinheitgruppe/Lehreinheitgruppe", array("lehreinhe
$I->seeResponseCodeIs(200); $I->seeResponseCodeIs(200);
$I->seeResponseIsJson(); $I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]); $I->seeResponseContainsJson(["error" => 0]);
$I->wait();
@@ -9,3 +9,4 @@ $I->sendGET("v1/education/Lehreinheitmitarbeiter/Lehreinheitmitarbeiter", array(
$I->seeResponseCodeIs(200); $I->seeResponseCodeIs(200);
$I->seeResponseIsJson(); $I->seeResponseIsJson();
$I->seeResponseContainsJson(["error" => 0]); $I->seeResponseContainsJson(["error" => 0]);
$I->wait();

Some files were not shown because too many files have changed in this diff Show More