Skip to content

Commit 6d36861

Browse files
Merge branch 'master' of https://github.com/IBM/networking-python-sdk into dl-100g
2 parents b0229b6 + fb924d2 commit 6d36861

File tree

8 files changed

+156
-140
lines changed

8 files changed

+156
-140
lines changed

.bumpversion.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[bumpversion]
2-
current_version = 0.4.1
2+
current_version = 0.4.2
33
commit = True
44
message = Update version {current_version} -> {new_version}
55

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
## [0.4.2](https://github.com/IBM/networking-python-sdk/compare/v0.4.1...v0.4.2) (2021-05-04)
2+
3+
4+
### Bug Fixes
5+
6+
* Fix for ssl_certificate and zone_firewall_acess_rules integration tests ([a4e77b5](https://github.com/IBM/networking-python-sdk/commit/a4e77b5f41d881a4a7d946e5960350fd7e52edaa))
7+
18
## [0.4.1](https://github.com/IBM/networking-python-sdk/compare/v0.4.0...v0.4.1) (2020-12-20)
29

310

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
[![codecov](https://codecov.io/gh/IBM/networking-python-sdk/branch/master/graph/badge.svg)](https://codecov.io/gh/IBM/networking-python-sdk)
88
[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release)
99

10-
# IBM Cloud Networking Services Python SDK Version 0.4.1
10+
# IBM Cloud Networking Services Python SDK Version 0.4.2
1111

1212
Python client library to interact with various [IBM Cloud Networking Service APIs](https://cloud.ibm.com/apidocs?category=network).
1313

@@ -100,13 +100,13 @@ IBM Cloud services:
100100
To install, use `pip` or `easy_install`:
101101

102102
```bash
103-
pip install --upgrade "ibm-cloud-networking-services==0.4.1"
103+
pip install --upgrade "ibm-cloud-networking-services==0.4.2"
104104
```
105105

106106
or
107107

108108
```bash
109-
easy_install --upgrade "ibm-cloud-networking-servies==0.4.1"
109+
easy_install --upgrade "ibm-cloud-networking-servies==0.4.2"
110110
```
111111

112112
## Using the SDK
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
"""
22
Version of cloud_networking_services
33
"""
4-
__version__ = '0.4.1'
4+
__version__ = '0.4.2'

package-lock.json

Lines changed: 127 additions & 133 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
import sys
2020
import pkg_resources
2121

22-
__version__ = '0.4.1'
22+
__version__ = '0.4.2'
2323
PACKAGE_NAME = 'ibm_cloud_networking_services'
2424
PACKAGE_DESC = 'Python client library for IBM Cloud Networking Services'
2525

test/integration/test_ssl_certificate_api_v1.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ def test_1_certificate_actions(self):
7575
resp = self.ssl.order_certificate(
7676
x_correlation_id="1234", type="dedicated", hosts=[self.url])
7777
assert resp is not None
78-
assert resp.status_code == 200
78+
assert resp.status_code == 200 or resp.status_code == 201
7979
cert_id = resp.get_result().get("result")["id"]
8080

8181
# delete certificate

test/integration/test_zone_firewall_access_rules_v1.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,26 @@ def setUp(self):
3434
crn=self.crn, zone_identifier=self.zone_id, service_name="cis_services")
3535
self.rule.set_service_url(self.endpoint)
3636

37+
# list all rules and delete the same for clean up
38+
self._clean_zone_firewall_rules()
39+
3740
def tearDown(self):
3841
""" tear down """
3942
# Delete the resources
43+
self._clean_zone_firewall_rules()
4044
print("Clean up complete")
4145

46+
def _clean_zone_firewall_rules(self):
47+
resp = self.rule.list_all_zone_access_rules()
48+
assert resp is not None
49+
assert resp.status_code == 200
50+
for result in resp.get_result().get("result"):
51+
rule_id = result['id']
52+
resp = self.rule.delete_zone_access_rule(
53+
accessrule_identifier=rule_id)
54+
assert resp is not None
55+
assert resp.status_code == 200
56+
4257
def test_1_zone_firewall_rule_mode_action(self):
4358
i = 0
4459
modes = {

0 commit comments

Comments
 (0)