def check(self):
    found_bootstrap_dump = False
    found_clusters_dump = False
    found_listeners_dump = False
    body = json.loads(self.results[0].body)
    for config_obj in body.get('configs'):
        if (config_obj.get('@type') == 'type.googleapis.com/envoy.admin.v3.BootstrapConfigDump'):
            found_bootstrap_dump = True
            clusters = config_obj.get('bootstrap').get('static_resources').get('clusters')
            found_stenography = False
            assert (len(clusters) > 0), 'No clusters found'
            for cluster in clusters:
                if (cluster.get('name') == 'cluster_logging_stenographylongservicena-0'):
                    found_stenography = True
                    break
            assert found_stenography
        if (config_obj.get('@type') == 'type.googleapis.com/envoy.admin.v3.ClustersConfigDump'):
            found_clusters_dump = True
            clusters = config_obj.get('static_clusters')
            found_stenography = False
            assert (len(clusters) > 0), 'No clusters found'
            for cluster in clusters:
                if (cluster.get('cluster').get('name') == 'cluster_logging_stenographylongservicena-0'):
                    found_stenography = True
                    break
            assert found_stenography
        if (config_obj.get('@type') == 'type.googleapis.com/envoy.admin.v3.ListenersConfigDump'):
            found_listeners_dump = True
            for listener in config_obj.get('dynamic_listeners'):
                for filter_chain in listener.get('active_state').get('listener').get('filter_chains'):
                    for filter_obj in filter_chain.get('filters'):
                        access_logs = filter_obj.get('typed_config').get('access_log')
                        found_configured_access_log = False
                        assert (len(access_logs) > 0), 'No access log configurations found in any listeners filter chains'
                        for access_log in access_logs:
                            if ((access_log.get('name') == 'envoy.access_loggers.http_grpc') and (access_log.get('typed_config').get('common_config').get('grpc_service').get('envoy_grpc').get('cluster_name') == 'cluster_logging_stenographylongservicena-0')):
                                found_configured_access_log = True
                                break
                        assert found_configured_access_log
    assert found_listeners_dump, 'Could not find listeners config dump. Did the config dump endpoint work? Did we change Envoy API versions?'
    assert found_clusters_dump, 'Could not find clusters config dump. Did the config dump endpoint work? Did we change Envoy API versions?'
    assert found_bootstrap_dump, 'Could not find bootstrap config dump. Did the config dump endpoint work? Did we change Envoy API versions?'
def check(self):
    found_bootstrap_dump = False
    found_clusters_dump = False
    found_listeners_dump = False
    body = json.loads(self.results[0].body)
    for config_obj in body.get('configs'):
        if (config_obj.get('@type') == 'type.googleapis.com/envoy.admin.v3.BootstrapConfigDump'):
            found_bootstrap_dump = True
            clusters = config_obj.get('bootstrap').get('static_resources').get('clusters')
            found_stenography = False
            assert (len(clusters) > 0), 'No clusters found'
            for cluster in clusters:
                if (cluster.get('name') == 'cluster_logging_stenographylongservicena-0'):
                    found_stenography = True
                    break
            assert found_stenography
        if (config_obj.get('@type') == 'type.googleapis.com/envoy.admin.v3.ClustersConfigDump'):
            found_clusters_dump = True
            clusters = config_obj.get('static_clusters')
            found_stenography = False
            assert (len(clusters) > 0), 'No clusters found'
            for cluster in clusters:
                if (cluster.get('cluster').get('name') == 'cluster_logging_stenographylongservicena-0'):
                    found_stenography = True
                    break
            assert found_stenography
        if (config_obj.get('@type') == 'type.googleapis.com/envoy.admin.v3.ListenersConfigDump'):
            found_listeners_dump = True
            for listener in config_obj.get('dynamic_listeners'):
                for filter_chain in listener.get('active_state').get('listener').get('filter_chains'):
                    for filter_obj in filter_chain.get('filters'):
                        access_logs = filter_obj.get('typed_config').get('access_log')
                        found_configured_access_log = False
                        assert (len(access_logs) > 0), 'No access log configurations found in any listeners filter chains'
                        for access_log in access_logs:
                            if ((access_log.get('name') == 'envoy.access_loggers.http_grpc') and (access_log.get('typed_config').get('common_config').get('grpc_service').get('envoy_grpc').get('cluster_name') == 'cluster_logging_stenographylongservicena-0')):
                                found_configured_access_log = True
                                break
                        assert found_configured_access_log
    assert found_listeners_dump, 'Could not find listeners config dump. Did the config dump endpoint work? Did we change Envoy API versions?'
    assert found_clusters_dump, 'Could not find clusters config dump. Did the config dump endpoint work? Did we change Envoy API versions?'
    assert found_bootstrap_dump, 'Could not find bootstrap config dump. Did the config dump endpoint work? Did we change Envoy API versions?'