@@ -3598,6 +3598,7 @@ def fix_result_multipart_indent(results):
3598
3598
res_dedent = res_dedent .rstrip ("\n " ) # last line often indented less because of closing multiline string
3599
3599
return res_dedent
3600
3600
3601
+ @pytest .mark .oap_part1
3601
3602
def test_execute_single_output_prefer_header_return_representation_literal (self ):
3602
3603
proc = "EchoResultsTester"
3603
3604
p_id = self .fully_qualified_test_process_name (proc )
@@ -3644,6 +3645,7 @@ def test_execute_single_output_prefer_header_return_representation_literal(self)
3644
3645
},
3645
3646
}
3646
3647
3648
+ @pytest .mark .oap_part1
3647
3649
def test_execute_single_output_prefer_header_return_representation_complex (self ):
3648
3650
proc = "EchoResultsTester"
3649
3651
p_id = self .fully_qualified_test_process_name (proc )
@@ -3693,6 +3695,7 @@ def test_execute_single_output_prefer_header_return_representation_complex(self)
3693
3695
},
3694
3696
}
3695
3697
3698
+ @pytest .mark .oap_part1
3696
3699
def test_execute_single_output_prefer_header_return_minimal_literal_accept_default (self ):
3697
3700
"""
3698
3701
For single requested output, without ``Accept`` content negotiation, its default format is returned directly.
@@ -3746,6 +3749,7 @@ def test_execute_single_output_prefer_header_return_minimal_literal_accept_defau
3746
3749
},
3747
3750
}
3748
3751
3752
+ @pytest .mark .oap_part1
3749
3753
def test_execute_single_output_prefer_header_return_minimal_literal_accept_json (self ):
3750
3754
"""
3751
3755
For single requested output, with ``Accept`` :term:`JSON` content negotiation, document response is returned.
@@ -3801,6 +3805,7 @@ def test_execute_single_output_prefer_header_return_minimal_literal_accept_json(
3801
3805
},
3802
3806
}
3803
3807
3808
+ @pytest .mark .oap_part1
3804
3809
def test_execute_single_output_prefer_header_return_minimal_complex_accept_default (self ):
3805
3810
"""
3806
3811
For single requested output, without ``Accept`` content negotiation, its default format is returned by link.
@@ -3880,6 +3885,7 @@ def test_execute_single_output_prefer_header_return_minimal_complex_accept_defau
3880
3885
},
3881
3886
}
3882
3887
3888
+ @pytest .mark .oap_part1
3883
3889
def test_execute_single_output_prefer_header_return_minimal_complex_accept_json (self ):
3884
3890
"""
3885
3891
For single requested output, with ``Accept`` :term:`JSON` content negotiation, document response is returned.
@@ -3955,6 +3961,7 @@ def test_execute_single_output_prefer_header_return_minimal_complex_accept_json(
3955
3961
},
3956
3962
}
3957
3963
3964
+ @pytest .mark .oap_part1
3958
3965
def test_execute_single_output_response_raw_value_literal (self ):
3959
3966
proc = "EchoResultsTester"
3960
3967
p_id = self .fully_qualified_test_process_name (proc )
@@ -3999,6 +4006,7 @@ def test_execute_single_output_response_raw_value_literal(self):
3999
4006
},
4000
4007
}
4001
4008
4009
+ @pytest .mark .oap_part1
4002
4010
def test_execute_single_output_response_raw_value_complex (self ):
4003
4011
"""
4004
4012
Since value transmission is requested for a single output, its :term:`JSON` contents are returned directly.
@@ -4054,6 +4062,7 @@ def test_execute_single_output_response_raw_value_complex(self):
4054
4062
},
4055
4063
}
4056
4064
4065
+ @pytest .mark .oap_part1
4057
4066
def test_execute_single_output_response_raw_reference_literal (self ):
4058
4067
proc = "EchoResultsTester"
4059
4068
p_id = self .fully_qualified_test_process_name (proc )
@@ -4113,6 +4122,7 @@ def test_execute_single_output_response_raw_reference_literal(self):
4113
4122
},
4114
4123
}
4115
4124
4125
+ @pytest .mark .oap_part1
4116
4126
def test_execute_single_output_response_raw_reference_complex (self ):
4117
4127
proc = "EchoResultsTester"
4118
4128
p_id = self .fully_qualified_test_process_name (proc )
@@ -4172,6 +4182,7 @@ def test_execute_single_output_response_raw_reference_complex(self):
4172
4182
},
4173
4183
}
4174
4184
4185
+ @pytest .mark .oap_part1
4175
4186
def test_execute_single_output_multipart_accept_data (self ):
4176
4187
"""
4177
4188
Validate that requesting multipart for a single output is permitted.
@@ -4250,6 +4261,7 @@ def test_execute_single_output_multipart_accept_data(self):
4250
4261
},
4251
4262
}
4252
4263
4264
+ @pytest .mark .oap_part1
4253
4265
def test_execute_single_output_multipart_accept_link (self ):
4254
4266
"""
4255
4267
Validate that requesting multipart for a single output is permitted.
@@ -4326,6 +4338,7 @@ def test_execute_single_output_multipart_accept_link(self):
4326
4338
}
4327
4339
4328
4340
# FIXME: implement (https://github.com/crim-ca/weaver/pull/548)
4341
+ @pytest .mark .oap_part1
4329
4342
@pytest .mark .xfail (reason = "not implemented" )
4330
4343
def test_execute_single_output_multipart_accept_alt_format (self ):
4331
4344
"""
@@ -4408,6 +4421,7 @@ def test_execute_single_output_multipart_accept_alt_format(self):
4408
4421
assert result_json .text == "{\" data\" :\" test\" }"
4409
4422
4410
4423
# FIXME: implement (https://github.com/crim-ca/weaver/pull/548)
4424
+ @pytest .mark .oap_part1
4411
4425
@pytest .mark .xfail (reason = "not implemented" )
4412
4426
def test_execute_single_output_response_document_alt_format_yaml (self ):
4413
4427
proc = "EchoResultsTester"
@@ -4484,6 +4498,7 @@ def test_execute_single_output_response_document_alt_format_yaml(self):
4484
4498
assert result_json .content_type == ContentType .APP_JSON
4485
4499
assert result_json .text == "{\" data\" :\" test\" }"
4486
4500
4501
+ @pytest .mark .oap_part1
4487
4502
def test_execute_single_output_response_document_alt_format_json_raw_literal (self ):
4488
4503
proc = "EchoResultsTester"
4489
4504
p_id = self .fully_qualified_test_process_name (proc )
@@ -4555,6 +4570,7 @@ def test_execute_single_output_response_document_alt_format_json_raw_literal(sel
4555
4570
# assert result_json.content_type == ContentType.APP_JSON
4556
4571
# assert result_json.json == {"data": "test"}
4557
4572
4573
+ @pytest .mark .oap_part1
4558
4574
def test_execute_single_output_response_document_default_format_json_special (self ):
4559
4575
"""
4560
4576
Validate that a :term:`JSON` output is directly embedded in a ``document`` response also using :term:`JSON`.
@@ -4631,6 +4647,7 @@ def test_execute_single_output_response_document_default_format_json_special(sel
4631
4647
},
4632
4648
}
4633
4649
4650
+ @pytest .mark .oap_part1
4634
4651
@parameterized .expand ([
4635
4652
ContentType .MULTIPART_ANY ,
4636
4653
ContentType .MULTIPART_MIXED ,
@@ -4724,6 +4741,7 @@ def test_execute_multi_output_multipart_accept(self, multipart_header):
4724
4741
},
4725
4742
}
4726
4743
4744
+ @pytest .mark .oap_part1
4727
4745
def test_execute_multi_output_multipart_accept_async_not_acceptable (self ):
4728
4746
"""
4729
4747
When executing the process asynchronously, ``Accept`` with multipart (strictly) is not acceptable.
@@ -4766,6 +4784,7 @@ def test_execute_multi_output_multipart_accept_async_not_acceptable(self):
4766
4784
"in" : "headers" ,
4767
4785
}
4768
4786
4787
+ @pytest .mark .oap_part1
4769
4788
def test_execute_multi_output_multipart_accept_async_alt_acceptable (self ):
4770
4789
"""
4771
4790
When executing the process asynchronously, ``Accept`` with multipart and an alternative is acceptable.
@@ -4806,6 +4825,7 @@ def test_execute_multi_output_multipart_accept_async_alt_acceptable(self):
4806
4825
assert "Preference-Applied" in resp .headers
4807
4826
assert resp .headers ["Preference-Applied" ] == prefer_header .replace ("," , ";" )
4808
4827
4828
+ @pytest .mark .oap_part1
4809
4829
def test_execute_multi_output_prefer_header_return_representation (self ):
4810
4830
proc = "EchoResultsTester"
4811
4831
p_id = self .fully_qualified_test_process_name (proc )
@@ -4881,6 +4901,7 @@ def test_execute_multi_output_prefer_header_return_representation(self):
4881
4901
},
4882
4902
}
4883
4903
4904
+ @pytest .mark .oap_part1
4884
4905
def test_execute_multi_output_response_raw_value (self ):
4885
4906
proc = "EchoResultsTester"
4886
4907
p_id = self .fully_qualified_test_process_name (proc )
@@ -4954,6 +4975,7 @@ def test_execute_multi_output_response_raw_value(self):
4954
4975
},
4955
4976
}
4956
4977
4978
+ @pytest .mark .oap_part1
4957
4979
def test_execute_multi_output_response_raw_reference_default_links (self ):
4958
4980
"""
4959
4981
All outputs resolved as reference (explicitly or inferred) with raw representation should be all Link headers.
@@ -5028,6 +5050,7 @@ def test_execute_multi_output_response_raw_reference_default_links(self):
5028
5050
},
5029
5051
}
5030
5052
5053
+ @pytest .mark .oap_part1
5031
5054
def test_execute_multi_output_response_raw_reference_accept_multipart (self ):
5032
5055
"""
5033
5056
Requesting ``multipart`` explicitly should return it instead of default ``Link`` headers response.
@@ -5115,6 +5138,7 @@ def test_execute_multi_output_response_raw_reference_accept_multipart(self):
5115
5138
},
5116
5139
}
5117
5140
5141
+ @pytest .mark .oap_part1
5118
5142
def test_execute_multi_output_response_raw_mixed (self ):
5119
5143
proc = "EchoResultsTester"
5120
5144
p_id = self .fully_qualified_test_process_name (proc )
@@ -5200,6 +5224,7 @@ def test_execute_multi_output_response_raw_mixed(self):
5200
5224
},
5201
5225
}
5202
5226
5227
+ @pytest .mark .oap_part1
5203
5228
def test_execute_multi_output_prefer_header_return_minimal_defaults (self ):
5204
5229
"""
5205
5230
Test ``Prefer: return=minimal`` with default ``transmissionMode`` resolutions for literal/complex outputs.
@@ -5264,6 +5289,7 @@ def test_execute_multi_output_prefer_header_return_minimal_defaults(self):
5264
5289
},
5265
5290
}
5266
5291
5292
+ @pytest .mark .oap_part1
5267
5293
def test_execute_multi_output_prefer_header_return_minimal_override_transmission (self ):
5268
5294
"""
5269
5295
Test ``Prefer: return=minimal`` with ``transmissionMode`` overrides.
@@ -5344,6 +5370,7 @@ def test_execute_multi_output_prefer_header_return_minimal_override_transmission
5344
5370
},
5345
5371
}
5346
5372
5373
+ @pytest .mark .oap_part1
5347
5374
def test_execute_multi_output_response_document_defaults (self ):
5348
5375
"""
5349
5376
Test ``response: document`` with default ``transmissionMode`` resolutions for literal/complex outputs.
@@ -5408,6 +5435,7 @@ def test_execute_multi_output_response_document_defaults(self):
5408
5435
},
5409
5436
}
5410
5437
5438
+ @pytest .mark .oap_part1
5411
5439
def test_execute_multi_output_response_document_mixed (self ):
5412
5440
"""
5413
5441
Test ``response: document`` with ``transmissionMode`` specified to force convertion of literal/complex outputs.
@@ -5485,6 +5513,18 @@ def test_execute_multi_output_response_document_mixed(self):
5485
5513
},
5486
5514
}
5487
5515
5516
+ @pytest .mark .oap_part4
5517
+ def test_execute_jobs_sync (self ):
5518
+ raise NotImplementedError # FIMXE: POST /jobs with 'Prefer: wait=X' and return results directly
5519
+
5520
+ @pytest .mark .oap_part4
5521
+ def test_execute_jobs_async (self ):
5522
+ raise NotImplementedError # FIMXE: POST /jobs with 'Prefer: respond-asny' and GET /jobs/{jobId}/results
5523
+
5524
+ @pytest .mark .oap_part4
5525
+ def test_execute_jobs_create_trigger (self ):
5526
+ raise NotImplementedError # FIMXE: POST /jobs with 'status:create' and POST /jobs/{jobId}/results to trigger
5527
+
5488
5528
5489
5529
@pytest .mark .functional
5490
5530
class WpsPackageAppWithS3BucketTest (WpsConfigBase , ResourcesUtil ):
0 commit comments