File tree Expand file tree Collapse file tree 3 files changed +8
-95
lines changed
integration_tests/performance Expand file tree Collapse file tree 3 files changed +8
-95
lines changed Original file line number Diff line number Diff line change @@ -77,7 +77,12 @@ def pytest_addoption(parser):
77
77
78
78
def pytest_report_header ():
79
79
"""Pytest hook to print relevant metadata in the logs"""
80
- return f"EC2 AMI: { global_props .ami } "
80
+ return "\n " .join (
81
+ [
82
+ f"EC2 AMI: { global_props .ami } " ,
83
+ f"EC2 Instance ID: { global_props .instance_id } " ,
84
+ ]
85
+ )
81
86
82
87
83
88
@pytest .hookimpl (wrapper = True , tryfirst = True )
Original file line number Diff line number Diff line change @@ -92,9 +92,11 @@ def __init__(self):
92
92
self .environment = self ._detect_environment ()
93
93
if self .is_ec2 :
94
94
self .instance = imdsv2_get ("/meta-data/instance-type" )
95
+ self .instance_id = imdsv2_get ("/meta-data/instance-id" )
95
96
self .ami = imdsv2_get ("/meta-data/ami-id" )
96
97
else :
97
98
self .instance = "NA"
99
+ self .instance_id = "NA"
98
100
self .ami = "NA"
99
101
100
102
@property
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments