This is an automated email from the ASF dual-hosted git repository. sciabarracom pushed a commit to branch 0.9.0-rebranding in repository https://gitbox.apache.org/repos/asf/openserverless-cli.git
commit ac9ec5e6161b4c976521dabdf3c8c36131c4493b Author: Michele Sciabarra <[email protected]> AuthorDate: Tue Sep 1 20:12:02 2026 +0200 rebranding --- README.md | 2 +- auth/login.go | 6 +++--- auth/login_test.go | 2 +- tests/awk.bats | 4 ++-- tests/login.bats | 6 +++--- 5 files changed, 10 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 0f4cb1c..62a6275 100644 --- a/README.md +++ b/README.md @@ -210,7 +210,7 @@ The following environment variables are always set and you **can override** them - `OPS_TMP` is a temporary folder where you can store temp files - defaults to `~/.ops/tmp` - `OPS_APIHOST` is the host for `ops -login`. It is used in place of the first argument of `ops -login`. If empty, the command will expect the first argument to be the apihost. -- `OPS_USER` is set the username for `ops -login`. The default is `nuvolaris`. It can be overriden by passing the +- `OPS_USER` is set the username for `ops -login`. The default is `openserverless`. It can be overriden by passing the username as an argument to `ops -login` or by setting the environment variable. - `OPS_PASSWORD`: set the password for `ops -login`. If not set, `ops -login` will prompt for the password. It is useful for tests and non-interactive environments. diff --git a/auth/login.go b/auth/login.go index 4d5d82e..ed85b7c 100644 --- a/auth/login.go +++ b/auth/login.go @@ -43,7 +43,7 @@ type LoginResult struct { const usage = `Usage: ops -login <apihost> [<user>] -Login to an OpenServerless instance. If no user is specified, the default user "nuvolaris" is used. +Login to an OpenServerless instance. If no user is specified, the default user "openserverless" is used. You can set the environment variables OPS_APIHOST and OPS_USER to avoid specifying them on the command line. You can set OPS_PASSWORD to avoid entering the password interactively. @@ -51,8 +51,8 @@ Options: -h, --help Show usage` const whiskLoginPath = "/api/v1/web/whisk-system/nuv/login" -const defaultUser = "nuvolaris" -const opsSecretServiceName = "nuvolaris" +const defaultUser = "openserverless" +const opsSecretServiceName = "openserverless" func LoginCmd() (*LoginResult, error) { diff --git a/auth/login_test.go b/auth/login_test.go index a47daab..e71d3d8 100644 --- a/auth/login_test.go +++ b/auth/login_test.go @@ -83,7 +83,7 @@ func TestLoginCmd(t *testing.T) { }) t.Run("with only apihost, add received credentials", func(t *testing.T) { - mockServer := setupMockServer(t, "nuvolaris", "a password", "{\"AUTH\": \"test\"}") + mockServer := setupMockServer(t, "openserverless", "a password", "{\"AUTH\": \"test\"}") defer mockServer.Close() oldPwdReader := pwdReader diff --git a/tests/awk.bats b/tests/awk.bats index ab4752a..e0274f6 100644 --- a/tests/awk.bats +++ b/tests/awk.bats @@ -44,8 +44,8 @@ setup() { } @test "-awk replace" { - run echo "$(echo "Hello World" | ops -awk '{$2="Nuvolaris"; print $0}')" - assert_line "Hello Nuvolaris" + run echo "$(echo "Hello World" | ops -awk '{$2="OpenServerless"; print $0}')" + assert_line "Hello OpenServerless" assert_success } diff --git a/tests/login.bats b/tests/login.bats index 077b813..7d3a962 100644 --- a/tests/login.bats +++ b/tests/login.bats @@ -34,8 +34,8 @@ setup() { @test "ops -login with OPS_PASSWORD env does not prompt for password" { export OPS_PASSWORD=1234 - run ops -login nuvolaris.dev - assert_line --partial "Logging in https://nuvolaris.dev" + run ops -login openserverless.dev + assert_line --partial "Logging in https://openserverless.dev" refute_line "Enter Password:" } @@ -61,7 +61,7 @@ setup() { unset OPS_USER run ops -login assert_failure - assert_line "Logging in http://localhost as nuvolaris" + assert_line "Logging in http://localhost as openserverless" } @test "ops -login with OPS_APIHOST and OPS_USER env" {
