test/automated-pytest-suite/testcases/rest/test_GET_good_authentication.py
Takamasa Takenaka 8e6a55f824 Remove community and trapdest related test cases
-Remove test cases according to the host-based SNMP removal
 -Remove community related test cases
 -Remove trapdest related test cases

Story: 2008132
Task: 41393
Change-Id: I5c698fe2b9eca82971f70e4edabf16af702f4f68
Depends-On: https://review.opendev.org/765381
Signed-off-by: Takamasa Takenaka <takamasa.takenaka@windriver.com>
2020-12-23 08:56:42 -03:00

66 lines
1.7 KiB
Python
Executable File

#
# Copyright (c) 2019-2020 Wind River Systems, Inc.
#
# SPDX-License-Identifier: Apache-2.0
#
import pytest
from utils.tis_log import LOG
from utils.rest import Rest
from testcases.rest import rest_test_helper
@pytest.fixture(scope='module')
def sysinv_rest():
r = Rest('sysinv', platform=True)
return r
@pytest.mark.parametrize(
'operation,resource', [
('GET', '/addrpools'),
('GET', '/ceph_mon'),
('GET', '/clusters'),
('GET', '/controller_fs'),
('GET', '/drbdconfig'),
('GET', '/event_log'),
('GET', '/event_suppression'),
('GET', '/health'),
('GET', '/health/upgrade'),
('GET', '/ialarms'),
('GET', '/idns'),
('GET', '/iextoam'),
('GET', '/ihosts'),
('GET', '/ihosts/bulk_export'),
('GET', '/iinfra'),
('GET', '/intp'),
('GET', '/ipm'),
('GET', '/iprofiles'),
('GET', '/istorconfig'),
('GET', '/isystems'),
('GET', '/lldp_agents'),
('GET', '/lldp_neighbors'),
('GET', '/loads'),
('GET', '/networks'),
('GET', '/remotelogging'),
('GET', '/sdn_controller'),
('GET', '/servicegroup'),
('GET', '/servicenodes'),
('GET', '/service_parameter'),
('GET', '/services'),
('GET', '/storage_backend'),
('GET', '/storage_backend/usage'),
('GET', '/storage_ceph'),
('GET', '/storage_lvm'),
# ('GET', '/tpmconfig'),
('GET', '/upgrade'),
('GET', '/')
]
)
def test_good_authentication(sysinv_rest, operation, resource):
if operation == "GET":
LOG.info("getting... {}".format(resource))
rest_test_helper.get(sysinv_rest, resource=resource)