Kubelibrary: Library Scope: Named Arguments: Supported
Kubelibrary: Library Scope: Named Arguments: Supported
Kubelibrary: Library Scope: Named Arguments: Supported
Introduction
KubeLibrary is a Robot Framework test library for Kubernetes.
The approach taken by this library is to provide easy to access kubernetes objects
representation that can be then accessed to define highlevel keywords for tests.
Kubeconfigs
By default ~/.kube/config is used. Kubeconfig location can also be passed by setting
KUBECONFIG environment variable or as Library argument.
In cluster execution
If tests are supposed to be executed from within cluster, KubeLibrary can be
configured to use standard token authentication. Just set incluster parameter to True.
If True then kubeconfigs are not used, even if provided.
Importing
Arguments Documentation
KubeLibrary can be configured with several optional
arguments.
Shortcuts
List style: Compact Expanded
Assert Container Has Env Vars
Assert Pod Has Annotations
Assert Pod Has Labels
Filter Containers Images
Filter Containers Resources
Filter Pods Containers By Name
Filter Pods Containers Statuses By Name
Filter Pods Names
Get Configmaps In Namespace
Get Deployments In Namespace
Get Endpoints In Namespace
Get Healthy Nodes Count
Get Jobs In Namespace
Get Kubelet Version
Get Namespaces
Get Pod Logs
Get Pod Names In Namespace
Get Pod Status In Namespace
Get Pods In Namespace
Get Pvc Capacity
Get Pvc In Namespace
Get Service Details In Namespace
Get Services In Namespace
K8s Api Ping
Reload Config
Keywords
Keywor
Arguments Documentation
d
Assert container has env vars.
Get
pod-
Endpoint Shou
name, name
s In ld ${endpoint_details.subsets[0].addresses[0].
namespace -
Namespa Matc target_ref.name}
1234
ce h
56
Get
Gets list of kubelet versions on each node.
Kubelet label_selector=
Version
Can be optionally filtered by label. e.g.
label_selector=label_key=label_value
Returns logs.
name,
Get Pod
namespace,
Logs • name: Pod name to check
container
• namespace: Namespace to check
• container: Container to check
Should Be Equal As
${pvc.status.capacity.storage} 1Gi
strings
Altogether 25 keywords.
Generated by Libdoc on 2020-09-19 23:19:58.