public async Task <bool> Until(string id)
        {
            await WaitStrategy.WaitUntil(() => { return(WaitUntilContainerIsCreated.Until(id)); });

            await Task.WhenAll(this.commands.Select(command => TestcontainersClient.Instance.ExecAsync(id, command)));

            return(true);
        }
Exemplo n.º 2
0
        public override async Task <bool> Until(string id)
        {
            await WaitStrategy.WaitUntil(() => base.Until(id));

            this.outputConsumerStream.Seek(0, SeekOrigin.Begin);

            using (var streamReader = new StreamReader(this.outputConsumerStream, Encoding.UTF8, false, 4096, true))
            {
                var output = streamReader.ReadToEnd();
                return(this.messages.All(message => Regex.IsMatch(output, message)));
            }
        }
Exemplo n.º 3
0
        public override async Task <bool> Until(string id)
        {
            await WaitStrategy.WaitUntil(() => base.Until(id));

            return(this.files.All(File.Exists));
        }
        public async Task <bool> Until(string id)
        {
            await WaitStrategy.WaitUntil(() => { return(WaitUntilContainerIsCreated.Until(id)); });

            return(File.Exists(this.file));
        }