MG-888 - Update things SDK tests (#2328)

Signed-off-by: 1998-felix <felix.gateru@gmail.com>
This commit is contained in:
Felix Gateru
2024-07-04 23:30:22 +03:00
committed by GitHub
parent 8596b73375
commit 083e655bde
10 changed files with 1675 additions and 1085 deletions
-21
View File
@@ -99,27 +99,6 @@ var cmdThings = []cobra.Command{
logOK()
},
},
{
Use: "identify <thing_key>",
Short: "Identify thing",
Long: "Validates thing's key and returns its ID\n" +
"Usage:\n" +
"\tmagistrala-cli things identify <thing_key>\n",
Run: func(cmd *cobra.Command, args []string) {
if len(args) != 1 {
logUsage(cmd.Use)
return
}
i, err := sdk.IdentifyThing(args[0])
if err != nil {
logError(err)
return
}
logJSON(i)
},
},
{
Use: "update [<thing_id> <JSON_string> | tags <thing_id> <tags> | secret <thing_id> <secret> ] <user_auth_token>",
Short: "Update thing",