def METHOD_NAME(self):
    """
    Test creating an index through an info call.
    """
    if self.pytest_skip:
        pytest.xfail()
    try:
        self.as_connection.index_remove("test", "names_test_index")
        time.sleep(2)
    except Exception:
        pass
    self.as_connection.info_random_node(
        "sindex-create:ns=test;set=demo;indexname=names_test_index;indexdata=names,string"
    )
    time.sleep(2)
    response = self.as_connection.info_random_node("sindex")
    self.as_connection.index_remove("test", "names_test_index")
    assert "names_test_index" in response