@@ -56,7 +56,7 @@ func (c *TestUIClient) Close(ctx context.Context) error {
5656func (c * TestUIClient ) CreatePublicKey (ctx context.Context , key string , comment * string , tags []string ) (PublicKey , error ) {
5757 keyParts := strings .Split (key , " " )
5858 if len (keyParts ) < 2 {
59- return PublicKey {}, errors .New ("Invalid key provided" )
59+ return PublicKey {}, errors .New ("invalid key provided" )
6060 }
6161 // algorithm, data := keyParts[0], strings.Join(slices.SliceTo(keyParts, 1, len(keyParts)), " ")
6262 algorithm , data := keyParts [0 ], keyParts [1 ]
@@ -72,7 +72,7 @@ func (c *TestUIClient) GetPublicKey(ctx context.Context, id ID) (PublicKey, erro
7272 }); ok {
7373 return c .publicKeys [i ], nil
7474 }
75- return PublicKey {}, fmt .Errorf ("PublicKey with id %v not found" , id )
75+ return PublicKey {}, fmt .Errorf ("public key with id %v not found" , id )
7676}
7777
7878func (c * TestUIClient ) GetPublicKeys (ctx context.Context , ids ... ID ) ([]PublicKey , error ) {
@@ -95,7 +95,7 @@ func (c *TestUIClient) UpdatePublicKeyTags(ctx context.Context, id ID, tags []st
9595 c .publicKeys [i ].Tags = tags
9696 return nil
9797 }
98- return fmt .Errorf ("PublicKey with id %v not found" , id )
98+ return fmt .Errorf ("public key with id %v not found" , id )
9999}
100100
101101func (c * TestUIClient ) DeletePublicKeys (ctx context.Context , ids ... ID ) error {
@@ -127,7 +127,7 @@ func (c *TestUIClient) GetTarget(ctx context.Context, id ID) (Target, error) {
127127 }); ok {
128128 return c .targets [i ], nil
129129 }
130- return Target {}, fmt .Errorf ("Target with id %v not found" , id )
130+ return Target {}, fmt .Errorf ("target with id %v not found" , id )
131131}
132132
133133func (c * TestUIClient ) GetTargets (ctx context.Context , ids ... ID ) ([]Target , error ) {
@@ -148,7 +148,7 @@ func (c *TestUIClient) UpdateTarget(ctx context.Context, id ID, target Target) e
148148 c .targets [i ].Port = target .Port
149149 return nil
150150 }
151- return fmt .Errorf ("Target with id %v not found" , id )
151+ return fmt .Errorf ("target with id %v not found" , id )
152152}
153153
154154func (c * TestUIClient ) DeleteTargets (ctx context.Context , ids ... ID ) error {
@@ -180,7 +180,7 @@ func (c *TestUIClient) GetAccount(ctx context.Context, id ID) (Account, error) {
180180 }); ok {
181181 return c .accounts [i ], nil
182182 }
183- return Account {}, fmt .Errorf ("Account with id %v not found" , id )
183+ return Account {}, fmt .Errorf ("account with id %v not found" , id )
184184}
185185
186186func (c * TestUIClient ) GetAccounts (ctx context.Context , ids ... ID ) ([]Account , error ) {
0 commit comments