All Downloads are FREE. Search and download functionalities are using the official Maven repository.

sisyphus.test.case.pb Maven / Gradle / Ivy

There is a newer version: 2.1.22
Show newest version

sisyphus/test/case.proto
sisyphus.testgoogle/protobuf/any.protogoogle/protobuf/duration.proto"?
TestCase
name (	RnameA
metadata (2%.sisyphus.test.TestCase.MetadataEntryRmetadata-
steps (2.sisyphus.test.TestStepRsteps
asserts (	Rasserts;

MetadataEntry
key (	Rkey
value (	Rvalue:8"?
TestStep
id (	Rid
name (	Rname"
precondition (	Rprecondition
	authority (	R	authority
method (	Rmethod*
input (2.google.protobuf.AnyRinput!
input_script (	RinputScriptA
metadata (2%.sisyphus.test.TestStep.MetadataEntryRmetadata'
metadata_script	 (	RmetadataScript 
insensitive
 (Rinsensitive
asserts (	Rasserts3
timeout (2.google.protobuf.DurationRtimeout
retry_count
 (R
retryCount'
retry_condition (	RretryCondition;

MetadataEntry
key (	Rkey
value (	Rvalue:8"?

TestResult+
step (2.sisyphus.test.TestStepRstep+
case (2.sisyphus.test.TestCaseRcase
method (	Rmethod
status (Rstatus
message (	Rmessage*
input (2.google.protobuf.AnyRinput,
output (2.google.protobuf.AnyRoutput@
headers (2&.sisyphus.test.TestResult.HeadersEntryRheadersC
trailers	 (2'.sisyphus.test.TestResult.TrailersEntryRtrailers:
HeadersEntry
key (	Rkey
value (	Rvalue:8;

TrailersEntry
key (	Rkey
value (	Rvalue:8B"
com.bybutter.sisyphus.test?SISJ?#
}




	
#
	
(

3
	
3

!
	
$!
0
$ Struct for a valid test case file.




T

G Display title of test case, it will be set from file name if not set.






	



4
#' The global metadata for running test.






!"


 Test steps.










?
? CEL script for executing asserts.
 Using name of test step to get [TestResult] struct.
 Each CEL script must return true or false.










4
c( Test step information to execute test.




?
"? The unique id of test step, you can use
 this id to get [TestResult] struct in asserts.
 The id must be a valid identifier of CEL.
 To avoid name conflicts, any names same as fields
 of [TestStep] and [TestResult] will be invalid id.


"

"	

"
F
%9 Display title of test step, it will be [id] if not set.


%

%	

%
?
+#? CEL script for determining whether to execute the step.
 Current step will be executed when all script return true.
 In addition, you can use name of test step to get [TestResult] struct
 of test steps which have been executed before.


+


+

+

+!"
N
.A The server host and port, it will be localhost:9090 if not set.


.

.	

.
,
1 The full method name to call.


1

1	

1
#
4  The input of method.


4

4

4
?
:#? CEL script for preparing input.
 Using current [TestStep] as context of CEL executing.
 In addition, you can use name of test step to get [TestResult] struct
 of test steps which have been executed before.


:


:

:

:!"
(
=# The metadata of one call.


=

=

=!"
?
C&? CEL script for preparing metadata.
 Using current [TestStep] as context of CEL executing.
 In addition, you can use name of test step to get [TestResult] struct
 of test steps which have been executed before.


C


C

C!

C$%
?
	G? Mark a test step is not sensitive, it means gRPC call could be failed,
 and asserts will be executed without [output] but with [status] amd [message].


	G

	G

	G
?

O? CEL script for executing asserts.
 The [TestResult] of current [TestCase] will be the global context.
 It means you can use [input] directly to get request message,
 [output] to get response message.
 In addition, you can use name of test step to get [TestResult] struct
 of test steps which have been executed before.



O



O


O


O
?
W(? Timeout duration of compute deadline of gRPC calls.
 Depending on [not_sensitive] field, there are two different behaviors
 in the case of a request timeout.
 - [not_sensitive] is false, the step will failed.
 - [not_sensitive] is true, the asserts will be executed with [status]
   set by '4'(DEADLINE_EXCEEDED).


W

W"

W%'
+
Z Retry count of current step.


Z

Z

Z
?

b'? Retry condition of current step.
 The [TestResult] of current [TestCase] will be the global context.
 It means you can use [input] directly to get request message,
 [output] to get response message.
 In addition, you can use name of test step to get [TestResult] struct
 of test steps which have been executed before.



b



b


b!


b$&
,
f}  Result of executing test step.



f

g

g


g

g

i

i


i

i
.
l! Full method name of [TestStep].


l

l	

l

n

n

n

n

p

p

p	

p
+
s  Input message of [TestStep].


s

s

s
,
v! Output message of [TestStep].


v

v

v 
,
y" Input metadata of [TestStep].


y

y

y !
-
|#  Output metadata of [TestStep].


|

|

|!"bproto3




© 2015 - 2024 Weber Informatics LLC | Privacy Policy