Skip to content

Commit

Permalink
v0.5.0 (#98)
Browse files Browse the repository at this point in the history
* v0.5.0
  • Loading branch information
m-wcislo authored Oct 4, 2021
1 parent 73a233d commit 021cd27
Show file tree
Hide file tree
Showing 9 changed files with 15 additions and 13 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).

## In progress

## [0.5.0] - 2021-10-03
### Added
- Dynamic client support and some utilities [#93](https://github.com/devopsspiral/KubeLibrary/pull/93) by [@mertkayhan](https://github.com/mertkayhan)
- Keyword for getting Horizontal Pod Autoscalers [#80](https://github.com/devopsspiral/KubeLibrary/pull/80 )by [@Nilsty](https://github.com/Nilsty)
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setuptools.setup(
name="robotframework-kubelibrary",
version="0.4.0",
version="0.5.0",
author="Michał Wcisło",
author_email="[email protected]",
description="Kubernetes library for Robot Framework",
Expand Down
2 changes: 1 addition & 1 deletion testcases/cluster_role/cluster_role.robot
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ Resource ./cluster_role_kw.robot

*** Test Cases ***
Cluster_role test case example
[Tags] other prerelease
[Tags] other
List all cluster_roles
List all cluster_role_bindings
6 changes: 3 additions & 3 deletions testcases/cronjob/cronjob.robot
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@ Resource ./cronjob_kw.robot

*** Test Cases ***
Job test case example
[Tags] other prerelease
[Tags] other
List all cron jobs in namespace kubelib-tests

Jobs by label
[Tags] other prerelease
[Tags] other
List cron jobs with label ${cron_job_name} kubelib-tests TestLabel=mytestlabel

Working on Cron Job
[Tags] other prerelease
[Tags] other
List all cron jobs in namespace kubelib-tests
Edit obtained cron job test-cronjob
Create new cron job in namespace kubelib-tests
Expand Down
6 changes: 3 additions & 3 deletions testcases/dynamic_client/dynamic_client.robot
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ Resource ./dynamic_client_kw.robot

*** Test Cases ***
Dynamic client test case example
[Tags] dynamic-client prerelease
[Tags] dynamic-client other
${resources}= discover resources default
Log To Console ${resources}
Dynamic client test case example 2
[Tags] dynamic-client prerelease
[Tags] dynamic-client other
${conf}= read conf testcases/dynamic_client/resources/pod.yaml
create pod ${conf}
sleep 5 seconds
Expand All @@ -25,7 +25,7 @@ Dynamic client test case example 2
[Teardown] delete pod default myapp-pod

Dynamic client test case example 3
[Tags] dynamic-client prerelease
[Tags] dynamic-client other
${conf}= read conf testcases/dynamic_client/resources/svc.yaml
create svc ${conf}
sleep 5 seconds
Expand Down
2 changes: 1 addition & 1 deletion testcases/reload-config/reload-config.robot
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Reload config test case example
AND Cluster has no namespace test-ns-1

Authenticate using bearer token
[Tags] reload-config auth.bearer-token prerelease
[Tags] reload-config auth.bearer-token
[Documentation] Test authentication using brearer token
WHEN Connected to cluster-1 using bearer token
Expand Down
2 changes: 1 addition & 1 deletion testcases/replicaset/replicaset.robot
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ Resource ./replicaset_kw.robot

*** Test Cases ***
Replicaset test case example
[Tags] replicaset prerelease
[Tags] replicaset other
List all replicasets in namespace default
2 changes: 1 addition & 1 deletion testcases/role/role.robot
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ Resource ./role_kw.robot

*** Test Cases ***
Role test case example
[Tags] others prerelease
[Tags] other
List all roles in namespace default
List all role bindings in namespace default
4 changes: 2 additions & 2 deletions testcases/role/role_kw.robot
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ Library KubeLibrary
List all roles in namespace
[Arguments] ${namespace}
@{namespace_roles}= Get Roles In Namespace ${namespace}
Length Should Be ${namespace_roles} 1
Length Should Be ${namespace_roles} 2
Log \nRoles in namespace ${namespace_roles}: console=True

List all role bindings in namespace
[Arguments] ${namespace}
@{namespace_role_bindings}= Get Role Bindings In Namespace ${namespace}
Length Should Be ${namespace_role_bindings} 1
Length Should Be ${namespace_role_bindings} 2
Log \nRole_binding in namespace ${namespace_role_bindings}: console=True

0 comments on commit 021cd27

Please sign in to comment.