Codeception Results OK (9.3s)

Api Tests

+ AuthCest » Call api without api token and have an http error401 0.33s

    I send get "utils/ip"
    I see response code is 401
    I response match pattern {"error":{"code":401,"message":"\/^.*$\/"}}

+ AuthCest » Call api with fake api token and have an http error401 0.15s

    I set o auth token "blop"
    I send get "utils/ip"
    I see response code is 401
    I response match pattern {"error":"invalid_grant","error_description":"\/^.*$\/"}

+ AuthCest » Call fake url with a valid token and have an http error401 0.84s

    I set o auth token
    I send get "fuck/it"
    I see response code is 404

+ EdfCest » Get today tempo 0.16s

    I set o auth token
    I send get "edfs/now/tempo"
    I see response code is 200
    I response match pattern {"day":"\/^([12]\\d{3}-(0[1-9]|1[0-2])-(0[1-9]|[12]\\d|3[01]))$\/","tempo":"\/^bleu|vert|jaune|rouge|blanc$\/"}

+ EdfCest » Get yesterday tempo 0.23s

    I set o auth token
    I send get "edfs/2018-01-12/tempo"
    I see response code is 200
    I response match pattern {"day":"\/^([12]\\d{3}-(0[1-9]|1[0-2])-(0[1-9]|[12]\\d|3[01]))$\/","tempo":"\/^bleu|vert|jaune|rouge|blanc$\/"}

+ EdfCest » Get tomorrow tempo 0.23s

    I set o auth token
    I send get "edfs/2018-01-14/tempo"
    I see response code is 200
    I response match pattern {"day":"\/^([12]\\d{3}-(0[1-9]|1[0-2])-(0[1-9]|[12]\\d|3[01]))$\/","tempo":"\/^bleu|vert|jaune|rouge|nd|blanc$\/"}

+ EdfCest » Get fake date tempo and have an http error400 with code400001 0.22s

    I set o auth token
    I send get "edfs/pouet/tempo"
    I see response code is 400
    I response match pattern {"error_code":400001,"http_code":400,"message":"\/^.*$\/"}

