Skip to content

Conversation

@jaspals3123
Copy link
Collaborator

No description provided.

Returns:
bool: True if network is accessible, False otherwise
"""
cmd = "ping"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this needs to be defined as a class var like "CMD_PING" so it can get picked up by the auto doc generation script.

# Run ping command
result = self._run_sut_cmd(f"{cmd} {url} {ping_option}")

network_accessible = result.exit_code == 0
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we dont need this extra var here, just use the result like:
if result.exit_code == 0:....

@alexandraBara
Copy link
Collaborator

alexandraBara commented Feb 2, 2026

Please update the functional test for this plugin and add the collector arg to the plugin_config: https://github.com/amd/node-scraper/blob/development/test/functional/fixtures/network_plugin_config.json

@alexandraBara alexandraBara changed the title adding url collector arg and test enhancements NetworkPlugin update: adding url collector arg and test enhancements Feb 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants