-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #408 from reubenmiller/fix-support-empty-tenant-op…
…tion-values feat(tenantoptions): allow setting tenant option with an explicit empty value
- Loading branch information
Showing
14 changed files
with
103 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
tests: | ||
It creates a tenant option with an empty string value: | ||
command: > | ||
c8y tenantoptions create --category measurement.series.latestvalue --key c8y_Temperature.T --value "" --dry --dryFormat json | | ||
c8y util show --select body -c=false --output json | ||
exit-code: 0 | ||
stdout: | ||
exactly: | | ||
{ | ||
"body": { | ||
"category": "measurement.series.latestvalue", | ||
"key": "c8y_Temperature.T", | ||
"value": "" | ||
} | ||
} | ||
It creates a tenant option without a value: | ||
command: > | ||
c8y tenantoptions create --category measurement.series.latestvalue --key c8y_Temperature.T --dry --dryFormat json | | ||
c8y util show --select body -c=false --output json | ||
exit-code: 0 | ||
stdout: | ||
exactly: | | ||
{ | ||
"body": { | ||
"category": "measurement.series.latestvalue", | ||
"key": "c8y_Temperature.T" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
tests: | ||
It creates a tenant option with an empty string value: | ||
command: > | ||
c8y tenantoptions update --category measurement.series.latestvalue --key c8y_Power.V --value "" --dry --dryFormat json | | ||
c8y util show --select body -c=false --output json | ||
exit-code: 0 | ||
stdout: | ||
exactly: | | ||
{ | ||
"body": { | ||
"value": "" | ||
} | ||
} | ||
It creates a tenant option without a value: | ||
command: > | ||
c8y tenantoptions update --category measurement.series.latestvalue --key c8y_Power.V --dry --dryFormat json | | ||
c8y util show --select body -c=false --output json | ||
exit-code: 0 | ||
stdout: | ||
exactly: | | ||
{ | ||
"body": {} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters