def read(self, request, version, mac=None): check_version(version) node = get_queried_node(request, for_mac=mac) user_data = get_curtin_userdata(node) return HttpResponse( user_data, mimetype='application/octet-stream')
def read(self, request, version, mac=None): check_version(version) node = get_queried_node(request, for_mac=mac) user_data = get_curtin_userdata(request, node) return HttpResponse( user_data, content_type='application/octet-stream')
def test_get_curtin_userdata(self): node = factory.make_node() node.use_fastpath_installer() user_data = get_curtin_userdata(node) # Just check that the user data looks good. self.assertIn("PREFIX='curtin'", user_data)