def test_service_enable(self):
        subs = {"host": "host1",
                'binary': 'nova-compute'}
        response = self._do_put('os-services/enable',
                                'service-enable-put-req', subs)
        self._verify_response('service-enable-put-resp', subs, response, 200)
Returns a random index different from the current one.
dataset/ETHPy150Open BU-NU-CLOUD-SP16/Trusted-Platform-Module-nova/nova/tests/functional/api_sample_tests/test_services.py/ServicesJsonTest.test_service_enable--crossover with--dataset/ETHPy150Open beetbox/beets/beetsplug/bpd/__init__.py/BaseServer._random_idx