Skip to content

Commit a591e06

Browse files
authored
Merge pull request #3 from zabbix/release/1.0.2
Release/1.0.2
2 parents e171482 + 18df1e3 commit a591e06

38 files changed

+578
-363
lines changed

.github/scripts/additional_api_tests.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
#!/usr/bin/env python
2+
# Copyright (C) 2001-2023 Zabbix SIA
3+
#
4+
# Zabbix SIA licenses this file under the MIT License.
5+
# See the LICENSE file in the project root for more information.
6+
27
import sys
38
import base64
49
import unittest

.github/scripts/check_new_zabbx_release.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
#!/usr/bin/env python
2+
# Copyright (C) 2001-2023 Zabbix SIA
3+
#
4+
# Zabbix SIA licenses this file under the MIT License.
5+
# See the LICENSE file in the project root for more information.
6+
27
import os
38
import sys
49
import requests

.github/scripts/compatibility_api_test_5.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
#!/usr/bin/env python
2+
# Copyright (C) 2001-2023 Zabbix SIA
3+
#
4+
# Zabbix SIA licenses this file under the MIT License.
5+
# See the LICENSE file in the project root for more information.
6+
27
import sys
38
import time
49
import unittest

.github/scripts/compatibility_api_test_6.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
#!/usr/bin/env python
2+
# Copyright (C) 2001-2023 Zabbix SIA
3+
#
4+
# Zabbix SIA licenses this file under the MIT License.
5+
# See the LICENSE file in the project root for more information.
6+
27
import sys
38
import time
49
import unittest

.github/scripts/compatibility_api_test_latest.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
#!/usr/bin/env python
2+
# Copyright (C) 2001-2023 Zabbix SIA
3+
#
4+
# Zabbix SIA licenses this file under the MIT License.
5+
# See the LICENSE file in the project root for more information.
6+
27
import sys
38
import time
49
import unittest

.github/scripts/integration_api_test.py

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
#!/usr/bin/env python
2+
# Copyright (C) 2001-2023 Zabbix SIA
3+
#
4+
# Zabbix SIA licenses this file under the MIT License.
5+
# See the LICENSE file in the project root for more information.
6+
27
import sys
38
import unittest
49

@@ -61,7 +66,17 @@ def test_user_get(self):
6166
users = self.zapi.user.get(
6267
output=['userid', 'name']
6368
)
64-
self.assertEqual(type(users), list, "Request user.getter was going wrong")
69+
self.assertEqual(type(users), list, "Request user.get was going wrong")
70+
71+
def test_host_get(self):
72+
"""Tests getting hosts info works properly using suffix"""
73+
74+
hosts = None
75+
if self.zapi:
76+
hosts = self.zapi.host_.get_(
77+
output=['hostid', 'host']
78+
)
79+
self.assertEqual(type(hosts), list, "Request host.get was going wrong")
6580

6681

6782
if __name__ == '__main__':

.github/scripts/integration_get_test.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
#!/usr/bin/env python
2+
# Copyright (C) 2001-2023 Zabbix SIA
3+
#
4+
# Zabbix SIA licenses this file under the MIT License.
5+
# See the LICENSE file in the project root for more information.
6+
27
import sys
38
import json
49
import unittest

.github/scripts/integration_sender_test.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
#!/usr/bin/env python
2+
# Copyright (C) 2001-2023 Zabbix SIA
3+
#
4+
# Zabbix SIA licenses this file under the MIT License.
5+
# See the LICENSE file in the project root for more information.
6+
27
import sys
38
import unittest
49

.github/scripts/telegram_msg.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
#!/usr/bin/env python3
2+
# Copyright (C) 2001-2023 Zabbix SIA
3+
#
4+
# Zabbix SIA licenses this file under the MIT License.
5+
# See the LICENSE file in the project root for more information.
6+
27
import requests
38
import sys
49
import os

.github/scripts/wait_instance_zabbix.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
#!/usr/bin/env python
2+
# Copyright (C) 2001-2023 Zabbix SIA
3+
#
4+
# Zabbix SIA licenses this file under the MIT License.
5+
# See the LICENSE file in the project root for more information.
6+
27
import sys
38
import time
49

0 commit comments

Comments
 (0)