Skip to content

Commit

Permalink
Adds inital cut at root_test.go
Browse files Browse the repository at this point in the history
  • Loading branch information
Gowiem committed May 5, 2020
1 parent d9ccd5a commit 2a815f4
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions cmd/root_test.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
package cmd

import (
"os"
"testing"

"github.com/stretchr/testify/assert"
)

func TestExecute(t *testing.T) {
assert := assert.New(t)
Execute()
_ = assert
}

func TestInitAws(t *testing.T) {
assert := assert.New(t)
}

func TestGetProfile(t *testing.T) {
assert := assert.New(t)

profile = getProfile()
assert.Equal(profile, "default")

os.Setenv("AWS_PROFILE", "not-default")
profile = getProfile()
assert.Equal(profile, "not-default")
}

0 comments on commit 2a815f4

Please sign in to comment.