Skip to content

Commit

Permalink
improving tests
Browse files Browse the repository at this point in the history
  • Loading branch information
chelseakomlo committed Jan 24, 2018
1 parent d16bfda commit 5802f45
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions client/driver/lxc_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ func TestLxcDriver_Fingerprint(t *testing.T) {
Resources: &structs.Resources{},
}

err = d.Fingerprint(request, response)
err := d.Fingerprint(request, response)
if err != nil {
t.Fatalf("err: %v", err)
}
Expand All @@ -65,7 +65,7 @@ func TestLxcDriver_Fingerprint(t *testing.T) {
Resources: &structs.Resources{},
}

err = d.Fingerprint(request, response)
err := d.Fingerprint(request, response)
if err != nil {
t.Fatalf("err: %v", err)
}
Expand Down
4 changes: 4 additions & 0 deletions client/fingerprint/env_aws_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ func TestEnvAWSFingerprint_nonAws(t *testing.T) {
if err != nil {
t.Fatalf("err: %v", err)
}

if len(response.Attributes) > 0 {
t.Fatalf("Should not apply")
}
}

func TestEnvAWSFingerprint_aws(t *testing.T) {
Expand Down
3 changes: 0 additions & 3 deletions client/fingerprint/vault_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,6 @@ func TestVaultFingerprint(t *testing.T) {
if err != nil {
t.Fatalf("Failed to fingerprint: %s", err)
}
if len(response.Attributes) == 0 {
t.Fatalf("Failed to apply node attributes")
}

assertNodeAttributeContains(t, response.Attributes, "vault.accessible")
assertNodeAttributeContains(t, response.Attributes, "vault.version")
Expand Down

0 comments on commit 5802f45

Please sign in to comment.