testcontainers-cpp 0.2.0
Native C++20 Testcontainers over the Docker Engine API
Loading...
Searching...
No Matches
testcontainers::wait_for::LogMessage Struct Reference

Wait until a substring appears in the container's logs a number of times. More...

#include <testcontainers/WaitFor.hpp>

Public Types

enum class  Source { Stdout , Stderr , Either }
 Which log stream(s) to scan. More...

Public Attributes

std::string text
 substring to look for
int times = 1
 required number of occurrences
Source source = Source::Either

Detailed Description

Wait until a substring appears in the container's logs a number of times.

Member Enumeration Documentation

◆ Source

Which log stream(s) to scan.

Enumerator
Stdout 
Stderr 
Either 

Member Data Documentation

◆ text

std::string testcontainers::wait_for::LogMessage::text

substring to look for

◆ times

int testcontainers::wait_for::LogMessage::times = 1

required number of occurrences

◆ source

Source testcontainers::wait_for::LogMessage::source = Source::Either