-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add
dce auth
; refactor config mgmt, refactor tests
Stuff going on here - Add `dce auth` command - pops you out to a browser at the `/auth` endpoint that @joshmarsh is working on - see #33 - Remove dce.yml configs we aren't using - Configure a AWS creds provider that will load creds from the auth token, but fallback to env vars or the `~/.aws/credentials` file - Run `dce auth` before any command, if we don't have any valid creds in our chain - Refactor how to load and save our config YAML, so it's easier to work with from inside multiple commands - Remove viper dependency (wasn't really being used) - Some other cleanup/refactor around init logic, to get this all wired up properly - I'll try to point these out in the code - New setup for integration tests - These test call our cobra CLI programmatically. For some reasons: - Lets us use debugger to run through tests - Don't need to rebuild for every test run - Can still use mocks at boundaries (eg. mock out web browser call) - I'm hoping this new testing pattern makes it easier to write tests for CLI commands going forward.
- Loading branch information
Edan Schwartz
committed
Nov 22, 2019
1 parent
9cce797
commit d80bf53
Showing
28 changed files
with
946 additions
and
504 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -51,4 +51,6 @@ override.tf.json | |
# Other stuff | ||
*.zip | ||
|
||
junit-report/ | ||
junit-report/ | ||
|
||
dce-cli |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.