@@ -1929,11 +1929,13 @@ def test_job_update_execution_parameters(self):
1929
1929
"""
1930
1930
Test modification of the execution ``return`` and ``response`` options, going back-and-forth between approaches.
1931
1931
"""
1932
+ test_inputs = {"message" : "test" }
1933
+ test_outputs = {"result" : {"transmissionMode" : ExecuteTransmissionMode .VALUE }}
1932
1934
new_job = self .make_job (
1933
1935
task_id = self .fully_qualified_test_name (), process = self .process_public .identifier , service = None ,
1934
1936
status = Status .CREATED , progress = 0 , access = Visibility .PUBLIC ,
1935
- execute_mode = ExecuteMode .AUTO ,
1936
- execute_response = ExecuteResponse . DOCUMENT ,
1937
+ execute_mode = ExecuteMode .AUTO , execute_response = ExecuteResponse . DOCUMENT ,
1938
+ inputs = test_inputs , outputs = test_outputs ,
1937
1939
)
1938
1940
1939
1941
body = {}
@@ -1950,6 +1952,8 @@ def test_job_update_execution_parameters(self):
1950
1952
assert resp .json ["mode" ] == ExecuteMode .AUTO
1951
1953
assert resp .json ["response" ] == ExecuteResponse .RAW
1952
1954
assert resp .json ["headers" ]["Prefer" ] == f"return={ ExecuteReturnPreference .REPRESENTATION } "
1955
+ assert resp .json ["inputs" ] == test_inputs
1956
+ assert resp .json ["outputs" ] == test_outputs
1953
1957
1954
1958
body = {"response" : ExecuteResponse .DOCUMENT }
1955
1959
path = f"/jobs/{ new_job .id } "
@@ -1962,6 +1966,8 @@ def test_job_update_execution_parameters(self):
1962
1966
assert resp .json ["mode" ] == ExecuteMode .AUTO
1963
1967
assert resp .json ["response" ] == ExecuteResponse .DOCUMENT
1964
1968
assert resp .json ["headers" ]["Prefer" ] == f"return={ ExecuteReturnPreference .MINIMAL } "
1969
+ assert resp .json ["inputs" ] == test_inputs
1970
+ assert resp .json ["outputs" ] == test_outputs
1965
1971
1966
1972
body = {}
1967
1973
headers = {
@@ -1977,6 +1983,8 @@ def test_job_update_execution_parameters(self):
1977
1983
assert resp .json ["mode" ] == ExecuteMode .AUTO
1978
1984
assert resp .json ["response" ] == ExecuteResponse .RAW
1979
1985
assert resp .json ["headers" ]["Prefer" ] == f"return={ ExecuteReturnPreference .REPRESENTATION } "
1986
+ assert resp .json ["inputs" ] == test_inputs
1987
+ assert resp .json ["outputs" ] == test_outputs
1980
1988
1981
1989
body = {"response" : ExecuteResponse .RAW }
1982
1990
path = f"/jobs/{ new_job .id } "
@@ -1989,6 +1997,8 @@ def test_job_update_execution_parameters(self):
1989
1997
assert resp .json ["mode" ] == ExecuteMode .AUTO
1990
1998
assert resp .json ["response" ] == ExecuteResponse .RAW
1991
1999
assert resp .json ["headers" ]["Prefer" ] == f"return={ ExecuteReturnPreference .REPRESENTATION } "
2000
+ assert resp .json ["inputs" ] == test_inputs
2001
+ assert resp .json ["outputs" ] == test_outputs
1992
2002
1993
2003
@pytest .mark .oap_part4
1994
2004
def test_job_update_subscribers (self ):
0 commit comments