-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #437 from justaugustus/330
filepromoter: Prefer `Confirm` instead of `DryRun`
- Loading branch information
Showing
10 changed files
with
45 additions
and
39 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 |
---|---|---|
@@ -1 +1 @@ | ||
3.2.1 | ||
3.3.0-beta.0 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,7 +28,7 @@ func Test_useStorageClientAuth(t *testing.T) { | |
type args struct { | ||
filestore *api.Filestore | ||
useServiceAccount bool | ||
dryRun bool | ||
confirm bool | ||
} | ||
tests := []struct { | ||
name string | ||
|
@@ -42,7 +42,7 @@ func Test_useStorageClientAuth(t *testing.T) { | |
filestore: &api.Filestore{ | ||
ServiceAccount: "[email protected]", | ||
}, | ||
dryRun: false, | ||
confirm: true, | ||
}, | ||
want: true, | ||
wantErr: false, | ||
|
@@ -51,7 +51,7 @@ func Test_useStorageClientAuth(t *testing.T) { | |
name: "production without service account", | ||
args: args{ | ||
filestore: &api.Filestore{}, | ||
dryRun: false, | ||
confirm: true, | ||
}, | ||
want: false, | ||
wantErr: true, | ||
|
@@ -62,7 +62,7 @@ func Test_useStorageClientAuth(t *testing.T) { | |
filestore: &api.Filestore{ | ||
Src: true, | ||
}, | ||
dryRun: false, | ||
confirm: true, | ||
}, | ||
want: false, | ||
wantErr: false, | ||
|
@@ -71,7 +71,7 @@ func Test_useStorageClientAuth(t *testing.T) { | |
name: "non-production", | ||
args: args{ | ||
filestore: &api.Filestore{}, | ||
dryRun: true, | ||
confirm: false, | ||
}, | ||
want: false, | ||
wantErr: false, | ||
|
@@ -80,7 +80,7 @@ func Test_useStorageClientAuth(t *testing.T) { | |
name: "non-production with service account failure", | ||
args: args{ | ||
filestore: &api.Filestore{}, | ||
dryRun: true, | ||
confirm: false, | ||
useServiceAccount: true, | ||
}, | ||
want: false, | ||
|
@@ -92,7 +92,7 @@ func Test_useStorageClientAuth(t *testing.T) { | |
filestore: &api.Filestore{ | ||
ServiceAccount: "[email protected]", | ||
}, | ||
dryRun: true, | ||
confirm: false, | ||
useServiceAccount: true, | ||
}, | ||
want: true, | ||
|
@@ -104,7 +104,7 @@ func Test_useStorageClientAuth(t *testing.T) { | |
got, err := useStorageClientAuth( | ||
tt.args.filestore, | ||
tt.args.useServiceAccount, | ||
tt.args.dryRun, | ||
tt.args.confirm, | ||
) | ||
|
||
if tt.wantErr { | ||
|
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