Github user nickwallen commented on the issue:

    https://github.com/apache/metron/pull/620
  
    It seems the end-to-end tests are failing for me.  This is what I did to 
run them.  The README is not totally clear to me on how these should be run.
    
    1. `cd incubator-metron/metron-interface/metron-alerts`
    1. `npm install`
    1. `./scripts/start-dev.sh`
    1. Open new console...
    1. `cd incubator-metron/metron-interface/metron-alerts
    1. `sh ./scripts/start-server-for-e2e.sh`
    1. Open new console...
    1. `cd incubator-metron/metron-interface/metron-alerts`
    1. `npm run e2e`
    
    And here is the output.
    ```
    Spec started
    
      metron-alerts App
        ✗ should have all the UI elements
          - Expected 'Alerts (0 of )' to equal 'Alerts (25 of 169)' for alerts 
title
        ✗ should have all pagination controls and they should be working
          - Failed: No element found using locator: By(css selector, 
metron-table-pagination .fa.fa-chevron-left)
        ✓ should have all settings controls and they should be working
        ✓ play pause should start polling and stop polling
        ✗ should select columns from table configuration
          - Expected [ 'score' ] to equal [ 'score', '_id', 'timestamp', 
'source:type', 'ip_src_addr', 'enrichments:geo:ip_dst_addr:country', 
'ip_dst_addr', 'host', 'alert_status' ].
          - Failed: No element found using locator: By(css selector, 
app-configure-table label[for="select-deselect-_id"])
    
    A Jasmine spec timed out. Resetting the WebDriver Control Flow.
      metron-alerts configure table
        ✗ should select columns from table configuration
          - Error: Timeout - Async callback was not invoked within timeout 
specified by jasmine.DEFAULT_TIMEOUT_INTERVAL.
          - Expected [ 'score' ] to equal [ 'score', '_id', 'timestamp', 
'source:type', 'ip_src_addr', 'enrichments:geo:ip_dst_addr:country', 
'ip_dst_addr', 'host', 'alert_status' ].
          - Failed: No element found using locator: By(css selector, 
app-configure-table label[for="select-deselect-_id"])
    
      metron-alerts Search
        ✓ should display all the default values for saved searches
        ✓ should have all save search controls and they save search should be 
working
        ✗ should populate search items when selected on table
          - Failed: Index out of bound. Trying to access element at index: 0, 
but there are only 0 elements that match locator By(link text, US)
        ✗ should delete search items from search box
          - Failed: Index out of bound. Trying to access element at index: 0, 
but there are only 0 elements that match locator By(link text, US)
        ✗ should delete first search items from search box having multiple 
search fields
          - Failed: Index out of bound. Trying to access element at index: 0, 
but there are only 0 elements that match locator By(link text, US)
        ✗ manually entering search queries to search box and pressing enter 
key should search
          - Failed: No element found using locator: By(css selector, 
metron-table-pagination span)
    
    **************************************************
    *                    Failures                    *
    **************************************************
    
    1) metron-alerts App should have all the UI elements
      - Expected 'Alerts (0 of )' to equal 'Alerts (25 of 169)' for alerts title
    
    2) metron-alerts App should have all pagination controls and they should be 
working
      - Failed: No element found using locator: By(css selector, 
metron-table-pagination .fa.fa-chevron-left)
    
    3) metron-alerts App should select columns from table configuration
      - Expected [ 'score' ] to equal [ 'score', '_id', 'timestamp', 
'source:type', 'ip_src_addr', 'enrichments:geo:ip_dst_addr:country', 
'ip_dst_addr', 'host', 'alert_status' ].
      - Failed: No element found using locator: By(css selector, 
app-configure-table label[for="select-deselect-_id"])
    
    4) metron-alerts configure table should select columns from table 
configuration
      - Error: Timeout - Async callback was not invoked within timeout 
specified by jasmine.DEFAULT_TIMEOUT_INTERVAL.
      - Expected [ 'score' ] to equal [ 'score', '_id', 'timestamp', 
'source:type', 'ip_src_addr', 'enrichments:geo:ip_dst_addr:country', 
'ip_dst_addr', 'host', 'alert_status' ].
      - Failed: No element found using locator: By(css selector, 
app-configure-table label[for="select-deselect-_id"])
    
    5) metron-alerts Search should populate search items when selected on table
      - Failed: Index out of bound. Trying to access element at index: 0, but 
there are only 0 elements that match locator By(link text, US)
    
    6) metron-alerts Search should delete search items from search box
      - Failed: Index out of bound. Trying to access element at index: 0, but 
there are only 0 elements that match locator By(link text, US)
    
    7) metron-alerts Search should delete first search items from search box 
having multiple search fields
      - Failed: Index out of bound. Trying to access element at index: 0, but 
there are only 0 elements that match locator By(link text, US)
    
    8) metron-alerts Search manually entering search queries to search box and 
pressing enter key should search
      - Failed: No element found using locator: By(css selector, 
metron-table-pagination span)
    
    Executed 12 of 12 specs (8 FAILED) in 1 min 29 secs.
    [12:08:28] I/launcher - 0 instance(s) of WebDriver still running
    [12:08:28] I/launcher - chrome #01 failed 8 test(s)
    [12:08:28] I/launcher - overall: 8 failed spec(s)
    [12:08:28] E/launcher - Process exited with error code 1
    
    npm ERR! Darwin 16.7.0
    npm ERR! argv "/usr/local/Cellar/node/7.10.0/bin/node" "/usr/local/bin/npm" 
"run" "e2e"
    npm ERR! node v7.10.0
    npm ERR! npm  v4.2.0
    npm ERR! code ELIFECYCLE
    npm ERR! errno 1
    npm ERR! metron-alerts@0.4.0 e2e: `protractor`
    npm ERR! Exit status 1
    npm ERR!
    npm ERR! Failed at the metron-alerts@0.4.0 e2e script 'protractor'.
    npm ERR! Make sure you have the latest version of node.js and npm installed.
    npm ERR! If you do, this is most likely a problem with the metron-alerts 
package,
    npm ERR! not with npm itself.
    npm ERR! Tell the author that this fails on your system:
    npm ERR!     protractor
    npm ERR! You can get information on how to open an issue for this project 
with:
    npm ERR!     npm bugs metron-alerts
    npm ERR! Or if that isn't available, you can get their info via:
    npm ERR!     npm owner ls metron-alerts
    npm ERR! There is likely additional logging output above.
    
    npm ERR! Please include the following file with any support request:
    npm ERR!     /Users/nallen/.npm/_logs/2017-07-25T16_08_28_720Z-debug.log
    
    ```


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to