def test_ops_api_disabled_403(self):
        """
        Test that the ops-api endpoint returns 403 when debug API is disabled explicitly.
        """
        with patch.dict('os.environ', {EnvVars.MARQO_ENABLE_OPS_API: 'FALSE'}):
            data = {
                "type": "structured",
                "allFields": [],
                "tensorFields": [],
                "settings_object": {}
            }
            index_name = "test-index"
            response = self.client.post(f"/validate/index/{index_name}", json=data)
            self.assertEqual(response.status_code, 403)

        Test that the ops-api endpoint returns 403 when debug API is disabled explicitly.
        
tests/integ_tests/tensor_search/test_api.py