Class SnapshotStoreSpec
This spec aims to verify custom SnapshotStore implementations.
Every custom authors snapshot store spec should have it's spec suite included.
Inheritance
SnapshotStoreSpec
Assembly: Akka.Persistence.TCK.dll
Syntax
public abstract class SnapshotStoreSpec : PluginSpec, IActorRefFactory, IDisposable
Constructors
|
Edit this page
View Source
SnapshotStoreSpec(ActorSystem, ITestOutputHelper)
Declaration
protected SnapshotStoreSpec(ActorSystem system = null, ITestOutputHelper output = null)
Parameters
Type |
Name |
Description |
ActorSystem |
system |
|
ITestOutputHelper |
output |
|
|
Edit this page
View Source
SnapshotStoreSpec(ActorSystemSetup, string, ITestOutputHelper)
Declaration
protected SnapshotStoreSpec(ActorSystemSetup setup, string actorSystemName = null, ITestOutputHelper output = null)
Parameters
|
Edit this page
View Source
SnapshotStoreSpec(Config, string, ITestOutputHelper)
Declaration
protected SnapshotStoreSpec(Config config = null, string actorSystemName = null, ITestOutputHelper output = null)
Parameters
Type |
Name |
Description |
Config |
config |
|
string |
actorSystemName |
|
ITestOutputHelper |
output |
|
|
Edit this page
View Source
SnapshotStoreSpec(Type, string)
Declaration
protected SnapshotStoreSpec(Type snapshotStoreType, string actorSystemName = null)
Parameters
Type |
Name |
Description |
Type |
snapshotStoreType |
|
string |
actorSystemName |
|
Fields
|
Edit this page
View Source
Config
Declaration
protected static readonly Config Config
Field Value
|
Edit this page
View Source
Declaration
protected List<SnapshotMetadata> Metadata
Field Value
Properties
|
Edit this page
View Source
SnapshotByteSizeLimit
The limit defines a number of bytes persistence plugin can support to store the snapshot.
If plugin does not support persistence of the snapshots of 10000 bytes or may support more than default size,
the value can be overriden by the SnapshotStoreSpec implementation with a note in a plugin documentation.
Declaration
protected virtual int SnapshotByteSizeLimit { get; }
Property Value
|
Edit this page
View Source
SnapshotStore
Declaration
protected IActorRef SnapshotStore { get; }
Property Value
|
Edit this page
View Source
SupportsSerialization
When enabled, allows serialization specs to run.
Declaration
protected override bool SupportsSerialization { get; }
Property Value
Overrides
Methods
|
Edit this page
View Source
Initialize()
Initializes a snapshot store with set of predefined snapshots.
Declaration
protected IEnumerable<SnapshotMetadata> Initialize()
Returns
|
Edit this page
View Source
ShouldSerializeSnapshots()
Declaration
[Fact]
public virtual void ShouldSerializeSnapshots()
|
Edit this page
View Source
Declaration
[Fact]
public virtual void SnapshotStore_should_delete_a_single_snapshot_identified_by_SequenceNr_in_snapshot_metadata()
|
Edit this page
View Source
Declaration
[Fact]
public virtual void SnapshotStore_should_delete_a_single_snapshot_identified_by_SequenceNr_in_snapshot_metadata_if_timestamp_is_MinValue()
|
Edit this page
View Source
SnapshotStore_should_delete_all_snapshots_matching_upper_sequence_number_and_timestamp_bounds()
Declaration
[Fact]
public virtual void SnapshotStore_should_delete_all_snapshots_matching_upper_sequence_number_and_timestamp_bounds()
|
Edit this page
View Source
SnapshotStore_should_load_the_most_recent_snapshot()
Declaration
[Fact]
public virtual void SnapshotStore_should_load_the_most_recent_snapshot()
|
Edit this page
View Source
SnapshotStore_should_load_the_most_recent_snapshot_matching_an_upper_sequence_number_and_timestamp_bound()
Declaration
[Fact]
public virtual void SnapshotStore_should_load_the_most_recent_snapshot_matching_an_upper_sequence_number_and_timestamp_bound()
|
Edit this page
View Source
SnapshotStore_should_load_the_most_recent_snapshot_matching_an_upper_sequence_number_bound()
Declaration
[Fact]
public virtual void SnapshotStore_should_load_the_most_recent_snapshot_matching_an_upper_sequence_number_bound()
|
Edit this page
View Source
Declaration
[Fact]
public virtual void SnapshotStore_should_not_delete_snapshot_identified_by_SequenceNr_if_metadata_timestamp_is_less_than_stored_timestamp()
|
Edit this page
View Source
SnapshotStore_should_not_delete_snapshots_with_non_matching_upper_timestamp_bounds()
Declaration
[Fact]
public virtual void SnapshotStore_should_not_delete_snapshots_with_non_matching_upper_timestamp_bounds()
|
Edit this page
View Source
SnapshotStore_should_not_load_a_snapshot_given_an_invalid_persistence_id()
Declaration
[Fact]
public virtual void SnapshotStore_should_not_load_a_snapshot_given_an_invalid_persistence_id()
|
Edit this page
View Source
SnapshotStore_should_not_load_a_snapshot_given_non_matching_sequence_number_criteria()
Declaration
[Fact]
public virtual void SnapshotStore_should_not_load_a_snapshot_given_non_matching_sequence_number_criteria()
|
Edit this page
View Source
SnapshotStore_should_not_load_a_snapshot_given_non_matching_timestamp_criteria()
Declaration
[Fact]
public virtual void SnapshotStore_should_not_load_a_snapshot_given_non_matching_timestamp_criteria()
|
Edit this page
View Source
SnapshotStore_should_save_and_overwrite_snapshot_with_same_sequence_number()
Declaration
[Fact]
public virtual void SnapshotStore_should_save_and_overwrite_snapshot_with_same_sequence_number()
|
Edit this page
View Source
SnapshotStore_should_save_bigger_size_snapshot()
Declaration
[Fact]
public virtual void SnapshotStore_should_save_bigger_size_snapshot()
Implements
Extension Methods