aboutsummaryrefslogtreecommitdiffstats
path: root/spec/fixtures
AgeCommit message (Collapse)Author
2018-04-16Refs #6477; Use custom fields values in checksum calculation6477-use-custom-fields-in-checksumsZog
2018-04-10Merge pull request #460 from af83/6360-workbenchimport-displayLuc Donnet
6360 Add checks on calendars during WorkbenchImport
2018-04-10Merge pull request #438 from af83/6368-gtfs-importLuc Donnet
GTFS import (first step)
2018-04-09Refs #6360; Add checks on calendars during WorkbenchImportZog
2018-03-30Initial import for agencies, stops, routes, trips and stop_times. Refs #6368Alban Peignier
2018-03-27Add `TomTom::Matrix`Teddy Wing
A new component to the `TomTom` module that asks TomTom's Matrix API endpoint (https://developer.tomtom.com/online-routing/online-routing-documentation/matrix-routing) to compute `WayCost`s. The matrix API will give us all costs between each pair of coordinates. This will enable us to provide costs for any combination of points in a journey pattern. Given a list of `WayCost`s, it will send all points from those costs to the matrix API and return a list of all non-zero `WayCost`s between all pairs of coordinates. `points_from_way_costs()` extracts unique coordinates from the `WayCost`s. `points_as_params()` builds a list of points in the format expected by the matrix API. The response from the matrix API is formatted as a two-dimensional array consisting of rows and columns that pair each "origin" point with each "destination" point. We loop through this matrix and construct new `WayCost` objects for each pair of coordinates. At the moment, I haven't figured out how I want to save `WayCost` IDs when creating the new pairs. Leaving that for later. Refs #6222
2018-03-14TomTom::Batch: Extract code to `#extract_costs_to_way_costs!`Teddy Wing
Extract some code from `#batch` to allow us to test the part that takes distance and time values from the response JSON and put fill them into `WayCost`s. In order for the test to work, had to add an `#==` method to `WayCost` and make `distance` and `time` accessors. The JSON file fixture is a copy of a response from the TomTom `/batch` API. The file is pretty big. I'm not sure if maybe I should condense it for the sake of test performance. Refs #6095
2018-02-20Refs #5924 @14h; Extend importersZog
Mostly add a way to override the default behaviour and process each row its own way
2018-02-20Refs #5924 @2h; Provide a mechanism to define a custom importerZog
2018-02-20Refs #5924 @1H; Add `before` actionsZog
2018-02-20Refs #5765 @6h; Add a customizable importer mechanismZog
2017-12-20Add nozip.zip file for ImportsController specs. Refs #5317Alban Peignier
2017-12-14Refs: #5281@2h; Code Analysis first bugfixRobert
- Rebased #5006 upoon master and created #5281 from #5006 - Setup regression test based on client provided input - Fixed bug with multiple spurious directory occurances
2017-12-14Refs: #5006@12h;Robert
Implementing allowed vs foreign line lookup for the zip service - Adapting `lib/stif/netex_file.rb` to expose the already implemented matching - `app/services/zip_service.rb` augmented to check for allowed lines and returning forbidden lines - Specs with fixtures and using the beforementioned new zip support in the specs - Fixture directories for the new specs
2017-10-24Refs: #4633@0.5h;Robert
Speced and implemented ZipService to return additional directories in the entry's `spurious` field.
2017-10-12Fix .gitignore file with bad syntax and duplicate linesLuc Donnet
2017-10-06Add webpacker gem and migrate the React appscedricnjanga
2017-08-27Create STIF::NetexFile to read zip content and create ReferentialMetadata ↵Alban Peignier
from real data. Refs #4273
2017-08-27Update OFFRE_TRANSDEV_2017030112251.zip to use calendriers.xml. Update ↵Alban Peignier
regression_4273_spec fixture files. Ignore target files. Refs #4273
2017-08-27Update OFFRE_TRANSDEV_2017030112251.zip to use calendriers.xml. Refs #4273Alban Peignier
2017-08-27Update OFFRE_TRANSDEV_2017030112251.zip to use calendriers.xml. Refs #4273Alban Peignier
2017-08-25ReferentialMetadataKludge: Use non-overlapping dates in test dataTeddy Wing
Previously, the OFFRE_... zip's two referentials had overlapping dates (2017-03-01..2017-03-31 & 2017-03-01..2017-12-31). This caused this validation error when trying to save the referentials: OFFRE_TRANSDEV_20170301122517 couvre le même périmètre d'offre To fix this, Alban & I changed the dates of the two offers inside the zip (in the calendrier.xml files) and matched the dates in `ReferentialMetadataKludge`.
2017-08-21Refs: #4273@20h; Reverse Engeneeiring RubyZip fixed ZipServiceRobert
- Replzed Lazy Enum over get_next_entry and group by with explicit looping and yielding to an instance level enumerator that yields streams per subdir (wich represents a referential). - Fixtures and Specs that use a REAL usecase. Next: Get rid of metadata kludge (should fix failing specs)
2017-08-02Hotfix for Jenkins, removed specs needing `unzip`Robert
2017-07-31Refs: #3507@3h; CR finishedRobert
2017-07-25Refs: #3507;20h Specing and Implementing the ZipServiceRobert
2017-07-21Sketching out the unzip/zip process, need to change Tempfile to ↵Robert
File.open(..., r) in a configurable directory [amend me]
2017-04-05Fix include? on user with nil permissionsXinhui
Refs #3050
2017-03-29Fix user permissions syncXinhui
Refs #2954
2017-03-29Fix users spec permissions syncXinhui
2017-03-07Refs #2693 : Test permissions syncVlatka Pavisic
2016-10-17Store organisation functional_scopeXinhui
Refs #1785
2016-09-06Rspec reflex:syncXinhui
2016-09-02Reflex store xml + purge deleted since last syncXinhui
2016-09-01Refactoring StopPlaceEntrance to AcessPointXinhui
2016-08-31Wip sync reflex - add gem - task reflex:sync + whenever cfgXinhui
2016-08-08Set :lockable to model UserXinhui
2016-08-05Refactoring - Rake task users:syncXinhui
2016-08-05Rspec task organisations:syncXinhui
2015-03-18Initialize migration to new api versionLuc Donnet
2015-01-27add footnotes oo vehiclejourney CSV exportsMichel Etienne
2014-10-16new compilance tests, Mantis 29182,29183,29184Michel Etienne
2014-09-11add vehicle_type_identifier and set id instead of objectid on csv ↵Michel Etienne
vehicle_journey exchange
2014-09-09vehicle journey imports enhancementMichel Etienne
2014-07-01Add export for stop_areas Refs #0026832Luc Donnet
2014-06-30Add stop areas import Refs #0026832Luc Donnet
2014-06-27Initialize stop area import model Refs #0026832Luc Donnet
2014-06-27Fix spec for vehicle journey import Refs #0026843Luc Donnet
2014-06-27Fix vehicle journey import spec Refs #0026843Luc Donnet
2014-06-25Refactoring layout 2nd part Refs #0026847Luc Donnet