Skip to content

Commit

Permalink
Add rhsm.environments to schema
Browse files Browse the repository at this point in the history
  • Loading branch information
Tomboyo committed Dec 4, 2024
1 parent 7f5aff3 commit 547cdd8
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
10 changes: 10 additions & 0 deletions schemas/system_profile/v1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -592,6 +592,16 @@ $defs:
example: "8.1, 7.5, 9.9"
type: string
maxLength: 255
environments:
description: UUIDs of environments ("content templates") the system is subscribed to.
example: ["262e621d10ae4475ab5732b39a9160b2"]
type: array
items:
description: An environment UUID.
type: string
example: "262e621d10ae4475ab5732b39a9160b2, 01fd642e02de4e6da2da6172081a971e"
pattern: '[0-9a-f]{32}'

system_purpose:
description: Object for system purpose information
type: object
Expand Down
2 changes: 2 additions & 0 deletions tests/utils/invalids.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,8 @@
{"network_interfaces": [{"ipv6_addresses": "0123:4567:89ab:cdef:0123:4567:89ab:cdef"}]},
{"network_interfaces": [{"mtu": "15"}]},
{"rhsm": {"version": "x" * 300}},
{"rhsm": {"environments": ["46b6e690-cc6a-4906-a3c9-af4bca6e507d"]}},
{"rhsm": {"environments": "46b6e690-cc6a-4906-a3c9-af4bca6e507d"}},
{"operating_system": {"name": "RHEL"}}, # Incomplete OS definition
{"operating_system": {"name": "RHEL", "major": 9}}, # Incomplete OS definition
{"operating_system": {"major": 8, "minor": 7}}, # Incomplete OS definition
Expand Down
1 change: 1 addition & 0 deletions tests/utils/valids.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@
{"network_interfaces": [{"ipv6_addresses": ["0123:4567:89ab:cdef:0123:4567:89ab:cdef"]}]},
{"network_interfaces": [{"mtu": 15}]},
{"rhsm": {"version": "99Server"}},
{"rhsm": {"environments": ["46b6e690cc6a4906a3c9af4bca6e507d"]}},
{"operating_system": {"name": "RHEL", "major": 8, "minor": 10}},
{"operating_system": {"name": "CentOS", "major": 7, "minor": 0}},
{"operating_system": {"name": "CentOS Linux", "major": 7, "minor": 0}},
Expand Down

0 comments on commit 547cdd8

Please sign in to comment.