Commit Graph

810 Commits

Author SHA1 Message Date
Patrick Otto
9c03615ccc find project paths based on filtered modified files 2017-11-14 17:46:03 +01:00
Luke Kysow
ec3d543c1e When log-level is debug, print filename and line (#189) 2017-11-12 10:11:21 -08:00
Luke Kysow
4670b67934 Merge pull request #175 from hootsuite/server-test
Server test
2017-11-04 11:40:49 -07:00
Luke Kysow
a70f7e46b0 Remove unused code 2017-11-02 07:09:21 -07:00
Luke Kysow
19c32d1124 Rename projectdetector 2017-11-01 08:03:26 -07:00
Luke Kysow
3528ce60ca Fix gometalint errors 2017-11-01 07:43:55 -07:00
Luke Kysow
65a07590de Test server 2017-11-01 07:41:37 -07:00
Luke Kysow
eeb39c5e7f Test plan_executor (#177)
* Refactor modified project detector and test

* Test plan_executor

* Unexport fields

* Update modified_projects_test.go
2017-10-31 20:16:12 -07:00
Luke Kysow
73d04fb89a Add gometalint. Fix errors (#176) 2017-10-31 20:07:41 -07:00
Luke Kysow
6e85321752 Merge pull request #170 from hootsuite/flags
Test cmd/server
2017-10-29 11:38:13 -07:00
Luke Kysow
fe773fe757 Test cmd/server 2017-10-28 18:06:10 -07:00
Luke Kysow
f21331a0f9 Remove now unnecessary sed calls when generating mocks.
Don't need it since https://github.com/petergtz/pegomock/pull/50
was merged.
2017-10-26 06:42:25 -07:00
Luke Kysow
a3e503ce5a Add pre_init and pre_get hooks. Fixes #160 2017-10-23 14:46:28 -07:00
Luke Kysow
9626b5f263 Run fmt, vet, and megacheck on builds (#164)
* Run fmt, vet, and megacheck on builds

* Fix govet and megacheck issues
2017-10-23 11:11:03 -07:00
Luke Kysow
4f624c673c Add blank test files to ensure included in coverage report 2017-10-20 08:21:32 -07:00
Luke Kysow
1586b62425 Extract code from plan/apply into ProjectPreExecute. Test 2017-10-20 06:16:32 -07:00
Luke Kysow
031a1eba4f Refactor plan/apply into ProjectPreExecute 2017-10-19 07:43:10 -07:00
Luke Kysow
e8ba765e56 Refactor pull closed test 2017-10-18 08:22:06 -07:00
Luke Kysow
1caaaa03f7 Test pull request closed handling 2017-10-18 07:55:23 -07:00
Luke Kysow
aadd9ce367 Test EventsController Post() 2017-10-18 07:36:43 -07:00
Luke Kysow
e61d5187d1 Make template printing deterministic 2017-10-18 06:44:44 -07:00
Luke Kysow
fa047c5435 Refactor EventParser to not take reference to ctx 2017-10-18 06:44:44 -07:00
Luke Kysow
75a71a9bbf Extract GHRequestValidator 2017-10-18 06:44:44 -07:00
Luke Kysow
c59b422949 Fmt 2017-10-18 06:44:44 -07:00
Luke Kysow
4dbe8cd0ba Move non-server packages under events 2017-10-18 06:44:44 -07:00
Luke Kysow
55dfc23754 Split Planner into two interfaces 2017-10-18 06:44:44 -07:00
Luke Kysow
1c3fb84112 Move non-server code into events package 2017-10-18 06:44:44 -07:00
Luke Kysow
27e8f53368 Workspace takes only models as arguments 2017-10-18 06:44:44 -07:00
Luke Kysow
a20a5e7474 Run fmt 2017-10-18 06:44:44 -07:00
Luke Kysow
99e4f79f60 Refactor POST /events into its own controller 2017-10-18 06:44:44 -07:00
Luke Kysow
a2b6f2b4f1 Move server code into server package 2017-10-18 06:44:44 -07:00
Luke Kysow
6eeb61d790 Merge pull request #158 from hootsuite/refactoring
Refactor executors. Testing
2017-10-18 06:42:21 -07:00
Luke Kysow
a1d8dcce87 Test additional functionality for status updating 2017-10-12 22:22:28 -07:00
Luke Kysow
1d5efb9f1c Refactor executors. Testing 2017-10-12 22:05:59 -07:00
Luke Kysow
c777ba3067 Update to latest version of go-github (#157) 2017-10-12 23:36:09 -05:00
Luke Kysow
43bad69942 Test pull_closed_executor 2017-10-07 14:38:16 -07:00
Luke Kysow
770b07160b Run fmt 2017-10-06 13:35:35 -07:00
Luke Kysow
e2443aeaf7 Regenerate event_parsing mock 2017-10-06 10:14:18 -07:00
Luke Kysow
023b7742b1 Switch to pegomock for mocking 2017-10-06 10:14:18 -07:00
Luke Kysow
2f34003317 Interfaces for locking and workspace 2017-10-06 10:14:17 -07:00
Luke Kysow
ba236b3362 Test github_comment_renderer 2017-09-29 16:29:41 -07:00
Luke Kysow
7ee8a37d50 Ensure planfile is last arg to apply. Fixes #151 2017-09-28 08:03:05 -07:00
Anubhav Mishra
464cb2f961 Extra arguments environment variables (#150)
* first draft of the populate function

* Now extra arguments can use environment variables. Fixes #146

* now using environment variables while executing terraform commands for variables subsitution

* fix order of terraform command arguments

* Adding single quote around terraform command

* please work this time :)

* fix order for the quote

* fix order for the quote

* Adding single quote around terraform command

* now creating terraform command string to address bash interpolation

* now using 'sh' instead of 'bash' to execute terraform command and added docs about v and env after review
2017-09-25 11:47:02 -07:00
Luke Kysow
cbbd59d09c Move bindata to static package. Clean up coverage script (#149) 2017-09-22 17:58:30 -07:00
Luke Kysow
442cbae540 Run goimports 2017-09-17 18:06:52 -07:00
Luke Kysow
508123041d Test command_handler 2017-09-17 18:04:03 -07:00
Luke Kysow
21bf026229 Rename recover to logPanics to avoid collision with recover builtin 2017-09-17 16:16:31 -07:00
Luke Kysow
c3080810b2 Test HelpExecutor 2017-09-17 02:00:20 -07:00
Luke Kysow
6f9b8145a1 Test ExtractPullData() 2017-09-17 01:44:04 -07:00
Luke Kysow
012b0d4aee Test event_parser 2017-09-16 16:51:39 -07:00