Commit Graph

8 Commits

Author SHA1 Message Date
Mikel Blanchard 5b9cba7cbd
[repo] CI updates (#4016)
* Port some CI tweaks from contrib.

* Logging in integration tests.

* Test tweaks.

* Warning cleanup.

* Fix format.

* Comments.
2022-12-15 16:08:30 -08:00
Timothy Mothra 2f492b2fc0
fix W3CTraceContextTests integration test (#3938) 2022-11-23 15:59:47 -08:00
Vishwesh Bankwar 361912efa7
Refactor w3tracecontext integration test (#3563) 2022-08-08 17:04:41 -07:00
Travis Illig d55de344f1
Fix IDE0090: 'using' statement can be simplified. (#3017) 2022-03-10 21:32:41 -08:00
xiang17 c188edb48f
Make all test cases in W3C trace-context test suite pass (#1668)
* Fixing errors in W3CTraceContextTests

* Fix test_tracestate_key_illegal_vendor_format and test_tracestate_key_length_limit

(cherry picked from commit 5a2bd56c8f83b8e9094534084988992184f4fe7e)

* update test run result

(cherry picked from commit 4e23f9aec69c59affb27327e0a624b32a82317cc)

* Fix test_traceparent_version_0x00 and test_traceparent_version_0xff

Note: the bug was introduced in https://github.com/open-telemetry/opentelemetry-dotnet/pull/923/files#diff-670edb2ea7fa1212aab16a9f732dad8b1e2f15801a3eac1bd0824385355d7d97L262

* Validate key with Trace Context v1 https://www.w3.org/TR/trace-context-1/ which has W3C Recommendation status.

* Refactor validator for lower case alpha and digit

* Fix bug in vendor parsing and vendor valid character check.

* Fix typo and add link where magic numbers are defined.

* Adding comments

* Update comment

* Reuse OWS (Optional Whitespace characters). Utilize return value of HashSet.Add. Forbid upper case in traceparent string.

* Use Span and Slice instead of string.Split

* Remove unused OptionalWhiteSpaceCharacters variable

Co-authored-by: Cijo Thomas <cithomas@microsoft.com>
2021-01-06 10:38:49 -08:00
Eddy Nakamura ec14f92be9
Adding multitarget to integration tests (#1266)
* Adding multitarget to integration tests

changing to ENV

updating to multiline

removing multiline

updating version of docker-compose

updating dockerfile

updating pipeline

testing again

testing

updating version to 3.7

updating dockerfile

testing

updating to env

adding .env to test

updating docker compose

removing default value

docker compose with options

updating dockerfile to isntall netcore 2.1

adding info to check what are the versions installed

updating script

adding condition to download only in netcoreapp2.1

updating condition

updating dockerfile

adding arg

updating files to enable netcoreapp2.1 and 3.1 test

updating version

removing duplicated files, adding to build folder

updating project to tests

updating project to tests

updating to tests

adding sdk as tag

updating dockerfile

removing sdk_version fixed value

updating arg order

updating files

* removing fixed version

* Attempting to get redis integration tests up and running.

* Attempting to get SqlClient integration tests working on 2.1 + 3.1.

* Attempting to get W3C integration tests running on 2.1 & 3.1.

* Added version to Microsoft.AspNetCore.App 2.1 refs.

* Comment cleanup.

* Attempting to fix explicit reference warnings.

Co-authored-by: Mikel Blanchard <mblanchard@macrosssoftware.com>
2020-09-19 10:00:30 -07:00
Eddy Nakamura c7429d25c9
Normalizing format (#1289)
updating gitattributes

updating

updating

updating

Revert "Normalizing format"

This reverts commit b571e430a73f65605481ef0a622a372bc8a787ae.

Updating everything to utf-8

applying lf

Revert "applying lf"

This reverts commit a54947f24ba69eecc931525f2a69647040fdc28d.

updating config

Co-authored-by: Mikel Blanchard <mblanchard@macrosssoftware.com>
2020-09-19 09:45:29 -07:00
xiang17 6c697f401e
Adding W3C trace context integration test (#1124)
* Add instrumentation for W3C trace context in TestApp

* Add unit test for W3C Trace Context test suite

* Fix error SA1638: File header file name documentation should match file name

* remove assert

* Change ITestOutputHelper for test output

* Add project template for W3C Trace Context

* Move the test class to new test project

* Created an InProcessServer as the web server

* remove assert

* Use services.AddOpenTelemetry

* Run the test suite in a docker container

* Update to follow the rename of extension methods from AddOpenTelemetry to AddOpenTelemetryTracerProvider

* Add tests to GitHub Actions workflow

* rename to services.AddOpenTelemetryTracing

Co-authored-by: Cijo Thomas <cithomas@microsoft.com>
2020-09-08 10:40:29 -07:00