Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add trace based testing examples #877

Merged
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
fc1005a
Adding a user purchasing product trace-based test case
danielbdias May 4, 2023
dbedfd6
Adding more tests
danielbdias May 4, 2023
5f31c6d
Adding run script
danielbdias May 4, 2023
d2d9d06
Fixed yaml lint issues
danielbdias May 4, 2023
32c0e72
Adding license header to the files
danielbdias May 4, 2023
d129654
Adding trace-based tests for more services
danielbdias May 11, 2023
804ef19
Updating tests and adding them on the same format as the integration …
danielbdias May 12, 2023
5eb055a
Fixed payment tests
danielbdias May 12, 2023
4080548
Fixing e2e web tests
danielbdias May 13, 2023
ddd9912
Fixing details found by yamllint
danielbdias May 15, 2023
43a6eeb
Updating trace-based tests to refer a protobuf file instead of embedd…
danielbdias Jun 5, 2023
b4f896d
Fixed data types for email test and improved test time
danielbdias Jun 5, 2023
c52d03b
Structured tests per service
danielbdias Jun 24, 2023
02d7f7b
Added tests for frontend service following endpoints used on loadgene…
danielbdias Jun 24, 2023
2bd7c5f
Merge branch 'main' into add/trace-based-testing-examples
danielbdias Jun 26, 2023
6725bbd
fixing yaml lint issues
danielbdias Jun 26, 2023
14e2ea6
Merge branch 'main' into add/trace-based-testing-examples
danielbdias Jul 6, 2023
5dbcec2
Merge branch 'main' into add/trace-based-testing-examples
danielbdias Jul 10, 2023
d60eebd
Merge branch 'main' into add/trace-based-testing-examples
danielbdias Jul 10, 2023
72d2cdd
Fixing small issues on tests
danielbdias Jul 10, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fixing yaml lint issues
  • Loading branch information
danielbdias committed Jun 26, 2023
commit 6725bbdd45e6e9fe3dbae3a3b98ebdffa33feb72
1 change: 0 additions & 1 deletion test/tracetesting/frontend-service/01-see-ads.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,3 @@ spec:
selector: span[tracetest.span.type="rpc" name="oteldemo.AdService/GetAds" rpc.system="grpc" rpc.method="GetAds" rpc.service="oteldemo.AdService"]
assertions:
- attr:app.ads.count = 2

Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ spec:
]
}
specs:
- name: It called the frontend with success
- name: It called the frontend with success
selector: span[tracetest.span.type="general" name="Tracetest trigger"]
assertions:
- attr:tracetest.response.status = 200
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,3 @@ spec:
assertions:
- attr:rpc.grpc.status_code = 0
- attr:app.product.id = "0PUK6V6EV0"

5 changes: 3 additions & 2 deletions test/tracetesting/payment-service/valid-credit-card.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,9 @@ spec:
specs:
- name: It should call Charge method successfully
selector: span[tracetest.span.type="rpc" name="grpc.oteldemo.PaymentService/Charge" rpc.system="grpc" rpc.method="Charge" rpc.service="oteldemo.PaymentService"]
assertions: # instead of returning status_code 0, this service returns 1, but it works as intended
- attr:rpc.grpc.status_code = 1
# instead of returning status_code 0, this service returns 1, but it works as intended
assertions:
- attr:rpc.grpc.status_code = 1
- name: It should return a transaction ID
selector: span[tracetest.span.type="general" name="Tracetest trigger"]
assertions:
Expand Down