'Tests the scenario where we have compute nodes in the cell but no
compute (VCPU) resource providers yet. This is a failure warning the
compute isn\'t reporting into placement.'

def test_check_resource_providers_no_compute_rps_one_compute(self):

    self._setup_cells()
    cn = objects.ComputeNode(context=context.get_admin_context(), host='fake-host', vcpus=4, memory_mb=(8 * 1024), local_gb=40, vcpus_used=2, memory_mb_used=(2 * 1024), local_gb_used=10, hypervisor_type='fake', hypervisor_version=1, cpu_info='{"arch":    "x86_64"}')
    cn.create()
    self._create_resource_provider(FAKE_IP_POOL_INVENTORY)
    result = self.cmd._check_resource_providers()
    self.assertEqual(status.UpgradeCheckCode.WARNING, result.code)
    self.assertIn('There    are    no    compute    resource    providers    in    the    Placement    service    but    there    are    1    compute    nodes    in    the    deployment.', result.details)
