File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4242 /** Set the path to the data file */
4343 'data_file ' => [
4444 'setting ' => $ _ENV ['TGN_PATH_SETTING ' ] ??
45- 'config/jsons /tgn-settings.json ' ,
45+ 'storage/json/tgn /tgn-settings.json ' ,
4646
4747 'platform ' => [
4848 'gitlab ' => $ _ENV ['TGN_PATH_PLATFORM_GITLAB ' ] ??
49- 'config/jsons /gitlab-events.json ' ,
49+ 'storage/json/tgn /gitlab-events.json ' ,
5050 'github ' => $ _ENV ['TGN_PATH_PLATFORM_GITHUB ' ] ??
51- 'config/jsons /github-events.json ' ,
51+ 'storage/json/tgn /github-events.json ' ,
5252 ],
5353 ],
5454
Original file line number Diff line number Diff line change 2121});
2222
2323it ('platform can be set for event with platform file ' , function () {
24- $ this ->bot ->setPlatFormForEvent ('gitlab ' , 'config/jsons /gitlab-events.json ' );
24+ $ this ->bot ->setPlatFormForEvent ('gitlab ' , 'storage/json/tgn /gitlab-events.json ' );
2525 expect ($ this ->bot ->event ->platform )->toBe ('gitlab ' )
2626 ->and ($ this ->bot ->event ->platformFile )
27- ->toBe ('config/jsons /gitlab-events.json ' );
27+ ->toBe ('storage/json/tgn /gitlab-events.json ' );
2828});
2929
3030it ('can get json config for event - github ' , function () {
3434});
3535
3636it ('can get json config for event - gitlab ' , function () {
37- $ this ->bot ->setPlatFormForEvent ('gitlab ' , 'config/jsons /gitlab-events.json ' );
37+ $ this ->bot ->setPlatFormForEvent ('gitlab ' , 'storage/json/tgn /gitlab-events.json ' );
3838 expect ($ this ->bot ->event ->getEventConfig ())->toBeArray ()
3939 ->and ($ this ->bot ->event ->getEventConfig ())->toHaveKey ('tag_push ' );
4040});
Original file line number Diff line number Diff line change 77});
88
99it ('validates that the event files exist ' , function () {
10- $ this ->nofitier ->setPlatFormForEvent ('gitlab ' , 'config/jsons /gitlab-events.json ' );
10+ $ this ->nofitier ->setPlatFormForEvent ('gitlab ' , 'storage/json/tgn /gitlab-events.json ' );
1111 expect ($ this ->nofitier ->event ->getEventConfig ())->toBeArray ()
1212 ->and ($ this ->nofitier ->event ->getEventConfig ())->toHaveKey ('tag_push ' );
1313
14- $ this ->nofitier ->setPlatFormForEvent ('github ' , 'config/jsons /github-events.json ' );
14+ $ this ->nofitier ->setPlatFormForEvent ('github ' , 'storage/json/tgn /github-events.json ' );
1515 expect ($ this ->nofitier ->event ->getEventConfig ())->toBeArray ()
1616 ->and ($ this ->nofitier ->event ->getEventConfig ())
1717 ->toHaveKey ('issue_comment ' );
Original file line number Diff line number Diff line change 55
66beforeEach (function () {
77 $ this ->bot = new Bot ();
8- $ this ->bot ->updateSetting ('config/jsons /tgn-settings .json ' );
8+ $ this ->bot ->updateSetting ('storage/json /tgn/setting .json ' );
99 $ this ->bot ->setPlatFormForEvent ();
1010 $ this ->validator = new Validator ($ this ->bot ->setting , $ this ->bot ->event );
1111});
You can’t perform that action at this time.
0 commit comments