Beispiel #1
0
 def test_get_revision(self, duthosts, enum_rand_one_per_hwsku_hostname,
                       localhost, platform_api_conn):
     revision = chassis.get_revision(platform_api_conn)
     pytest_assert(revision is not None,
                   "Unable to retrieve chassis serial number")
     pytest_assert(isinstance(revision, STRING_TYPE),
                   "Chassis serial number appears incorrect")
 def test_get_revision(self, duthosts, enum_rand_one_per_hwsku_hostname,
                       localhost, platform_api_conn):
     duthost = duthosts[enum_rand_one_per_hwsku_hostname]
     skip_release(duthost, ["201811", "201911", "202012"])
     revision = chassis.get_revision(platform_api_conn)
     pytest_assert(revision is not None,
                   "Unable to retrieve chassis revision")
     pytest_assert(isinstance(revision, STRING_TYPE),
                   "Revision appears incorrect")