Details
| ID | GetLicenseID |
|---|---|
| Language | python |
| From Version | 6.5.0 |
| Docker Image | demisto/python3:3.12.13.10404775 |
README
Returns the license ID.
Script Data
Outputs
| Path | Description | Type |
|---|---|---|
| License.ID | The license ID | string |
import demistomock as demisto from GetLicenseID import get_license_id def test_human_readable(mocker): mocker.patch.object(demisto, "getLicenseID", return_value="test_license_id") human_readable_results, context = get_license_id() assert human_readable_results == "### Cortex XSOAR License ID\n|License ID|\n|---|\n| test_license_id |\n" assert context.get("License").get("ID") == "test_license_id"