Skip to content

Commit

Permalink
fixed test purge integration test wrt flatKS. need to change the impo…
Browse files Browse the repository at this point in the history
…rt style and corresponding tests

Signed-off-by: Avi Vaid <avaid1996@gmail.com>
  • Loading branch information
avaid96 committed Aug 11, 2016
1 parent c1c537f commit ef12247
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/notary/integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1440,6 +1440,7 @@ func TestPurge(t *testing.T) {
if len(lines) == 1 && lines[0] == "No signing keys found." {
t.Fail()
}

var targetsKeyID string
for _, line := range lines[2:] {
parts := strings.Fields(line)
Expand All @@ -1453,7 +1454,7 @@ func TestPurge(t *testing.T) {
t.Fail()
}

err = os.Remove(filepath.Join(tempDir, notary.PrivDir, notary.NonRootKeysSubdir, "gun", targetsKeyID+".key"))
err = os.Remove(filepath.Join(tempDir, notary.PrivDir, targetsKeyID+".key"))
require.NoError(t, err)

_, err = runCommand(t, tempDir, "delegation", "purge", "gun", "--key", keyID)
Expand Down

0 comments on commit ef12247

Please # to comment.