{% extends "base.html" %} {% block title %}История тестов - DevOpsLab{% endblock %} {% block page_title %}История тестов{% endblock %} {% block header_actions %} Назад к ролям {% endblock %} {% block content %}
История тестов
Всего: {{ total }}
{% if error %}
{{ error }}
{% elif tests %}
{% for test in tests %} {% endfor %}
Дата/Время Роль Preset Статус Длительность Команда
{{ test.created_at.strftime('%Y-%m-%d %H:%M:%S') if test.created_at else 'N/A' }} {% if test.command %} {% set role_from_command = test.command.split()[2] if test.command.split()|length > 2 else 'N/A' %} {{ role_from_command }} {% else %} N/A {% endif %} {% if test.command %} {% set preset_from_command = test.command.split()[3] if test.command.split()|length > 3 else 'default' %} {{ preset_from_command }} {% else %} default {% endif %} {% if test.status == 'success' %} Успешно {% elif test.status == 'failed' %} Ошибка {% elif test.status == 'running' %} Выполняется {% else %} {{ test.status or 'N/A' }} {% endif %} {% if test.duration %} {{ test.duration }}s {% else %} - {% endif %} {{ test.command[:50] }}{% if test.command|length > 50 %}...{% endif %}
{% else %}

Тесты не найдены

Запустить тест
{% endif %}
{% if tests and total_pages > 1 %} {% endif %}
{% endblock %}