pub struct CommonStorageTest<T: RoutingTestModelBuilder> { /* private fields */ }
Implementations§
Source§impl<T: RoutingTestModelBuilder> CommonStorageTest<T>
impl<T: RoutingTestModelBuilder> CommonStorageTest<T>
pub fn new() -> Self
Sourcepub async fn test_storage_dir_from_cm_namespace(&self)
pub async fn test_storage_dir_from_cm_namespace(&self)
component manager’s namespace | a | b
a: has storage decl with name “mystorage” with a source of realm at path /data a: offers cache storage to b from “mystorage” b: uses cache storage as /storage.
Sourcepub async fn test_storage_and_dir_from_parent(&self)
pub async fn test_storage_and_dir_from_parent(&self)
a
b
a: has storage decl with name “mystorage” with a source of self at path /data a: offers cache storage to b from “mystorage” b: uses cache storage as /storage
Sourcepub async fn test_storage_and_dir_from_parent_with_subdir(&self)
pub async fn test_storage_and_dir_from_parent_with_subdir(&self)
a
b
a: has storage decl with name “mystorage” with a source of self at path /data, with subdir “cache” a: offers cache storage to b from “mystorage” b: uses cache storage as /storage
Sourcepub async fn test_storage_and_dir_from_parent_rights_invalid(&self)
pub async fn test_storage_and_dir_from_parent_rights_invalid(&self)
a
b
a: has storage decl with name “mystorage” with a source of self at path /data, but /data has only read rights a: offers cache storage to b from “mystorage” b: uses cache storage as /storage
Sourcepub async fn test_storage_from_parent_dir_from_grandparent(&self)
pub async fn test_storage_from_parent_dir_from_grandparent(&self)
a
b
c
a: offers directory /data to b as /minfs b: has storage decl with name “mystorage” with a source of realm at path /minfs b: offers data storage to c from “mystorage” c: uses data storage as /storage
Sourcepub async fn test_storage_from_parent_dir_from_grandparent_with_subdirs(&self)
pub async fn test_storage_from_parent_dir_from_grandparent_with_subdirs(&self)
a
b
c
a: offers directory /data to b as /minfs with subdir “subdir_1” b: has storage decl with name “mystorage” with a source of realm at path /minfs with subdir “subdir_2” b: offers data storage to c from “mystorage” c: uses data storage as /storage
Sourcepub async fn test_storage_from_parent_dir_from_grandparent_with_subdir(&self)
pub async fn test_storage_from_parent_dir_from_grandparent_with_subdir(&self)
a
b
c
a: offers directory /data to b as /minfs b: has storage decl with name “mystorage” with a source of realm at path /minfs, subdir “bar” b: offers data storage to c from “mystorage” c: uses data storage as /storage
Sourcepub async fn test_storage_and_dir_from_grandparent(&self)
pub async fn test_storage_and_dir_from_grandparent(&self)
a
b
c
a: has storage decl with name “mystorage” with a source of self at path /data a: offers data storage to b from “mystorage” b: offers data storage to c from realm c: uses data storage as /storage
Sourcepub async fn test_storage_from_parent_dir_from_sibling(&self)
pub async fn test_storage_from_parent_dir_from_sibling(&self)
a
/
b c
b: exposes directory /data as /minfs a: has storage decl with name “mystorage” with a source of child b at path /minfs a: offers cache storage to c from “mystorage” c: uses cache storage as /storage
Sourcepub async fn test_storage_from_parent_dir_from_sibling_with_subdir(&self)
pub async fn test_storage_from_parent_dir_from_sibling_with_subdir(&self)
a
/
b c
b: exposes directory /data as /minfs with subdir “subdir_1” a: has storage decl with name “mystorage” with a source of child b at path /minfs and subdir “subdir_2” a: offers cache storage to c from “mystorage” c: uses cache storage as /storage
Sourcepub async fn test_storage_multiple_types(&self)
pub async fn test_storage_multiple_types(&self)
a
/
b c
d
b: exposes directory /data as /minfs a: has storage decl with name “mystorage” with a source of child b at path /minfs a: offers data, cache, and meta storage to c from “mystorage” c: uses cache and meta storage as /storage c: offers data and meta storage to d d: uses data and meta storage
Sourcepub async fn test_use_the_wrong_type_of_storage(&self)
pub async fn test_use_the_wrong_type_of_storage(&self)
a
b
a: has storage decl with name “mystorage” with a source of self at path /storage a: offers cache storage to b from “mystorage” b: uses data storage as /storage, fails to since data != cache b: uses meta storage, fails to since meta != cache
Sourcepub async fn test_directories_are_not_storage(&self)
pub async fn test_directories_are_not_storage(&self)
a
b
a: offers directory from self at path “/data” b: uses data storage as /storage, fails to since data storage != “/data” directories
Sourcepub async fn test_use_storage_when_not_offered(&self)
pub async fn test_use_storage_when_not_offered(&self)
a
b
a: has storage decl with name “mystorage” with a source of self at path /data a: does not offer any storage to b b: uses meta storage and data storage as /storage, fails to since it was not offered either
Sourcepub async fn test_dir_offered_from_nonexecutable(&self)
pub async fn test_dir_offered_from_nonexecutable(&self)
a
b
c
a: offers directory /data to b as /minfs, but a is non-executable b: has storage decl with name “mystorage” with a source of realm at path /minfs b: offers data and meta storage to b from “mystorage” c: uses meta and data storage as /storage, fails to since a is non-executable
Sourcepub async fn test_storage_dir_from_cm_namespace_prevented_by_policy(&self)
pub async fn test_storage_dir_from_cm_namespace_prevented_by_policy(&self)
component manager’s namespace | a | b
a: has storage decl with name “mystorage” with a source of parent at path /data a: offers cache storage to b from “mystorage” b: uses cache storage as /storage. Policy prevents b from using storage.
Sourcepub async fn test_instance_id_from_index(&self)
pub async fn test_instance_id_from_index(&self)
component manager’s namespace | a | b | c
Instance IDs defined only for b
in the component ID index.
Check that the correct storage layout is used when a component has an instance ID.