+ GasStationCest » Get gas station for a valid country and a valid city 0.18s

    I set o auth token
    I send get "gas/fr/stations/54000"
    I see response code is 200
    I response match pattern [{"id":"\/^[-]?[0-9]+$\/","zip_code":"\/^[-]?[0-9]+$\/","city":"\/^.*$\/","address":"\/^.*$\/","services":[],"prices":[{"id":"\/^[-]?[0-9]+$\/","name":"\/^.*$\/","device":"\/^.*$\/","unity":"\/^.*...]

+ GasStationCest » Get gas station for a fake country and have an http error400 with code400005 0.18s

    I set o auth token
    I send get "gas/xxx/stations/54000"
    I see response code is 400
    I response match pattern {"error_code":400005,"http_code":400,"message":"\/^.*$\/"}

+ GasStationCest » Get gas station for a fake french city and have an http error400 with code400006 0.19s

    I set o auth token
    I send get "gas/fr/stations/xxxx"
    I see response code is 400
    I response match pattern {"error_code":400006,"http_code":400,"message":"\/^.*$\/"}

+ AirQualityCest » Get air quality for a french location 0.67s

    I set o auth token
    I send get "healths/48.6884911:6.175586399999999/air/quality"
    I see response code is 200
    I response match pattern {"day":"\/^([12]\\d{3}-(0[1-9]|1[0-2])-(0[1-9]|[12]\\d|3[01]))$\/","value":"\/^[-]?[0-9]+$\/","level":"\/^[-]?[0-9]+$\/","region":"\/^.*$\/"}

+ AirQualityCest » Get fake location air quality and have an http error400 with code400003 0.18s

    I set o auth token
    I send get "healths/0:0/air/quality"
    I see response code is 400
    I response match pattern {"error_code":400003,"http_code":400,"message":"\/^.*$\/"}

+ AllergenCest » Get allergen level for a valid region 0.18s

    I set o auth token
    I send get "healths/1/allergens/now"
    I see response code is 200
    I response match pattern {"day":"\/^([12]\\d{3}-(0[1-9]|1[0-2])-(0[1-9]|[12]\\d|3[01]))$\/","value":"\/^[-]?[0-9]+$\/","level":"\/^[-]?[0-9]+$\/"}

+ AllergenCest » Get allergen level for a fake region and have an http error400 with code400002 0.18s

    I set o auth token
    I send get "healths/111/allergens/now"
    I see response code is 400
    I response match pattern {"error_code":400002,"http_code":400,"message":"\/^.*$\/"}

+ AllergenCest » Get allergen level for a fake date and have an http error400 with code400001 0.18s

    I set o auth token
    I send get "healths/1/allergens/aaaa"
    I see response code is 400
    I response match pattern {"error_code":400001,"http_code":400,"message":"\/^.*$\/"}

+ GastroCest » Get gastro level for a valid region 0.18s

    I set o auth token
    I send get "healths/1/gastros/now"
    I see response code is 200
    I response match pattern {"day":"\/^([12]\\d{3}-(0[1-9]|1[0-2])-(0[1-9]|[12]\\d|3[01]))$\/","value":"\/^[-]?[0-9]+$\/","level":"\/^[-]?[0-9]+$\/"}

+ GastroCest » Get gastro level for a fake region and have an http error400 with code400002 0.18s

    I set o auth token
    I send get "healths/111/gastros/now"
    I see response code is 400
    I response match pattern {"error_code":400002,"http_code":400,"message":"\/^.*$\/"}

+ GastroCest » Get gastro level for a fake date and have an http error400 with code400001 0.18s

    I set o auth token
    I send get "healths/1/gastros/aaaa"
    I see response code is 400
    I response match pattern {"error_code":400001,"http_code":400,"message":"\/^.*$\/"}

+ GrippeCest » Get grippe level for a valid region 0.19s

    I set o auth token
    I send get "healths/1/grippes/now"
    I see response code is 200
    I response match pattern {"day":"\/^([12]\\d{3}-(0[1-9]|1[0-2])-(0[1-9]|[12]\\d|3[01]))$\/","value":"\/^[-]?[0-9]+$\/","level":"\/^[-]?[0-9]+$\/"}

+ GrippeCest » Get grippe level for a fake region and have an http error400 with code400001 0.19s

    I set o auth token
    I send get "healths/111/grippes/now"
    I see response code is 400
    I response match pattern {"error_code":400002,"http_code":400,"message":"\/^.*$\/"}

+ GrippeCest » Get grippe level for a fake date and have an http error400 with code400002 0.19s

    I set o auth token
    I send get "healths/1/grippes/aaaa"
    I see response code is 400
    I response match pattern {"error_code":400001,"http_code":400,"message":"\/^.*$\/"}

+ SchoolHolidayCest » Get holiday for a valid zone and valid date 0.16s

    I set o auth token
    I send get "holidays/2018-12-26/schools/A"
    I can see response code is 200
    I response match pattern {"day":"\/^([12]\\d{3}-(0[1-9]|1[0-2])-(0[1-9]|[12]\\d|3[01]))$\/","zone":"A","holiday":1,"holiday_name":"\/^.*$\/"}

+ SchoolHolidayCest » Get holiday for a valid zone and a valid past date 0.15s

    I set o auth token
    I send get "holidays/2017-11-15/schools/A"
    I can see response code is 200
    I response match pattern {"day":"\/^([12]\\d{3}-(0[1-9]|1[0-2])-(0[1-9]|[12]\\d|3[01]))$\/","zone":"A","holiday":0}

+ SchoolHolidayCest » Get holiday for a fake zone and valid date and have an http error400 with code400002 0.18s

    I set o auth token
    I send get "holidays/aaaaaa/schools/A"
    I see response code is 400
    I response match pattern {"error_code":400001,"http_code":400,"message":"\/^.*$\/"}

+ SchoolHolidayCest » Get holiday for a valid zone and fake date and have an http error400 with code400002 0.18s

    I set o auth token
    I send get "holidays/2017-11-15/schools/Q"
    I see response code is 400
    I response match pattern {"error_code":400000,"http_code":400,"message":"\/^.*$\/"}

+ WeekendCest » Get weekend for a valid date in weekend 0.15s

    I set o auth token
    I send get "holidays/2017-11-12/weekend"
    I can see response code is 200
    I response match pattern {"day":"\/^([12]\\d{3}-(0[1-9]|1[0-2])-(0[1-9]|[12]\\d|3[01]))$\/","weekend":1}

+ WeekendCest » Get weekend for a valid date in week 0.15s

    I set o auth token
    I send get "holidays/2017-11-15/weekend"
    I can see response code is 200
    I response match pattern {"day":"\/^([12]\\d{3}-(0[1-9]|1[0-2])-(0[1-9]|[12]\\d|3[01]))$\/","weekend":0}

+ WeekendCest » Get weekend for a fake date and have an http error400 with code400001 0.18s

    I set o auth token
    I send get "holidays/aaaaa/weekend"
    I see response code is 400
    I response match pattern {"error_code":400001,"http_code":400,"message":"\/^.*$\/"}

+ ContractsCest » Get contract list 0.17s

    I set o auth token
    I send get "jcdecaux/bikes/contracts"
    I can see response code is 200
    I response match pattern [{"name":"\/^.*$\/","commercial_name":"\/^.*$\/","country_iso2":"\/^.*$\/"}]

+ SationsCest » Get station list for a valid contract 0.21s

    I set o auth token
    I send get "jcdecaux/bikes/contracts/nancy/stations"
    I can see response code is 200
    I response match pattern [{"id":"\/^[-]?[0-9]+$\/","available_bikes":"\/^[-]?[0-9]+$\/","available_stands":"\/^[-]?[0-9]+$\/","contract_name":"\/^.*$\/","name":"\/^.*$\/","address":"\/^.*$\/","latitude":"\/^[-]?[0-9]*(\\....]

+ SationsCest » Get station list for a fake contract and have an http error400 with code400004 0.22s

    I set o auth token
    I send get "jcdecaux/bikes/contracts/aaaaa/stations"
    I can see response code is 400
    I response match pattern {"error_code":400004,"http_code":400,"message":"\/^.*$\/"}

+ IpCest » Get ip 0.15s

    I set o auth token
    I send get "utils/ip"
    I see response code is 200
    I response match pattern {"ip":"\/^\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}$\/"}

+ AlertCest » Get alert for a valid department 0.16s

    I set o auth token
    I send get "weathers/54/alert"
    I see response code is 200
    I response match pattern {"risk":"\/^[-]?[0-9]+$\/","flood_level":"\/^[-]?[0-9]+$\/","global_level":"\/^[-]?[0-9]+$\/","department":"\/^[-]?[0-9]+$\/"}

+ AlertCest » Get alert for a fake department and have an http error404 with code404001 0.19s

    I set o auth token
    I send get "weathers/aaaa/alert"
    I see response code is 404
    I response match pattern {"error_code":404001,"http_code":404,"message":"\/^.*$\/"}

+ CityForecastCest » Get weather for a valid french city 0.34s

    I set o auth token
    I send get "weathers/fr/forecasts/54000"
    I see response code is 200
    I response match pattern [{"start_hour":"\/^(\\d{4})-(\\d{2})-(\\d{2})T(\\d{2})\\:(\\d{2})\\:(\\d{2})[+-](\\d{2})\\:(\\d{2})$\/","end_hour":"\/^(\\d{4})-(\\d{2})-(\\d{2})T(\\d{2})\\:(\\d{2})\\:(\\d{2})[+-](\\d{2})\\:(\\d{...]

+ CityForecastCest » Get weather for a fake country and have an http error400 with code400007 0.18s

    I set o auth token
    I send get "weathers/xxx/forecasts/54000"
    I see response code is 400
    I response match pattern {"error_code":400007,"http_code":400,"message":"\/^.*$\/"}

+ CityForecastCest » Get weather for a fake french cityy and have an http error400 with code400006 0.18s

    I set o auth token
    I send get "weathers/fr/forecasts/xxxx"
    I see response code is 400
    I response match pattern {"error_code":400006,"http_code":400,"message":"\/^.*$\/"}

+ CityWeatherCest » Get weather for a valid french city 0.19s

    I set o auth token
    I send get "weathers/fr/cities/54000"
    I see response code is 200
    I response match pattern {"sunrise":"\/^[0-9]{2}[:][0-9]{2}$\/","sunset":"\/^[0-9]{2}[:][0-9]{2}$\/","wind":"\/^[-]?[0-9]*(\\.[0-9]+)?$\/","humidity":"\/^[-]?[0-9]+$\/","temperature":"\/^[-]?[0-9]*(\\.[0-9]+)?$\/","weathe...}

+ CityWeatherCest » Get weather for a fake country and have an http error400 with code400007 0.18s

    I set o auth token
    I send get "weathers/xxx/cities/54000"
    I see response code is 400
    I response match pattern {"error_code":400007,"http_code":400,"message":"\/^.*$\/"}

+ CityWeatherCest » Get weather for a fake french cityy and have an http error400 with code400006 0.18s

    I set o auth token
    I send get "weathers/fr/cities/xxxx"
    I see response code is 400
    I response match pattern {"error_code":400006,"http_code":400,"message":"\/^.*$\/"}

+ SunCest » Get sun information for a valid french city 0.16s

    I set o auth token
    I send get "weathers/fr/suns/54000"
    I see response code is 200
    I response match pattern {"sunrise":"\/^[0-9]{2}[:][0-9]{2}$\/","sunset":"\/^[0-9]{2}[:][0-9]{2}$\/","zip_code":"\/^[-]?[0-9]+$\/","country_iso2":"\/^.*$\/","city":"\/^.*$\/"}

+ SunCest » Get sun information for a fake country and have an http error400 with code400007 0.19s

    I set o auth token
    I send get "weathers/xxx/suns/54000"
    I see response code is 400
    I response match pattern {"error_code":400007,"http_code":400,"message":"\/^.*$\/"}

+ SunCest » Get sun information for a fake city and have an http error400 with code400006 0.18s

    I set o auth token
    I send get "weathers/fr/suns/xxxx"
    I see response code is 400
    I response match pattern {"error_code":400006,"http_code":400,"message":"\/^.*$\/"}

Summary

Successful scenarios: 43
Failed scenarios: 0
Skipped scenarios: 0
Incomplete scenarios: 0