-
Notifications
You must be signed in to change notification settings - Fork 2
Basic Telemetry Validation #12
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
Merged
Merged
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
91d5e4e
Basic Telemetry
mrm9084 eb808b3
Merge branch 'main' into BasicTelemetry
mrm9084 7682616
Validation tests for dotnet (#16)
rossgrambo 0a506a5
Merge branch 'main' into BasicTelemetry
mrm9084 4147126
Merge branch 'main' into BasicTelemetry
mrm9084 b89eb30
PascelCase & Formatting
mrm9084 a3bac4f
Delete launchSettings.json
mrm9084 868192e
fixings tests and review comments
mrm9084 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,33 @@ | ||
| { | ||
| "feature_management": { | ||
| "feature_flags": [ | ||
| { | ||
| "id": "TelemetryVariant", | ||
| "description": "", | ||
| "enabled": "true", | ||
| "conditions": { | ||
| "client_filters": [] | ||
| }, | ||
| "variants": [ | ||
| { | ||
| "name": "True_Override", | ||
| "configuration_value": "default", | ||
| "status_override": "Disabled" | ||
| } | ||
| ], | ||
| "allocation": { | ||
| "default_when_enabled": "True_Override" | ||
| }, | ||
| "telemetry": { | ||
| "enabled": "true", | ||
| "metadata": { | ||
| "ETag": "cmwBRcIAq1jUyKL3Kj8bvf9jtxBrFg-R-ayExStMC90", | ||
| "FeatureFlagReference": "https://fake-config-store/kv/.appconfig.featureflag/TelemetryVariant", | ||
| "FeatureFlagId": "7vpkRJe452WVvlKXfA5XF3ASllwKsYZfC7D4w05rIoo", | ||
| "AllocationId": "MExY1waco2tqen4EcJKK" | ||
| } | ||
| } | ||
| } | ||
| ] | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,33 @@ | ||
| [ | ||
| { | ||
| "FeatureFlagName": "TelemetryVariant", | ||
| "Inputs": {"User":"Aiden"}, | ||
| "IsEnabled": { | ||
| "Result": "false" | ||
| }, | ||
| "Variant": { | ||
| "Result": { | ||
| "Name": "True_Override", | ||
| "ConfigurationValue": "default" | ||
| } | ||
| }, | ||
| "Telemetry": { | ||
| "EventName": "FeatureEvaluation", | ||
| "EventProperties": { | ||
| "FeatureName": "TelemetryVariant", | ||
| "Enabled": "False", | ||
| "Version": "1.0.0", | ||
| "Variant": "True_Override", | ||
| "VariantAssignmentReason": "DefaultWhenEnabled", | ||
| "VariantAssignmentPercentage": "100", | ||
| "DefaultWhenEnabled": "True_Override", | ||
| "AllocationId": "MExY1waco2tqen4EcJKK", | ||
| "ETag": "cmwBRcIAq1jUyKL3Kj8bvf9jtxBrFg-R-ayExStMC90", | ||
| "FeatureFlagReference": "https://fake-config-store/kv/.appconfig.featureflag/TelemetryVariant", | ||
| "FeatureFlagId": "7vpkRJe452WVvlKXfA5XF3ASllwKsYZfC7D4w05rIoo", | ||
| "TargetingId": "Aiden" | ||
| } | ||
| }, | ||
| "Description": "A basic feature flag with telemetry." | ||
| } | ||
| ] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,3 @@ | ||
| pytest | ||
| featuremanagement==2.0.0b2 | ||
| azure-appconfiguration-provider==2.0.0b2 | ||
| featuremanagement["AzureMonitor"]==2.0.0b3 | ||
| azure-appconfiguration-provider==2.0.0b3 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This doesn't need to be a patch, right? Since we pass in the callback
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you look at the method
telemetry_callbackyou see we call the standardpublish_telemetrymethod, so we still need this. The idea is we are testing thepublish_telemetrymethod, the custom callback method is for validatingpublish_telemetry.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay that works. That feels more like a python test rather than one of the shared test, but I don't think there's harm in checking it here too.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure what you mean by this? This is testing the values we calculate in
publish_telemetry. Doesn't .Net also calculate a few values then too?