示例#1
0
        public void GetBucketKeys_ReturnsValidCombinations(string splittableTags, string source, params string[] expected)
        {
            var provider = new BucketKeyProvider(splittableTags.Split("|"));
            var keys     = provider.GetBucketKeys(Parse(source));

            keys.Select(Format).Should().BeEquivalentTo(expected);
        }
示例#2
0
        public void GetBucketKeys_RealCase_ReturnsValidCombinations()
        {
            var provider = new BucketKeyProvider();
            var keys     = provider.GetBucketKeys(Parse("host:vm1|operation:read|status:200|type:requests|gfv:100501"));

            keys.Select(Format)
            .Should()
            .BeEquivalentTo(
                "host:vm1|operation:read|status:200|type:requests|gfv:100501",
                "host:vm1|operation:read|status:any|type:requests|gfv:100501",
                "host:vm1|operation:any|status:200|type:requests|gfv:100501",
                "host:vm1|operation:any|status:any|type:requests|gfv:100501",
                "host:any|operation:read|status:200|type:requests|gfv:100501",
                "host:any|operation:read|status:any|type:requests|gfv:100501",
                "host:any|operation:any|status:200|type:requests|gfv:100501",
                "host:any|operation:any|status:any|type:requests|gfv:100501");
        }