(t *testing.T)
| 104 | } |
| 105 | |
| 106 | func TestRemoveLastSignerWarning(t *testing.T) { |
| 107 | cli := test.NewFakeCli(&fakeClient{}) |
| 108 | ctx := context.Background() |
| 109 | cli.SetNotaryClient(notaryfake.GetLoadedNotaryRepository) |
| 110 | |
| 111 | err := removeSigner(ctx, cli, signerRemoveOptions{signer: "alice", repos: []string{"signed-repo"}, forceYes: false}) |
| 112 | assert.NilError(t, err) |
| 113 | assert.Check(t, is.Contains(cli.OutBuffer().String(), |
| 114 | "The signer \"alice\" signed the last released version of signed-repo. "+ |
| 115 | "Removing this signer will make signed-repo unpullable. "+ |
| 116 | "Are you sure you want to continue? [y/N]")) |
| 117 | } |
| 118 | |
| 119 | func TestIsLastSignerForReleases(t *testing.T) { |
| 120 | role := data.Role{} |
nothing calls this directly
no test coverage detected
searching dependent graphs…