public void ShouldGenerateFeatureSpecificGateOperationTimerMetricWhenTestingFeature() { Flipper.Feature("Stats").EnableActor(FlipperActor); Flipper.Feature("Stats").IsEnabledFor(FlipperActor); StatsdClient.AssertWasCalled(x => x.LogTiming(Arg <string> .Is.Equal("flipper.feature.Stats.gate_operation.boolean.open"), Arg <long> .Is.Anything)); }
public void TestFeatureMetricsForTestingFeature(string counterName) { Feature.IsEnabledFor(FlipperActor); StatsdClient.AssertWasCalled(x => x.LogTiming(Arg <string> .Is.Equal("flipper.feature_operation.enabled"), Arg <long> .Is.Anything)); StatsdClient.AssertWasCalled(x => x.LogCount(counterName)); }
public void ShouldGenerateFeatureSpecificGateOperationTimerMetricWhenTestingFeature(string gateName, string state) { Flipper.Feature("Stats").EnableActor(FlipperActor); Flipper.Feature("Stats").IsEnabledFor(FlipperActor); var expectedStatName = string.Format("flipper.feature.Stats.gate.{0}.{1}", gateName, state); StatsdClient.AssertWasCalled(x => x.LogCount(expectedStatName)); }
public void TestAdapterMetricsForTestingFeature() { Flipper.Feature("Name").IsEnabledFor(FlipperActor); StatsdClient.AssertWasCalled(x => x.LogTiming(Arg <string> .Is.Equal("flipper.adapter.memory.get"), Arg <long> .Is.Anything)); }
public void ShouldCreateAFeatureTimerMetricWhenDisablingFeature() { Flipper.Feature("Name").DisableActor(FlipperActor); StatsdClient.AssertWasCalled(x => x.LogTiming(Arg <string> .Is.Equal("flipper.adapter.memory.disable"), Arg <long> .Is.Anything)); }
public void ShouldCreateAFeatureTimerMetricWhenDisablingFeature() { Feature.DisableActor(FlipperActor); StatsdClient.AssertWasCalled(x => x.LogTiming(Arg <string> .Is.Equal("flipper.feature_operation.disable"), Arg <long> .Is.Anything)); }