mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-06-24 10:00:50 +00:00
[CLI] implement forgejo-cli actions generate-secret
(cherry picked from commit6f7905c8ec
) (cherry picked from commit2a958031a9
)
This commit is contained in:
parent
2f264eeeec
commit
946d209f46
2 changed files with 31 additions and 3 deletions
|
@ -16,7 +16,12 @@ func Test_CmdForgejo_Actions(t *testing.T) {
|
|||
onGiteaRun(t, func(*testing.T, *url.URL) {
|
||||
defer test.MockVariable(&setting.Actions.Enabled, true)()
|
||||
|
||||
output := cmdForgejoCaptureOutput(t, []string{"forgejo-cli", "actions", "generate-runner-token"})
|
||||
var output string
|
||||
|
||||
output = cmdForgejoCaptureOutput(t, []string{"forgejo-cli", "actions", "generate-runner-token"})
|
||||
assert.EqualValues(t, 40, len(output))
|
||||
|
||||
output = cmdForgejoCaptureOutput(t, []string{"forgejo-cli", "actions", "generate-secret"})
|
||||
assert.EqualValues(t, 40, len(output))
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue