aaronucsd commented on a change in pull request #3464: [TE] frontend - 
harleyjj/rootcause - integration test for inconsistent data warning in ro…
URL: https://github.com/apache/incubator-pinot/pull/3464#discussion_r232862909
 
 

 ##########
 File path: 
thirdeye/thirdeye-frontend/tests/integration/pods/components/rootcause-anomaly/component-test.js
 ##########
 @@ -0,0 +1,102 @@
+import { module, test } from 'qunit';
+import { setupRenderingTest } from 'ember-qunit';
+import { render } from '@ember/test-helpers';
+import hbs from 'htmlbars-inline-precompile';
+import wait from 'ember-test-helpers/wait';
+
+module('Integration | Component | rootcause-anomaly', function(hooks) {
+  setupRenderingTest(hooks);
+
+  test(`displays warning if anomaly function value and displayed value are 
more than 1
+    percent different`, async function(assert) {
+    this.setProperties({
+      entities: {
+        'thirdeye:event:anomaly:1': {
+          urn: 'thirdeye:event:anomaly:1',
+          label: 'dataset1::metric1',
+          attributes : {
+            INGRAPH : [ 
'http://ingraphs.prod.linkedin.com/dashboard/mny-ads-su-on-feed/graph/%5BS3.0%5D%20voyager-api-feed%20-%20overall%20Feed%20SU%20served?fabric_groups=prod&consolidate=Aggregate&use_time_selector&start_time=1541194200000&end_time=1541201400000&overlay_amount=1&overlay_unit=weeks'
 ],
+            weight : [ '0.17679628053981644' ],
+            baseline : [ '3308.878952874078' ],
+            externalUrls : [ 'INGRAPH' ],
+            statusClassification : [ 'NONE' ],
+            score : [ '0.03195732831954956' ],
+            functionId : [ '23645452' ],
+            current : [ '3' ],
+            aggregateMultiplier : [ '0.041666666666666664' ],
+            metricId : [ '17606653' ],
+            metric : [ '[S3_0]_voyager_api_feed_overall_Feed_SU_served' ],
 
 Review comment:
   We need to change these mock values 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to