Skip to content

Commit

Permalink
include test
Browse files Browse the repository at this point in the history
  • Loading branch information
srunde3 committed Mar 14, 2024
1 parent 176f473 commit 6f54585
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions landscape/client/broker/tests/test_registration.py
Original file line number Diff line number Diff line change
Expand Up @@ -660,6 +660,16 @@ def test_default_hostname(self):
messages = self.mstore.get_pending_messages()
self.assertEqual(socket.getfqdn(), messages[0]["hostname"])

def test_ubuntu_pro_info_present_in_registration(self):
"""Ubuntu Pro info is included to handle licensing in Server"""
self.mstore.set_server_api(b"3.3")
self.mstore.set_accepted_types(["register"])
self.config.computer_title = "Computer Title"
self.config.account_name = "account_name"
self.reactor.fire("pre-exchange")
messages = self.mstore.get_pending_messages()
self.assertIn("ubuntu_pro_info", messages[0])


class JujuRegistrationHandlerTest(RegistrationHandlerTestBase):

Expand Down

0 comments on commit 6f54585

Please sign in to comment.