Skip to content

Commit

Permalink
Fix logic in Elastic.Apm.Feature.Tests
Browse files Browse the repository at this point in the history
This was previously modified causing some tests to fail. This reverts that change as I'm not sure why it was included.
  • Loading branch information
stevejgordon committed Nov 9, 2023
1 parent 4287823 commit 7f0f750
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions test/Elastic.Apm.Feature.Tests/CloudProviderSteps.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ public CloudProviderSteps(
unitTestRuntimeProvider.TestIgnore("Skipping azure function feature tests on Github Actions");
}


[Given(@"an agent configured with")]
[Scope(Feature = "Extracting Metadata for Azure App Service")]
public void AzureAppService_GivenAnAgentConfiguredWith(Table table) => Helper_GivenAnAgentConfiguredWith(table);
Expand Down Expand Up @@ -131,10 +130,7 @@ public void CloudMetadataKeyEqualsValue(string key, string value)
var token = payloadCollector.Payloads[0].Body[0].SelectToken($"metadata.cloud.{key}");

token.Should().NotBeNull();
var prop = token as JProperty;
prop.Should().NotBeNull();
prop.Value<string>().Should().Be(value);

token.Value<string>().Should().Be(value);
}
}
}

0 comments on commit 7f0f750

Please sign in to comment.