Commit Graph

117 Commits

Author SHA1 Message Date
Luke Kysow
e5b06454ba Fix gas linter errors. Disable err checking since that's handled by errcheck 2017-11-27 21:04:14 -08:00
Luke Kysow
cc924899e5 Add documentation for server, bootstrap and server/events packages 2017-11-26 21:41:06 -08:00
Luke Kysow
76b78c9316 Don't set as-user since not needed for workspace slack apps (#206) 2017-11-22 15:39:39 -08:00
Luke Kysow
acdf771ce7 Switch to newest pegomock library (#205) 2017-11-19 22:41:43 -08:00
Luke Kysow
9dc9434db2 Slack integration (#199)
Thanks to @nicholas-wu-hs !
2017-11-16 20:13:06 -08:00
Luke Kysow
fa43febf60 Gitlab (#190)
Gitlab initial implementation
2017-11-16 13:22:28 -08:00
Luke Kysow
62308e98a3 Test modules filtering bug that was fixed in #193 2017-11-16 12:55:37 -08:00
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