fortrace.utility.server_interaction package

Submodules

fortrace.utility.server_interaction.ftp_interaction module

fortrace.utility.server_interaction.server_interaction module

class fortrace.utility.server_interaction.server_interaction.GenericServerInteraction(server: VirshDomain, config: dict)[source]

Bases: ABC

Generic interface for the Generator to perform interactions with services offered by servers.

_login_data

dict containing username <-> password entries

Type:

dict[str, str]

abstractmethod perform_interaction(action: dict) ServerFeedback | None[source]

Method to be called by the generator component.

It is allowed to generate a random action inside, e.g., choose whether to store or retrieve a file)

Parameters:

action – dictionary describing the action. Orientate on action design of Generator

Returns:

ServerFeedback to communicate back to the generator (or None, if there is nothing to tell the generator)

class fortrace.utility.server_interaction.server_interaction.ServerFeedback(*values)[source]

Bases: Enum

FILE_NOT_FOUND = 1
USER_HAS_NO_FILES = 2

Module contents