Skip to content
This repository was archived by the owner on Jul 31, 2023. It is now read-only.

http out test cases #928

Merged
bogdandrutu merged 11 commits intomasterfrom
sergkanz/experiment
Mar 21, 2019
Merged

http out test cases #928
bogdandrutu merged 11 commits intomasterfrom
sergkanz/experiment

Conversation

@SergeyKanzhelev
Copy link
Copy Markdown
Member

@SergeyKanzhelev SergeyKanzhelev commented Sep 23, 2018

This is example how shared http out test cases can be used across repositories. The JSON can be either downloaded directly from specs repo or copied into this repo periodically with some script.

This PR also makes two changes in actual code:

  1. Do not add http.user_agent attribute when it's empty
  2. Set error attribute to spans in case of error like DNS error according to https://github.com/opentracing/specification/blob/master/semantic_conventions.md#span-tags-table

Copy link
Copy Markdown
Contributor

@semistrict semistrict left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the good test case. However, I'm not so sure about the changes in behavior. I think they should be justified by the specs.

@SergeyKanzhelev
Copy link
Copy Markdown
Member Author

@Ramonza would you mind to look at it, I've refreshed it

@SergeyKanzhelev SergeyKanzhelev requested review from a team, rakyll and rghetia as code owners March 14, 2019 21:25
t.Errorf("span names don't match: expected: %s, actual: %s", tt.SpanName, client.Name)
}

codeToStr := map[int32]string{
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

how about using codeToStr from here

@bogdandrutu bogdandrutu merged commit 7396103 into master Mar 21, 2019
@bogdandrutu bogdandrutu deleted the sergkanz/experiment branch March 21, 2019 13:53
songy23 pushed a commit that referenced this pull request Apr 3, 2019
* http spec test example

* support for local-server based spec tests

* read test cases from file:

* the same test cases file as for C#

* moved test cases file to testdata

* updated to the lateat spec

* attributes

* fixed linter errors

* fix sync issue

* use already defined map instead

(cherry picked from commit 7396103)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants