Пример #1
0
 /// <summary>
 /// This method allows to override docker compose service's environment variables (only applicable for test run outside of compose).
 /// </summary>
 /// <param name="serviceName">Service name.</param>
 /// <param name="existing">Existing specified in compose file environment variables.</param>
 /// <param name="discovery">Discovery to allow get host/port of the sibling services.</param>
 /// <returns></returns>
 public virtual Task <IReadOnlyDictionary <string, string> > GetEnvironment(string serviceName, IReadOnlyDictionary <string, string> existing, Discovery discovery)
 => Task.FromResult(existing);
Пример #2
0
 /// <summary>
 /// Custom implementation to wait until services ready.
 /// </summary>
 /// <param name="discovery">Current discovery.</param>
 /// <returns>Task.</returns>
 public virtual Task WaitForReady(Discovery discovery)
 => Task.CompletedTask;