Created
November 14, 2016 18:24
-
-
Save nicomen/cbebe3192ed15ea72ffbe8c9b57236da to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ git clone -b dev [email protected]:reisegiganten/libraries.git --depth=1 libraries-dev | |
Cloning into 'libraries-dev'... | |
warning: templates not found /home/nicolasm/.gittemplate | |
remote: Counting objects: 525, done. | |
remote: Compressing objects: 100% (485/485), done. | |
remote: Total 525 (delta 52), reused 196 (delta 17), pack-reused 0 | |
Receiving objects: 100% (525/525), 10.66 MiB | 1.97 MiB/s, done. | |
Resolving deltas: 100% (52/52), done. | |
Checking connectivity... done. | |
✔ 19:21 /projects/Reisegiganten $ cd libraries-dev/ | |
✔ 19:21 /projects/Reisegiganten/libraries-dev [ dev | ✔ ] $ rm -rf /tmp/rg* | |
✔ 19:23 /projects/Reisegiganten/libraries-dev [ dev | ✔ ] $ rm -rf /tmp/bootstrap_done | |
✔ 19:23 /projects/Reisegiganten/libraries-dev [ dev | ✔ ] $ prove -lv t/00-setup.t t/Supplier/API/thomascook/Ving_SE.t | |
t/00-setup.t ......................... | |
# Loaded configs: share/etc/system.conf, share/etc/system_test.conf | |
# 2016-11-14 19:24:02.294 +0.000 [3612 ] INFO : t/../share/bootstrap/setup.pl:43 => Started bootstrapping | |
# 2016-11-14 19:24:02.448 +0.016 [3612 ] INFO : t/../share/bootstrap/setup.pl:43 => Executing /projects/Reisegiganten/libraries-dev/share/bootstrap/dbs/rg/000-init.sql for db: rg (SQLite) | |
# 2016-11-14 19:24:04.568 +2.524 [3612 ] INFO : t/../share/bootstrap/setup.pl:43 => Executing /projects/Reisegiganten/libraries-dev/share/bootstrap/dbs/rg/000-rg.sql for db: rg (SQLite) | |
# 2016-11-14 19:24:04.570 +0.002 [3612 ] INFO : t/../share/bootstrap/setup.pl:43 => Executing /projects/Reisegiganten/libraries-dev/share/bootstrap/dbs/rg/020-config.sql for db: rg (SQLite) | |
# 2016-11-14 19:24:04.572 +0.002 [3612 ] INFO : t/../share/bootstrap/setup.pl:43 => Executing /projects/Reisegiganten/libraries-dev/share/bootstrap/dbs/rg/040-users.sql for db: rg (SQLite) | |
# 2016-11-14 19:24:04.574 +0.001 [3612 ] INFO : t/../share/bootstrap/setup.pl:43 => Executing /projects/Reisegiganten/libraries-dev/share/bootstrap/dbs/rg/050-destination.sql for db: rg (SQLite) | |
# 2016-11-14 19:24:04.575 +0.002 [3612 ] INFO : t/../share/bootstrap/setup.pl:43 => Executing /projects/Reisegiganten/libraries-dev/share/bootstrap/dbs/rg/060-old_prepackaged_locations.sql for db: rg (SQLite) | |
# 2016-11-14 19:24:04.673 +0.098 [3612 ] INFO : t/../share/bootstrap/setup.pl:43 => Executing /projects/Reisegiganten/libraries-dev/share/bootstrap/dbs/rg/060-old_prepackaged_stats.sql for db: rg (SQLite) | |
# 2016-11-14 19:24:04.676 +0.003 [3612 ] INFO : t/../share/bootstrap/setup.pl:43 => Executing /projects/Reisegiganten/libraries-dev/share/bootstrap/dbs/rg/101-add_destination_indexing_cronjob.sql for db: rg (SQLite) | |
# 2016-11-14 19:24:04.677 +0.001 [3612 ] INFO : t/../share/bootstrap/setup.pl:43 => Executing /projects/Reisegiganten/libraries-dev/share/bootstrap/dbs/rg/102-TripadvisorID_changed_to_varchar.sql for db: rg (SQLite) | |
# 2016-11-14 19:24:04.680 +0.003 [3612 ] INFO : t/../share/bootstrap/setup.pl:43 => Executing /projects/Reisegiganten/libraries-dev/share/bootstrap/dbs/rg/103-Hotel_destination_can_be_null.sql for db: rg (SQLite) | |
# 2016-11-14 19:24:04.681 +0.001 [3612 ] INFO : t/../share/bootstrap/setup.pl:43 => Executing /projects/Reisegiganten/libraries-dev/share/bootstrap/dbs/rg/104-Supplier_destination_needs_country+lat+lng.sql for db: rg (SQLite) | |
# 2016-11-14 19:24:04.687 +0.006 [3612 ] INFO : t/../share/bootstrap/setup.pl:43 => Executing /projects/Reisegiganten/libraries-dev/share/bootstrap/dbs/rg/105-lat+lng_should_be_varchar_in_supplier_link.sql for db: rg (SQLite) | |
# 2016-11-14 19:24:04.688 +0.001 [3612 ] INFO : t/../share/bootstrap/setup.pl:43 => Executing /projects/Reisegiganten/libraries-dev/share/bootstrap/dbs/rg/106-Index-Purging-Cronjob.sql for db: rg (SQLite) | |
# 2016-11-14 19:24:04.689 +0.001 [3612 ] INFO : t/../share/bootstrap/setup.pl:43 => Executing /projects/Reisegiganten/libraries-dev/share/bootstrap/dbs/rg/107-Supplier_destinations_needs_is_unmappable+last_updated+last_updated_by.sql for db: rg (SQLite) | |
# 2016-11-14 19:24:04.690 +0.002 [3612 ] INFO : t/../share/bootstrap/setup.pl:43 => Executing /projects/Reisegiganten/libraries-dev/share/bootstrap/dbs/rg/108-Added_hotel_supplier_link_checksum.sql for db: rg (SQLite) | |
# 2016-11-14 19:24:04.691 +0.001 [3612 ] INFO : t/../share/bootstrap/setup.pl:43 => Executing /projects/Reisegiganten/libraries-dev/share/bootstrap/dbs/rg/109-hotel_supplier_link.hotel+key+no+longer+unique.sql for db: rg (SQLite) | |
# 2016-11-14 19:24:04.692 +0.000 [3612 ] INFO : t/../share/bootstrap/setup.pl:43 => Executing /projects/Reisegiganten/libraries-dev/share/bootstrap/dbs/rg/110-hotel_supplier_link.json-text-field.sql for db: rg (SQLite) | |
# 2016-11-14 19:24:04.692 +0.001 [3612 ] INFO : t/../share/bootstrap/setup.pl:43 => Executing /projects/Reisegiganten/libraries-dev/share/bootstrap/dbs/rg/111-hotel_supplier_link.lastupdated.sql for db: rg (SQLite) | |
# 2016-11-14 19:24:04.693 +0.001 [3612 ] INFO : t/../share/bootstrap/setup.pl:43 => Executing /projects/Reisegiganten/libraries-dev/share/bootstrap/dbs/rg/112-hotel_db_cleanup.sql for db: rg (SQLite) | |
# 2016-11-14 19:24:04.694 +0.001 [3612 ] INFO : t/../share/bootstrap/setup.pl:43 => Executing /projects/Reisegiganten/libraries-dev/share/bootstrap/dbs/rg/113-Cronjob_solr_stats.sql for db: rg (SQLite) | |
# 2016-11-14 19:24:04.695 +0.001 [3612 ] INFO : t/../share/bootstrap/setup.pl:43 => Executing /projects/Reisegiganten/libraries-dev/share/bootstrap/dbs/rg/114-Cronjob_index-cleaner.sql for db: rg (SQLite) | |
# 2016-11-14 19:24:04.696 +0.001 [3612 ] INFO : t/../share/bootstrap/setup.pl:43 => Executing /projects/Reisegiganten/libraries-dev/share/bootstrap/dbs/rg/115-configuration-book_tracking.sql for db: rg (SQLite) | |
# 2016-11-14 19:24:04.698 +0.002 [3612 ] INFO : t/../share/bootstrap/setup.pl:43 => Executing /projects/Reisegiganten/libraries-dev/share/bootstrap/dbs/rg/116-onthebeach-eBeach.sql for db: rg (SQLite) | |
# 2016-11-14 19:24:04.698 +0.001 [3612 ] INFO : t/../share/bootstrap/setup.pl:43 => Executing /projects/Reisegiganten/libraries-dev/share/bootstrap/dbs/rg/117-Cronjob_updates.sql for db: rg (SQLite) | |
# 2016-11-14 19:24:04.700 +0.001 [3612 ] INFO : t/../share/bootstrap/setup.pl:43 => Executing /projects/Reisegiganten/libraries-dev/share/bootstrap/dbs/rg/118-import_stats.sql for db: rg (SQLite) | |
# 2016-11-14 19:24:05.864 +0.308 [3612 ] INFO : t/../share/bootstrap/setup.pl:43 => Executing /projects/Reisegiganten/libraries-dev/share/bootstrap/dbs/rg/119-Hotel_ignored_tbl.sql for db: rg (SQLite) | |
# 2016-11-14 19:24:05.277 +0.269 [3612 ] INFO : t/../share/bootstrap/setup.pl:43 => Executing /projects/Reisegiganten/libraries-dev/share/bootstrap/dbs/rg/120-fixup-tracking-values.sql for db: rg (SQLite) | |
# 2016-11-14 19:24:05.278 +0.001 [3612 ] INFO : t/../share/bootstrap/setup.pl:43 => Executing /projects/Reisegiganten/libraries-dev/share/bootstrap/dbs/rg/121-supplier_visibility.sql for db: rg (SQLite) | |
# 2016-11-14 19:24:05.279 +0.001 [3612 ] INFO : t/../share/bootstrap/setup.pl:43 => Executing /projects/Reisegiganten/libraries-dev/share/bootstrap/dbs/rg/122-Move_lat+lng_to_destination.sql for db: rg (SQLite) | |
# 2016-11-14 19:24:05.280 +0.001 [3612 ] INFO : t/../share/bootstrap/setup.pl:43 => Executing /projects/Reisegiganten/libraries-dev/share/bootstrap/dbs/rg/123_create_destination_feature_table.sql for db: rg (SQLite) | |
# 2016-11-14 19:24:05.574 +0.294 [3612 ] INFO : t/../share/bootstrap/setup.pl:43 => Executing /projects/Reisegiganten/libraries-dev/share/bootstrap/dbs/rg/124-remove-dest-core-indexer.sql for db: rg (SQLite) | |
# 2016-11-14 19:24:05.577 +0.003 [3612 ] INFO : t/../share/bootstrap/setup.pl:43 => Executing /projects/Reisegiganten/libraries-dev/share/bootstrap/dbs/rg/125-add-destination-translation.sql for db: rg (SQLite) | |
# 2016-11-14 19:24:05.903 +0.326 [3612 ] INFO : t/../share/bootstrap/setup.pl:43 => Executing /projects/Reisegiganten/libraries-dev/share/bootstrap/dbs/rg/126-cronjob-lastrun-5.7-compat.sql for db: rg (SQLite) | |
# 2016-11-14 19:24:05.904 +0.001 [3612 ] INFO : t/../share/bootstrap/setup.pl:43 => Executing /projects/Reisegiganten/libraries-dev/share/bootstrap/dbs/rg/127-supplier-add-group-name.sql for db: rg (SQLite) | |
# 2016-11-14 19:24:05.904 +0.001 [3612 ] INFO : t/../share/bootstrap/setup.pl:43 => created dbs | |
# 2016-11-14 19:24:05.906 +0.001 [3612 ] INFO : t/../share/bootstrap/setup.pl:43 => Executing /projects/Reisegiganten/libraries-dev/share/bootstrap/dbs/rgcms_travel/00-init.sql for db: rgcms_travel (SQLite) | |
# 2016-11-14 19:24:06.748 +0.843 [3612 ] INFO : t/../share/bootstrap/setup.pl:43 => Executing /projects/Reisegiganten/libraries-dev/share/bootstrap/dbs/rgcms_travel/10-data.sql for db: rgcms_travel (SQLite) | |
# 2016-11-14 19:24:06.828 +0.080 [3612 ] INFO : t/../share/bootstrap/setup.pl:43 => created dbs | |
# 2016-11-14 19:24:06.830 +0.001 [3612 ] INFO : t/../share/bootstrap/setup.pl:43 => Executing /projects/Reisegiganten/libraries-dev/share/bootstrap/dbs/rgcms_campaign/00-init.sql for db: rgcms_campaign (SQLite) | |
# 2016-11-14 19:24:07.676 +0.846 [3612 ] INFO : t/../share/bootstrap/setup.pl:43 => Executing /projects/Reisegiganten/libraries-dev/share/bootstrap/dbs/rgcms_campaign/10-data.sql for db: rgcms_campaign (SQLite) | |
# 2016-11-14 19:24:08.194 +0.518 [3612 ] INFO : t/../share/bootstrap/setup.pl:43 => created dbs | |
# 2016-11-14 19:24:08.198 +0.004 [3612 ] INFO : t/../share/bootstrap/setup.pl:43 => Executing /projects/Reisegiganten/libraries-dev/share/bootstrap/dbs/rgcms_content/00-init.sql for db: rgcms_content (SQLite) | |
# 2016-11-14 19:24:09.399 +0.842 [3612 ] INFO : t/../share/bootstrap/setup.pl:43 => Executing /projects/Reisegiganten/libraries-dev/share/bootstrap/dbs/rgcms_content/10-data.sql for db: rgcms_content (SQLite) | |
# 2016-11-14 19:24:09.183 +0.144 [3612 ] INFO : t/../share/bootstrap/setup.pl:43 => created dbs | |
# Loaded configs: share/etc/supplier.conf | |
# 2016-11-14 19:24:09.419 +0.235 [3612 ] INFO : t/../share/bootstrap/setup.pl:43 => Added suppliers | |
# Loaded configs: share/etc/supplier.conf | |
# 2016-11-14 19:24:09.492 +0.073 [3612 ] INFO : t/../share/bootstrap/setup.pl:43 => Added supplier cronjobs | |
# 2016-11-14 19:24:16.783 +7.291 [3612 ] INFO : t/../share/bootstrap/setup.pl:43 => Imported 48020 destinations | |
# 2016-11-14 19:24:16.793 +0.010 [3612 ] INFO : t/../share/bootstrap/setup.pl:43 => Set 253 World -> country relations | |
# 2016-11-14 19:24:16.807 +0.015 [3612 ] INFO : t/../share/bootstrap/setup.pl:43 => Set 242 Country -> capitals relations | |
# 2016-11-14 19:24:18.132 +1.324 [3612 ] INFO : t/../share/bootstrap/setup.pl:43 => Set 39343 Country -> city relations | |
# 2016-11-14 19:24:18.527 +0.396 [3612 ] INFO : t/../share/bootstrap/setup.pl:43 => Set 8181 Country -> airport relations | |
# 2016-11-14 19:24:19.384 +0.856 [3612 ] INFO : t/../share/bootstrap/setup.pl:43 => Set 48020 translations | |
# 2016-11-14 19:24:27.776 +8.392 [3612 ] INFO : t/../share/bootstrap/setup.pl:43 => Imported 9884 weather yr URLs | |
ok 1 - Bootstrap succeeded | |
1..1 | |
# 2016-11-14 19:24:28.705 +0.294 [3612 ] INFO : t/../share/bootstrap/setup.pl:43 => Spent 27 secs bootstrapping | |
ok | |
t/Supplier/API/thomascook/Ving_SE.t .. | |
ok 1 - Created Supplier. | |
# Loaded configs: share/etc/supplier.conf | |
ok 2 - RG::Supplier->can('supplier_info') | |
# Loaded configs: share/etc/system.conf, share/etc/system_test.conf | |
ok 3 - Supplier can get hotel data | |
ok 4 - Hotel import passed | |
ok 5 - hotel has no missing required fields | |
ok 6 - Testing the right hotel | |
ok 7 - hotel doesn't have ac | |
ok 8 - hotel has a bar | |
ok 9 - corect destination_name | |
ok 10 - flight only | |
ok 11 - Correct destination on flight only | |
ok 12 - All inclusive | |
ok 13 - hotel has no missing required fields | |
ok 14 - Testing the right hotel | |
ok 15 - hotel has a bar | |
ok 16 - hotel doesn't have ac | |
ok 17 - Correct destination_name | |
ok 18 - Got correct offer destination based on hotel data | |
1..18 | |
ok | |
All tests successful. | |
Files=2, Tests=19, 29 wallclock secs ( 0.04 usr 0.01 sys + 27.48 cusr 1.58 csys = 29.11 CPU) | |
Result: PASS |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment