Skip to content

Commit

Permalink
Merge release changes into dev (#1154)
Browse files Browse the repository at this point in the history
  • Loading branch information
jboddey authored and OlgaMardvilko committed Feb 25, 2025
1 parent 5a0d8ca commit 30f1854
Show file tree
Hide file tree
Showing 13 changed files with 670 additions and 14 deletions.
654 changes: 653 additions & 1 deletion docs/dev/postman.json

Large diffs are not rendered by default.

2 changes: 0 additions & 2 deletions framework/python/src/common/testreport.py
Original file line number Diff line number Diff line change
Expand Up @@ -270,8 +270,6 @@ def to_html(self):
logic = current_test_pack.get_logic()
steps_to_resolve_ = logic.get_steps_to_resolve(json_data)

LOGGER.debug(steps_to_resolve_)

module_reports = self._module_reports
env_module = Environment(loader=BaseLoader())
pages_num = self._pages_num(json_data)
Expand Down
1 change: 0 additions & 1 deletion framework/python/src/core/session.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,6 @@ def __init__(self, root_dir):

# System network interfaces
self._ifaces = {}

# Loading methods
self._load_version()
self._load_config()
Expand Down
1 change: 0 additions & 1 deletion framework/python/src/test_orc/test_orchestrator.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,6 @@ def run_test_modules(self):
report = TestReport()

generated_report_json = self._generate_report()

report.from_json(generated_report_json)
report.add_module_reports(self.get_session().get_module_reports())
report.add_module_templates(self.get_session().get_module_templates())
Expand Down
2 changes: 1 addition & 1 deletion framework/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ responses==0.25.3
markdown==3.5.2

# Requirements for the session
cryptography==44.0.0
cryptography==44.0.1
pytz==2024.1

# Requirements for the risk profile
Expand Down
2 changes: 1 addition & 1 deletion make/DEBIAN/control
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Package: Testrun
Version: 2.1
Version: 2.1.1
Architecture: amd64
Maintainer: Google <[email protected]>
Homepage: https://github.com/google/testrun
Expand Down
2 changes: 1 addition & 1 deletion modules/test/base/python/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ grpcio-tools==1.67.1
netifaces==0.11.0

# Requirements for reports generation
Jinja2==3.1.4
Jinja2==3.1.5
2 changes: 1 addition & 1 deletion modules/test/conn/python/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Package dependencies should always be defined before the user defined
# packages to prevent auto-upgrades of stable dependencies
cffi==1.17.1
cryptography==43.0.3
cryptography==44.0.1
pycparser==2.22
six==1.16.0

Expand Down
2 changes: 1 addition & 1 deletion modules/test/tls/python/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ termcolor==2.4.0
urllib3==2.2.2

# User defined packages
cryptography==43.0.1
cryptography==44.0.1
pyOpenSSL==24.3.0
lxml==5.1.0 # Requirement of pyshark but if upgraded automatically above 5.1 will cause a
pyshark==0.6
Expand Down
1 change: 1 addition & 0 deletions modules/test/tls/python/src/tls_module.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
LOGGER = None
REPORT_TEMPLATE_FILE = 'report_template.jinja2'


class TLSModule(TestModule):
"""The TLS testing module."""

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ export class TestrunInitiateFormComponent
extends EscapableDialogComponent
implements OnInit, AfterViewChecked
{
private startRequestSent = new BehaviorSubject(false);
override dialogRef: MatDialogRef<TestrunInitiateFormComponent>;
data = inject<DialogData>(MAT_DIALOG_DATA);
private readonly testRunService = inject(TestRunService);
Expand Down Expand Up @@ -204,7 +205,8 @@ export class TestrunInitiateFormComponent
}
);

if (this.selectedDevice) {
if (this.selectedDevice && !this.startRequestSent.value) {
this.startRequestSent.next(true);
this.testRunService.fetchVersion();
this.testRunService
.startTestrun({
Expand All @@ -213,8 +215,13 @@ export class TestrunInitiateFormComponent
test_modules: testModules,
})
.pipe(take(1))
.subscribe(status => {
this.cancel(status);
.subscribe({
next: status => {
this.cancel(status);
},
error: () => {
this.startRequestSent.next(false);
},
});
}
}
Expand Down
2 changes: 1 addition & 1 deletion resources/test_packs/pilot/report_templates/summary.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
<div class="summary-box-value">Complete</div>
<div class="summary-box-label">Test Result</div>
<div class="summary-box-value">{{ json_data['result'] }}</div>
<div class="summary-box-label">Preliminary Pilot Recommendation</div>
<div class="summary-box-label">Pilot Recommendation</div>
<div style="color: white; font-size:24px; font-weight: 700;" class="summary-box-value">{{ json_data['status'] }}</div>
<div class="summary-box-label">Started</div>
<div class="summary-box-value">{{ json_data['started']}}</div>
Expand Down
Binary file modified testing/api/reports/report.pdf
Binary file not shown.

0 comments on commit 30f1854

Please sign in to comment.