Skip to content
This repository was archived by the owner on Aug 10, 2022. It is now read-only.

Commit 4fd9c8f

Browse files
committed
Add agent_id to RenderRequest in visualgrid
1 parent 7196827 commit 4fd9c8f

File tree

3 files changed

+4
-0
lines changed

3 files changed

+4
-0
lines changed

eyes_common/applitools/common/visual_grid.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,7 @@ def from_response(cls, url, response):
247247
@attr.s
248248
class RenderRequest(object):
249249
webhook = attr.ib(metadata={JsonInclude.NON_NONE: True}) # type: Text
250+
agent_id = attr.ib(metadata={JsonInclude.THIS: True})
250251
url = attr.ib(metadata={JsonInclude.NON_NONE: True}) # type: Text
251252
dom = attr.ib(repr=False, metadata={JsonInclude.NON_NONE: True}) # type: RGridDom
252253
resources = attr.ib(repr=False, metadata={JsonInclude.NON_NONE: True}) # type: dict

eyes_selenium/applitools/selenium/visual_grid/render_task.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ class RenderTask(VGTask):
3939
region_selectors = attr.ib(hash=False, factory=list)
4040
size_mode = attr.ib(default=None)
4141
region_to_check = attr.ib(hash=False, default=None)
42+
agent_id = attr.ib(hash=False, default=None)
4243
func_to_run = attr.ib(default=None, hash=False, repr=False) # type: Callable
4344

4445
def __attrs_post_init__(self):
@@ -149,6 +150,7 @@ def get_resource(link):
149150
)
150151
return RenderRequest(
151152
webhook=self.rendering_info.results_url,
153+
agent_id=self.agent_id,
152154
url=base_url,
153155
dom=dom,
154156
resources=self.request_resources,

eyes_selenium/applitools/selenium/visual_grid/running_test.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,7 @@ def _render_task(
218218
region_selectors=region_selectors,
219219
size_mode=size_mode,
220220
region_to_check=region_to_check,
221+
agent_id=self.eyes.base_agent_id,
221222
)
222223
logger.debug("RunningTest %s" % render_task.name)
223224

0 commit comments

Comments
 (0)