Commit Graph

33 Commits

Author SHA1 Message Date
suhussai
9921486669 check if err is nil before printing it 2017-11-03 00:28:37 -06:00
Luke Kysow
73d04fb89a Add gometalint. Fix errors (#176) 2017-10-31 20:07:41 -07:00
Luke Kysow
3d361ebd59 Code review fixups 2017-10-28 20:04:15 -07:00
Luke Kysow
fe773fe757 Test cmd/server 2017-10-28 18:06:10 -07:00
Luke Kysow
00642aad14 Enable silencing output to keep tests clean 2017-10-28 10:06:12 -07:00
Luke Kysow
03317b9aa4 Refactoring to enable easier command testing 2017-10-28 09:30:06 -07:00
Luke Kysow
5b4a52446b Initial refactor to allow for testing cmds 2017-10-26 07:15:56 -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
6dc9de175d Remove assume role functionality. Rely on Terraform. Fixes #112 2017-08-15 09:58:41 -07:00
Luke Kysow
ff0f32ca01 Add ability toverify webhook secret. Fixes #34 2017-08-13 22:28:38 -07:00
Luke Kysow
83ac2f72b2 Uppercase URL 2017-08-02 13:40:14 -07:00
Luke Kysow
433f8875c3 Make bootstrap re-runnable. README edits 2017-08-01 22:37:20 -07:00
Luke Kysow
ccdfeae8c1 Default require-approval to false (#88) 2017-07-31 00:15:35 -07:00
Luke Kysow
e728d2548b Add Getting Started instructions. Rename gh-password to gh-token 2017-07-27 13:51:48 -07:00
Anubhav Mishra
c37e8f3590 adding atlantis bootstrap mode to support getting started with atlant… (#80)
* adding atlantis bootstrap mode to support getting started with atlantis for first time users

* removed unwanted confirm variable

* vendoring dependencies

* more vendoring

* more more and more vendoring

* comment about bootstrap package

* Proposed changes (#84)

* reviewed all the comments

* removing required approval flag since we will default to false
2017-07-18 22:02:49 -07:00
Luke Kysow
6ce0bba798 Pass in session to be assumed each time 2017-07-18 09:07:21 -07:00
Luke Kysow
3748e4983b Show errors on invalid flags 2017-07-18 09:06:43 -07:00
Luke Kysow
99a0f0c4df Delete dynamodb locking code since Atlantis only works with disk right now 2017-07-12 09:46:45 -07:00
Luke Kysow
23d6b0cbd6 Write docs for packages 2017-07-09 18:18:36 -07:00
Luke Kysow
7747bc54ed Allow atlantis to be called by the name of the api user 2017-07-08 13:34:23 -07:00
Anubhav Mishra
fc275c1e52 Update server.go 2017-07-02 17:02:30 -07:00
Luke Kysow
3187477a44 Change endpoint from /hooks to /events. Fixes #22 2017-07-02 14:19:35 -07:00
Luke Kysow
5ea4ccd1b2 Remove sshKey hack. Use go-homedir (#63)
* Remove sshKey hack. Use go-homedir

* Add go-homedir lib
2017-07-01 18:03:51 -07:00
Luke Kysow
6dfe20757e Only store plans locally. Keep them in workspace (#60)
* Only store plans locally. Keep them in workspace
2017-07-01 16:50:38 -07:00
Luke Kysow
8fbe662185 Return error if workspace doesn't exist (#61)
* Return error if workspace doesn't exist
* Default data dir to ~/.atlantis. Don't clean workspaces
* Run goimports
2017-07-01 16:17:22 -07:00
Anubhav Mishra
9ff948cb55 Project config (#56)
* first incomplete draft for project config and pre run refactor

* adding prerun and terraform 0.9 and above support

* partial review

* Changes from pull review. Fix approvals

* more clean up and refactor of terraform init and environment commands to support terraform 0.9.0 and above

* making apply similar to plan for appending extra arguments

* review

* missed apply executor changes and fixing tests
2017-07-01 14:51:50 -07:00
Luke Kysow
d50d897274 Refactor status (#41)
* Refactor status into its own struct
* Run gofmt
2017-06-21 09:47:36 -07:00
Luke Kysow
906033e99e Implement local plan storage. Refactor S3 storage (#33)
* added new flags `plan-backend`, `plan-s3-bucket`, `plan-s3-prefix` and deleted `s3-bucket`
* interface `plan.Backend` that is implemented by `file` and `s3`
* simplified s3 code
* didn't end up following my suggestions in #30 since storing stuff in metadata requires you to `Get` the object *first* and then use the metadata. By parsing the `Key` to get repo, pull, path, and env, it skips an initial `Get` step, and I can download directly to the correct directory
* allow users to specify `application/json` or `application/x-www-form-urlencoded` for the webhook delivery type
* remove sending of special header for pull request api (fixes #11)

Closes #30 and #17 and #11
2017-06-20 00:22:42 -07:00
Luke Kysow
a837298f5e Alphabetize flags 2017-06-17 15:05:12 -07:00
Luke Kysow
d425de95fa Refactoring
* set version in one place
* rename ExecutionContext to CommandContext
* delete unneeded PullRequestContext since it just duplicated what is in CommandContext
* split fields inside CommandContext into Repo, PullRequest, and User models
* clean up unused fields
* remove base_executor stuff which was trying to do inheritance in go and didn't get us anywhere
* clean up unused code and assets
* created a locking.Client that creates the Keys that are used on the front-end. This allows the backends to store the locks any way they like as long as they support the interface
2017-06-17 14:14:21 -07:00
Luke Kysow
57f188f95f Unlock locks when pull request merged (#19)
* Add new FindLocksForPull method to locking backends
* Listen for pull request closed events and delete locks
* DynamoDB handling its own serialization. Implement LocksByPull
* Fix routing to work with encoded lockID
* Move locking backends to individual packages
* Change flag from locking-table to locking-dynamodb-table
2017-06-13 22:48:34 -07:00
Anubhav Mishra
dfe31f44b1 fixing default github api url 2017-06-10 19:25:33 -07:00
Luke Kysow
d1bda5ff28 Use cobra and viper for cli/config (#20)
* #15 Use cobra and viper for cli/config

* Run gofmt
2017-06-07 21:20:37 -07:00