Skip to content

Commit

Permalink
fix all GrantMigratorRoleCommandTests
Browse files Browse the repository at this point in the history
  • Loading branch information
brianaj committed Feb 1, 2024
1 parent 9eecd7c commit ae6ca74
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,14 @@ public void Should_Have_Options()
var command = new GrantMigratorRoleCommand();
Assert.NotNull(command);
Assert.Equal("grant-migrator-role", command.Name);
Assert.Equal(6, command.Options.Count);
Assert.Equal(7, command.Options.Count);

TestHelpers.VerifyCommandOption(command.Options, "github-org", true);
TestHelpers.VerifyCommandOption(command.Options, "actor", true);
TestHelpers.VerifyCommandOption(command.Options, "actor-type", true);
TestHelpers.VerifyCommandOption(command.Options, "github-pat", false);
TestHelpers.VerifyCommandOption(command.Options, "verbose", false);
TestHelpers.VerifyCommandOption(command.Options, "ghes-api-url", false);
TestHelpers.VerifyCommandOption(command.Options, "target-api-url", false);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,14 @@ public void Should_Have_Options()
var command = new GrantMigratorRoleCommand();
Assert.NotNull(command);
Assert.Equal("grant-migrator-role", command.Name);
Assert.Equal(6, command.Options.Count);
Assert.Equal(7, command.Options.Count);

TestHelpers.VerifyCommandOption(command.Options, "github-org", true);
TestHelpers.VerifyCommandOption(command.Options, "actor", true);
TestHelpers.VerifyCommandOption(command.Options, "actor-type", true);
TestHelpers.VerifyCommandOption(command.Options, "github-pat", false);
TestHelpers.VerifyCommandOption(command.Options, "verbose", false);
TestHelpers.VerifyCommandOption(command.Options, "ghes-api-url", false);
TestHelpers.VerifyCommandOption(command.Options, "target-api-url", false);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,14 @@ public void Should_Have_Options()
var command = new GrantMigratorRoleCommand();
Assert.NotNull(command);
Assert.Equal("grant-migrator-role", command.Name);
Assert.Equal(6, command.Options.Count);
Assert.Equal(7, command.Options.Count);

TestHelpers.VerifyCommandOption(command.Options, "github-org", true);
TestHelpers.VerifyCommandOption(command.Options, "actor", true);
TestHelpers.VerifyCommandOption(command.Options, "actor-type", true);
TestHelpers.VerifyCommandOption(command.Options, "github-target-pat", false);
TestHelpers.VerifyCommandOption(command.Options, "verbose", false);
TestHelpers.VerifyCommandOption(command.Options, "ghes-api-url", false);
TestHelpers.VerifyCommandOption(command.Options, "target-api-url", false);
}
}

0 comments on commit ae6ca74

Please sign in to comment.