public void Build_SpecialCharacters()
        {
            var result = new LogGroupComponent("test/test").Build();

            // ReSharper disable once StringLiteralTypo
            Assert.AreEqual("/log-group/test$252Ftest", result);
        }
Exemplo n.º 2
0
        /// <summary>
        /// Restrict filters, etc. to the provided log group.
        /// </summary>
        /// <param name="logGroup">Searches, etc. will apply exclusively to this log group.</param>
        /// <returns></returns>
        public ILogGroupOptions WithLogGroup(string logGroup)
        {
            _queryComponents[LogGroup] = new LogGroupComponent(logGroup);

            return(this);
        }
        public void Build_NoSpecialCharacters()
        {
            var result = new LogGroupComponent("test").Build();

            Assert.AreEqual("/log-group/test", result);
        }