nebius/SWE-rebench-V2-PRs huggingface dataset:
Repository: nats-io/nsc
Pull request #347 (2021-01-19 19:34:50)

[added] option to import account signed by different operator
Signed-off-by: Matthias Hanel <mh@synadia.com>


Patch:
diff --git a/cmd/importaccount.go b/cmd/importaccount.go
index 6557f6e..c3f8506 100644
--- a/cmd/importaccount.go
+++ b/cmd/importaccount.go
@@ -46,6 +46,7 @@ func createImportAccountCmd() *cobra.Command {
 	cmd.Flags().BoolVarP(&params.skip, "skip", "", false, "skip validation issues, they can be edited out prior to push")
 	cmd.Flags().BoolVarP(&params.overwrite, "overwrite", "", false, "overwrite existing account")
 	cmd.Flags().StringVarP(&params.file, "file", "j", "", "account jwt to import")
+	cmd.Flags().BoolVarP(&params.force, "force", "", false, "import account signed by different operator")
 	return cmd
 }
 
@@ -57,6 +58,7 @@ type fileImport struct {
 	file      string
 	skip      bool
 	overwrite bool
+	force     bool
 	content   []byte
 }
 
@@ -161,7 +163,7 @@ func (p *ImportAccount) Run(ctx ActionCtx) (store.Status, error) {
 			r.AddError("only a non managed store can import a self signed account")
 			return r, nil
 		}
