[Asterisk-code-review] sorcery: Add SorceryMemoryCache AMI action tests. (testsuite[master])

Joshua Colp asteriskteam at digium.com
Thu Jun 4 05:38:39 CDT 2015


Hello Kevin Harwell,

I'd like you to reexamine a change.  Please visit

    https://gerrit.asterisk.org/544

to look at the new patch set (#2).

Change subject: sorcery: Add SorceryMemoryCache AMI action tests.
......................................................................

sorcery: Add SorceryMemoryCache AMI action tests.

This change adds tests for the res_sorcery_memory_cache AMI actions.

memory_cache_expire expires all objects within a sorcery
memory cache, confirms removal, and confirms the backend is
queried when retrieved again.

memory_cache_expire_object expires a specific object within a
sorcery memory cache, confirms removal, and confirms the backend
is queried when retrieved again.

memory_cache_stale marks all objects as stale within a
sorcery memory cache, removes them from the backend, performs
a retrieve to force a refresh, waits for a refresh test event,
and confirms that an object can no longer be retrieved.

memory_cache_stale_object marks one object as stale within a
sorcery memory cache, removes it from the backend, performs
a retrieve to force a refresh, waits for a refresh test event,
and confirms that the object can no longer be retrieved.

ASTERISK-25067
Reported by Matt Jordan

Change-Id: I8fc051a92f52ae4e8e064333138157f28fabfa5f
---
A tests/sorcery/memory_cache_expire/configs/ast1/extconfig.conf
A tests/sorcery/memory_cache_expire/configs/ast1/sorcery.conf
A tests/sorcery/memory_cache_expire/memory_cache_expire.py
A tests/sorcery/memory_cache_expire/test-config.yaml
A tests/sorcery/memory_cache_expire_object/configs/ast1/extconfig.conf
A tests/sorcery/memory_cache_expire_object/configs/ast1/sorcery.conf
A tests/sorcery/memory_cache_expire_object/memory_cache_expire_object.py
A tests/sorcery/memory_cache_expire_object/test-config.yaml
A tests/sorcery/memory_cache_stale/configs/ast1/extconfig.conf
A tests/sorcery/memory_cache_stale/configs/ast1/sorcery.conf
A tests/sorcery/memory_cache_stale/memory_cache_stale.py
A tests/sorcery/memory_cache_stale/test-config.yaml
A tests/sorcery/memory_cache_stale_object/configs/ast1/extconfig.conf
A tests/sorcery/memory_cache_stale_object/configs/ast1/sorcery.conf
A tests/sorcery/memory_cache_stale_object/memory_cache_stale_object.py
A tests/sorcery/memory_cache_stale_object/test-config.yaml
A tests/sorcery/tests.yaml
M tests/tests.yaml
18 files changed, 605 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.asterisk.org:29418/testsuite refs/changes/44/544/2
-- 
To view, visit https://gerrit.asterisk.org/544
To unsubscribe, visit https://gerrit.asterisk.org/settings

Gerrit-MessageType: newpatchset
Gerrit-Change-Id: I8fc051a92f52ae4e8e064333138157f28fabfa5f
Gerrit-PatchSet: 2
Gerrit-Project: testsuite
Gerrit-Branch: master
Gerrit-Owner: Joshua Colp <jcolp at digium.com>
Gerrit-Reviewer: Joshua Colp <jcolp at digium.com>
Gerrit-Reviewer: Kevin Harwell <kharwell at digium.com>
Gerrit-Reviewer: Mark Michelson <mmichelson at digium.com>



More information about the asterisk-code-review mailing list