Fields
kubernetes: Client
The Kubernetes client
namespace: String
The namespace the tests will happen in
quilkin_image: String
The name and tag of the Quilkin image being tested
Implementations
sourceimpl Client
impl Client
sourcepub async fn new() -> Client
pub async fn new() -> Client
Thread safe way to create a Clients across multiple tests. Executes the setup required:
- Creates a test namespace for this test
- Removes previous test namespaces
- Retrieves the IMAGE_TAG to test from env vars, and panics if it if not available.
sourcepub fn namespaced_api<K: Resource<Scope = NamespaceResourceScope>>(
&self
) -> Api<K>where
<K as Resource>::DynamicType: Default,
pub fn namespaced_api<K: Resource<Scope = NamespaceResourceScope>>(
&self
) -> Api<K>where
<K as Resource>::DynamicType: Default,
Returns a typed API client for this client in this test namespace.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl !UnwindSafe for Client
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
sourcefn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request