-	} else if claim.IsSelfSigned() {
+	} else if claim.IsSelfSigned() || (!sameOperator && p.force) {
 		if jwt, err := claim.Encode(p.signerKP); err != nil {
 			r.AddError("error during encoding of self signed account jwt: %v", err)
 			return r, nil


Test patch:
diff --git a/cmd/importaccount_test.go b/cmd/importaccount_test.go
index 08895bb..5c5b65d 100644
--- a/cmd/importaccount_test.go
+++ b/cmd/importaccount_test.go
@@ -58,19 +58,28 @@ func Test_ImportAccountSelfSigned(t *testing.T) {
 }
 
 func Test_ImportAccountOtherOperator(t *testing.T) {
-	ts := NewTestStore(t, "O")
-	defer ts.Done(t)
-	oKp, _ := nkeys.CreateOperator()
-	akp, _ := nkeys.CreateAccount()
-	pk, _ := akp.PublicKey()
-	ac := jwt.NewAccountClaims(pk)
-	ac.Name = ac.Subject
-	theJWT, err := ac.Encode(oKp)
-	require.NoError(t, err)
-	require.False(t, ac.IsSelfSigned())
-	file := filepath.Join(ts.Dir, "account.jwt")
-	err = ioutil.WriteFile(file, []byte(theJWT), 0666)
-	require.NoError(t, err)
-	_, _, err = ExecuteCmd(createImportAccountCmd(), "--file", file)
-	require.Error(t, err)
+	test := func(force bool) {
+		ts := NewTestStore(t, "O")
+		defer ts.Done(t)
+		oKp, _ := nkeys.CreateOperator()
+		akp, _ := nkeys.CreateAccount()
+		pk, _ := akp.PublicKey()
+		ac := jwt.NewAccountClaims(pk)
+		ac.Name = ac.Subject
+		theJWT, err := ac.Encode(oKp)
+		require.NoError(t, err)
+		require.False(t, ac.IsSelfSigned())
+		file := filepath.Join(ts.Dir, "account.jwt")
+		err = ioutil.WriteFile(file, []byte(theJWT), 0666)
+		require.NoError(t, err)
+		if force {
+			_, _, err = ExecuteCmd(createImportAccountCmd(), "--file", file, "--force")
+			require.NoError(t, err)
+		} else {
+			_, _, err = ExecuteCmd(createImportAccountCmd(), "--file", file)
+			require.Error(t, err)
+		}
+	}
+	test(false)
+	test(true)
 }
Repository: nats-io/nsc
Pull request #385 (2021-04-22 17:23:24)

[fixed] unused source-network option during add user
Signed-off-by: Matthias Hanel <mh@synadia.com>


Patch:
diff --git a/cmd/adduser.go b/cmd/adduser.go
index e238c6d..8d7e3c4 100644
--- a/cmd/adduser.go
+++ b/cmd/adduser.go
@@ -341,6 +341,8 @@ func (p *AddUserParams) generateUserClaim(ctx ActionCtx, r *store.Report) (*jwt.
 		r.Add(s.Details...)
 	}
 
+	uc.Src.Add(p.src...)
+
 	uc.Tags.Add(p.tags...)
 	sort.Strings(uc.Tags)
 
diff --git a/vendor/modules.txt b/vendor/modules.txt
index f9b1c89..4d1fdd9 100644
--- a/vendor/modules.txt
+++ b/vendor/modules.txt
@@ -94,8 +94,6 @@ github.com/nats-io/nkeys
 # github.com/nats-io/nuid v1.0.1
 ## explicit
 github.com/nats-io/nuid
-# github.com/onsi/ginkgo v1.7.0
-## explicit
 # github.com/onsi/gomega v1.4.3
 ## explicit
 # github.com/pelletier/go-toml v1.2.0


Test patch:
diff --git a/cmd/adduser_test.go b/cmd/adduser_test.go
index ba350e5..e30e9f7 100644
--- a/cmd/adduser_test.go
+++ b/cmd/adduser_test.go
@@ -453,3 +453,19 @@ func Test_AddUser_QueuePermissions(t *testing.T) {
 	require.True(t, u.Sub.Allow.Contains("foo queue"))
 	require.True(t, u.Sub.Deny.Contains("bar queue"))
 }
+
+func Test_AddUser_SrcPermissions(t *testing.T) {
+	ts := NewTestStore(t, "O")
+	defer ts.Done(t)
+
+	ts.AddAccount(t, "A")
+
+	_, _, err := ExecuteCmd(HoistRootFlags(CreateAddUserCmd()), "--name", "UA",  "--source-network", "1.2.1.1/29", "--source-network", "1.2.2.2/29,1.2.0.3/32")
+	require.NoError(t, err)
+
+	u, err := ts.Store.ReadUserClaim("A", "UA")
+	require.NoError(t, err)
+	require.True(t, u.Limits.Src.Contains("1.2.1.1/29"))
+	require.True(t, u.Limits.Src.Contains("1.2.2.2/29"))
+	require.True(t, u.Limits.Src.Contains("1.2.0.3/32"))
+}
Repository: nats-io/nsc
Pull request #396 (2021-05-14 23:18:42)

[added] support for account key lookup by name in pubkeyparams
Signed-off-by: Matthias Hanel <mh@synadia.com>


Patch:
diff --git a/cmd/pubkeyparams.go b/cmd/pubkeyparams.go
index 9168ed9..d53454a 100644
--- a/cmd/pubkeyparams.go
+++ b/cmd/pubkeyparams.go
@@ -17,7 +17,6 @@ package cmd
 
 import (
 	"fmt"
-
 	"github.com/nats-io/jwt"
 
 	cli "github.com/nats-io/cliprompts/v2"
@@ -38,10 +37,37 @@ type PubKeyParams struct {
 	AllowWildcard bool
 }
 
+type accountRef string
+
+func (l *accountRef) Set(val string) error {
+	if val == "*" || nkeys.IsValidPublicKey(val) {
+		*l = accountRef(val)
+	} else if s, err := GetConfig().LoadStore(GetConfig().Operator); err != nil {
+		return err
+	} else if claim, err := s.ReadAccountClaim(val); err != nil {
+		return err
+	} else {
+		*l = accountRef(claim.Subject)
+	}
+	return nil
+}
+
+func (l *accountRef) String() string {
+	return string(*l)
+}
+
+func (t *accountRef) Type() string {
+	return "account-ref"
+}
+
 func (e *PubKeyParams) BindFlags(flagName string, shorthand string, kind nkeys.PrefixByte, cmd *cobra.Command) {
 	e.flagName = flagName
 	e.kind = kind
-	cmd.Flags().StringVarP(&e.publicKey, flagName, shorthand, "", flagName)
+	if kind == nkeys.PrefixByteAccount {
+		cmd.Flags().VarP((*accountRef)(&e.publicKey), flagName, shorthand, "")
+	} else {
+		cmd.Flags().StringVarP(&e.publicKey, flagName, shorthand, "", flagName)
+	}
 }
 
 func (e *PubKeyParams) valid(s string) error {


Test patch:
diff --git a/cmd/addimport_test.go b/cmd/addimport_test.go
index 607f06c..9a31576 100644
--- a/cmd/addimport_test.go
+++ b/cmd/addimport_test.go
@@ -195,11 +195,10 @@ func Test_AddPublicImport(t *testing.T) {
 	defer ts.Done(t)
 
 	ts.AddAccount(t, "A")
-	pub := ts.GetAccountPublicKey(t, "A")
 	ts.AddExport(t, "A", jwt.Stream, "foobar.>", true)
 	ts.AddAccount(t, "B")
 
-	_, _, err := ExecuteCmd(createAddImportCmd(), "--account", "B", "--src-account", pub, "--remote-subject", "foobar.>")
+	_, _, err := ExecuteCmd(createAddImportCmd(), "--account", "B", "--src-account", "A", "--remote-subject", "foobar.>")
 	require.NoError(t, err)
 
 	ac, err := ts.Store.ReadAccountClaim("B")
Repository: nats-io/nsc
Pull request #397 (2021-05-17 20:27:43)

added ignore for message that is shown as is to user
fixed formatting


Patch:
diff --git a/cmd/pubkeyparams.go b/cmd/pubkeyparams.go
index d53454a..99bf3b7 100644
--- a/cmd/pubkeyparams.go
+++ b/cmd/pubkeyparams.go
@@ -17,9 +17,9 @@ package cmd
 
 import (
 	"fmt"
-	"github.com/nats-io/jwt"
 
 	cli "github.com/nats-io/cliprompts/v2"
+	"github.com/nats-io/jwt"
 	"github.com/nats-io/nkeys"
 	"github.com/nats-io/nsc/cmd/store"
 	"github.com/spf13/cobra"
diff --git a/cmd/root.go b/cmd/root.go
index e8dee86..3c95677 100644
--- a/cmd/root.go
+++ b/cmd/root.go
@@ -128,7 +128,8 @@ var rootCmd = &cobra.Command{
 						}
 					}
 					if !allowCmdWithJWTV1Store {
-						return fmt.Errorf(`this version of nsc only supports jwtV2. 
+						//lint:ignore ST1005 this message is shown to the user
+						return fmt.Errorf(`This version of nsc only supports jwtV2. 
 If you are using a managed service, check your provider for 
 instructions on how to update your project. In most cases 
 all you need to do is:


Test patch:
diff --git a/cmd/upgradejwt_test.go b/cmd/upgradejwt_test.go
index 19b3eb9..6a5341a 100644
--- a/cmd/upgradejwt_test.go
+++ b/cmd/upgradejwt_test.go
@@ -73,7 +73,7 @@ func executeFailingCmd(t *testing.T, args ...string) {
 	t.Helper()
 	_, _, err := ExecuteCmd(rootCmd, args...) // could be any command
 	require.Error(t, err)
-	require.Contains(t, err.Error(), "this version of nsc only supports jwtV2")
+	require.Contains(t, err.Error(), "This version of nsc only supports jwtV2")
 	require.Contains(t, err.Error(), "upgrade-jwt")
 }
Repository: nats-io/nsc
Pull request #426 (2021-08-09 12:05:06)

[fixed] missing error when response type was set for stream
Signed-off-by: Matthias Hanel <mh@synadia.com>


Patch:
diff --git a/cmd/addexport.go b/cmd/addexport.go
index f2151d6..7a36d54 100644
--- a/cmd/addexport.go
+++ b/cmd/addexport.go
@@ -317,6 +317,8 @@ func (p *AddExportParams) Validate(ctx ActionCtx) error {
 		}
 		p.export.ResponseType = rt
 		p.export.ResponseThreshold = p.responseThreshold
+	} else if ctx.AnySet("response-type") {
+		return errors.New("response type can only be specified in conjunction with service")
 	}
 
 	if err = p.SignerParams.Resolve(ctx); err != nil {


Test patch:
diff --git a/cmd/addexport_test.go b/cmd/addexport_test.go
index 9db8bfd..a4afcda 100644
--- a/cmd/addexport_test.go
+++ b/cmd/addexport_test.go
@@ -42,6 +42,7 @@ func Test_AddExport(t *testing.T) {
 		{createAddExportCmd(), []string{"add", "export", "--subject", "pubservice", "--private", "--service"}, nil, []string{"added private service export \"pubservice\""}, false},
 		{createAddExportCmd(), []string{"add", "export", "--subject", "th.1", "--service", "--response-threshold", "1s"}, nil, []string{"added public service export \"th.1\""}, false},
 		{createAddExportCmd(), []string{"add", "export", "--subject", "th.2", "--response-threshold", "1whatever"}, nil, []string{`time: unknown unit`}, true},
+		{createAddExportCmd(), []string{"add", "export", "--subject", "re", "--response-type", "stream"}, nil, []string{"response type can only be specified in conjunction with service"}, true},
 	}
 
 	tests.Run(t, "root", "add")
Repository: nats-io/nsc
Pull request #436 (2021-11-30 00:46:03)

fixed scoped signing key re-signing issue
Because the user aleady had an issuer, you could never re-sign with a
different key.

Signed-off-by: Matthias Hanel <mh@synadia.com>


Patch:
diff --git a/cmd/adduser.go b/cmd/adduser.go
index 6f2d203..8293ce6 100644
--- a/cmd/adduser.go
+++ b/cmd/adduser.go
@@ -285,10 +285,8 @@ func checkUserForScope(ctx ActionCtx, accountName string, signerKP nkeys.KeyPair
 		return err
 	}
 	if s, ok := ac.SigningKeys.GetScope(pk); ok && s != nil {
-		if uc.Issuer == "" {
-			// set issuer as this is commonly set during encoding but is required next
-			uc.Issuer = pk
-		}
+		// set issuer as this is commonly set during encoding but is required next
+		uc.Issuer = pk
 		if err := s.ValidateScopedSigner(uc); err != nil {
 			return err
 		}


Test patch:
diff --git a/cmd/adduser_test.go b/cmd/adduser_test.go
index cf82832..990a637 100644
--- a/cmd/adduser_test.go
+++ b/cmd/adduser_test.go
@@ -524,3 +524,35 @@ func Test_AddUser_Scoped(t *testing.T) {
 	_, _, err = ExecuteCmd(HoistRootFlags(CreateAddUserCmd()), "--name", "UF", "--tag", "foo", "-K", f.Name())
 	require.NoError(t, err)
 }
+
+func Test_AddUser_RotateScoped(t *testing.T) {
+	ts := NewTestStore(t, "O")
+	defer ts.Done(t)
+	ts.AddAccount(t, "A")
+	// store seed in temporary file
+	newKey := func() string {
+		_, pk, kp := CreateAccountKey(t)
+		_, err := ts.KeyStore.Store(kp)
+		require.NoError(t, err)
+		return pk
+	}
+	pk1 := newKey()
+	_, _, err := ExecuteCmd(createEditAccount(), "--sk", pk1)
+	require.NoError(t, err)
+	_, _, err = ExecuteCmd(createEditSkopedSkCmd(), "--account", "A", "--sk", pk1, "--subs", "5", "--role", "user-role1")
+	require.NoError(t, err)
+	// add and edit user
+	_, _, err = ExecuteCmd(HoistRootFlags(CreateAddUserCmd()), "--name", "UA", "--tag", "foo1", "-K", "user-role1")
+	require.NoError(t, err)
+	_, _, err = ExecuteCmd(HoistRootFlags(createEditUserCmd()), "--name", "UA", "--tag", "foo2", "-K", "user-role1")
+	require.NoError(t, err)
+	// create a second key and resign this user with it
+	pk2 := newKey()
+	_, _, err = ExecuteCmd(createEditAccount(), "--sk", pk2)
+	require.NoError(t, err)
+	_, _, err = ExecuteCmd(createEditSkopedSkCmd(), "--account", "A", "--sk", pk2, "--subs", "5", "--role", "user-role2")
+	require.NoError(t, err)
+	// With the re-signing issue in place, this edit command would fail.
+	_, _, err = ExecuteCmd(HoistRootFlags(createEditUserCmd()), "--name", "UA", "--tag", "foo3", "-K", "user-role2")
+	require.NoError(t, err)
+}
Repository: nats-io/nsc
Pull request #501 (2022-05-25 22:07:49)

Change the wording on the bearer flag
This changes the wording on a log message when the `--bearer` flag is set.
```
# Default value for --bearer is false
$ nsc edit user --deny-sub foo
[ OK ] added deny sub "foo"
[ OK ] generated user creds file `~/.local/share/nats/nsc/keys/creds/dreamy_driscoll/myacc/myusr.creds`
[ OK ] edited user "myusr"

$ nsc edit user --deny-sub foo --bearer=false
[ OK ] ensured bearer is false
[ OK ] added deny sub "foo"
[ OK ] generated user creds file `~/.local/share/nats/nsc/keys/creds/dreamy_driscoll/myacc/myusr.creds`
[ OK ] edited user "myusr"

$ nsc edit user --deny-sub foo --bearer=true
[ OK ] ensured bearer is true
[ OK ] added deny sub "foo"
[ OK ] generated user creds file `~/.local/share/nats/nsc/keys/creds/dreamy_driscoll/myacc/myusr.creds`
[ OK ] edited user "myusr"
```

Fixes https://github.com/nats-io/nsc/issues/405


Patch:
diff --git a/cmd/edituser.go b/cmd/edituser.go
index 7a34b40..0437442 100644
--- a/cmd/edituser.go
+++ b/cmd/edituser.go
@@ -53,7 +53,7 @@ nsc edit user --name <n> --rm <subject>,...
 # To dynamically allow publishing to reply subjects, this works well for service responders:
 nsc edit user --name <n> --allow-pub-response
 
-# A permission to publish a response can be removed after a duration from when 
+# A permission to publish a response can be removed after a duration from when
 # the message was received:
 nsc edit user --name <n> --allow-pub-response --response-ttl 5s
 
@@ -439,7 +439,11 @@ func (p *UserPermissionLimits) Run(ctx ActionCtx, claim *jwt.UserPermissionLimit
 
 	if flags.Changed("bearer") {
 		claim.BearerToken = p.bearer
-		r.AddOK("changed bearer to %t", p.bearer)
+		if flags.Lookup("bearer").DefValue != fmt.Sprint(p.bearer) {
+			r.AddOK("changed bearer to %t", p.bearer)
+		} else {
+			r.AddOK("ignoring change to bearer - value is already %t", p.bearer)
+		}
 	}
 
 	var connTypes jwt.StringList


Test patch:
diff --git a/cmd/edituser_test.go b/cmd/edituser_test.go
index 2d6c579..69b1715 100644
--- a/cmd/edituser_test.go
+++ b/cmd/edituser_test.go
@@ -365,7 +365,7 @@ func Test_EditUserBearerToken(t *testing.T) {
 
 	_, stderr, err = ExecuteCmd(createEditUserCmd(), "--name", "U", "--bearer=false")
 	require.NoError(t, err)
-	require.Contains(t, stderr, "changed bearer to false")
+	require.Contains(t, stderr, "ignoring change to bearer - value is already false")
 
 	u, err = ts.Store.ReadUserClaim("A", "U")
 	require.NoError(t, err)
Repository: kubernetes-sigs/cluster-api-provider-vsphere
Pull request #2425 (2023-10-10 01:24:32)

[release-1.7] :bug: Remove the conditional on ipv6
This is an automated cherry-pick of #2397

/assign chrischdi


Patch:
diff --git a/pkg/services/govmomi/ipam/parse.go b/pkg/services/govmomi/ipam/parse.go
index 74d01f70..bef844c9 100644
--- a/pkg/services/govmomi/ipam/parse.go
+++ b/pkg/services/govmomi/ipam/parse.go
@@ -51,10 +51,10 @@ func parseAddressWithPrefix(ipamAddress *ipamv1.IPAddress) (netip.Prefix, error)
 // does not conflict with the gateway addresses parsed from other
 // ipamv1.IPAddresses on the current device. Gateway addresses must be the same
 // family as the address on the ipamv1.IPAddress. Gateway addresses of one
-// family must match the other addresses of the same family. IPv4 Gateways are
-// required, but IPv6 gateways are not.
+// family must match the other addresses of the same family. A gateway address
+// is optional. If it is not set this function returns `nil, nil`.
 func parseGateway(ipamAddress *ipamv1.IPAddress, addressWithPrefix netip.Prefix, ipamDeviceConfig ipamDeviceConfig) (*netip.Addr, error) {
-	if ipamAddress.Spec.Gateway == "" && addressWithPrefix.Addr().Is6() {
+	if ipamAddress.Spec.Gateway == "" {
 		return nil, nil
 	}
 


Test patch:
diff --git a/pkg/services/govmomi/ipam/status_test.go b/pkg/services/govmomi/ipam/status_test.go
index a37d4c37..ebac0483 100644
--- a/pkg/services/govmomi/ipam/status_test.go
+++ b/pkg/services/govmomi/ipam/status_test.go
@@ -723,8 +723,7 @@ func Test_BuildState(t *testing.T) {
 			g.Expect(ctx.Client.Update(ctx, address1)).NotTo(gomega.HaveOccurred())
 
 			_, err := BuildState(ctx, networkStatus)
-			g.Expect(err).To(gomega.HaveOccurred())
-			g.Expect(err).To(gomega.MatchError("IPAddress my-namespace/vsphereVM1-0-0 has invalid gateway: \"\""))
+			g.Expect(err).NotTo(gomega.HaveOccurred())
 		})
 
 		t.Run("when a provider assigns an IPv6 IPAddress without a Gateway field", func(_ *testing.T) {
Repository: nats-io/nsc
Pull request #542 (2023-01-27 15:06:30)

[FIX] prevented an NPE when auth callout key was provided empty or non nkey value


Patch:
diff --git a/cmd/editauthorization.go b/cmd/editauthorization.go
index f0c0800..35d3cbc 100644
--- a/cmd/editauthorization.go
+++ b/cmd/editauthorization.go
@@ -1,5 +1,5 @@
 /*
- * Copyright 2022 The NATS Authors
+ * Copyright 2018-2023 The NATS Authors
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
@@ -118,8 +118,11 @@ func toPublicKey(s string, kind nkeys.PrefixByte) (string, error) {
 	if err != nil {
 		return "", err
 	}
+	if kp == nil {
+		return "", fmt.Errorf("%q is not a valid %s key", s, kind)
+	}
 	if err := nkeys.CompatibleKeyPair(kp, kind); err != nil {
-		return "", fmt.Errorf("%s is not a valid %s key", s, kind)
+		return "", fmt.Errorf("%q is not a valid %s key", s, kind)
 	}
 	return kp.PublicKey()
 }


Test patch:
diff --git a/cmd/editauthorization_test.go b/cmd/editauthorization_test.go
index 2779e34..7029388 100644
--- a/cmd/editauthorization_test.go
+++ b/cmd/editauthorization_test.go
@@ -1,5 +1,5 @@
 /*
- * Copyright 2022 The NATS Authors
+ * Copyright 2018-2023 The NATS Authors
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
@@ -44,7 +44,7 @@ func Test_EditAuthorizationBadUser(t *testing.T) {
 	_, aPK, _ := CreateAccountKey(t)
 	_, _, err := ExecuteCmd(createEditAuthorizationCallout(), "--auth-user", aPK)
 	require.Error(t, err)
-	require.Equal(t, fmt.Sprintf("%s is not a valid user key", aPK), err.Error())
+	require.Equal(t, fmt.Sprintf("%q is not a valid user key", aPK), err.Error())
 }
 
 func Test_EditAuthorizationBadAccount(t *testing.T) {
@@ -56,7 +56,17 @@ func Test_EditAuthorizationBadAccount(t *testing.T) {
 	_, aPK, _ := CreateUserKey(t)
 	_, _, err := ExecuteCmd(createEditAuthorizationCallout(), "--allowed-account", aPK)
 	require.Error(t, err)
-	require.Equal(t, fmt.Sprintf("%s is not a valid account key", aPK), err.Error())
+	require.Equal(t, fmt.Sprintf("%q is not a valid account key", aPK), err.Error())
+}
+
+func Test_EditAuthorizationBadNonNkey(t *testing.T) {
+	ts := NewTestStore(t, "test")
+	defer ts.Done(t)
+
+	ts.AddAccount(t, "A")
+	_, _, err := ExecuteCmd(createEditAuthorizationCallout(), "--allowed-account", "hello")
+	require.Error(t, err)
+	require.Equal(t, fmt.Sprintf("%q is not a valid account key", "hello"), err.Error())
 }
 
 func Test_EditAuthorizationJustUser(t *testing.T) {