Code Monkey home page Code Monkey logo

Comments (4)

Monkstar avatar Monkstar commented on August 18, 2024

Okay, so apparently the integration test was passed this time although I wonder why it wasn't when the test ran the first time. The SSL test still failed, though, so I can not install Broker this way:

CTEST_OUTPUT_ON_FAILURE=1 make -C build test
make[1]: Entering directory '/broker/build'
Running tests...
Test project /broker/build
      Start  1: backend
 1/19 Test  #1: backend ..........................   Passed    0.18 sec
      Start  2: bro
 2/19 Test  #2: bro ..............................   Passed    0.01 sec
      Start  3: core
 3/19 Test  #3: core .............................   Passed    0.24 sec
      Start  4: data
 4/19 Test  #4: data .............................   Passed    0.02 sec
      Start  5: status_subscriber
 5/19 Test  #5: status_subscriber ................   Passed    0.02 sec
      Start  6: integration
 6/19 Test  #6: integration ......................   Passed    0.30 sec
      Start  7: master
 7/19 Test  #7: master ...........................   Passed    0.07 sec
      Start  8: publisher
 8/19 Test  #8: publisher ........................   Passed    0.07 sec
      Start  9: radix_tree
 9/19 Test  #9: radix_tree .......................   Passed    1.04 sec
      Start 10: ssl
10/19 Test #10: ssl ..............................***Exception: Other  0.21 sec
+----------------------------------------------------------------------+
                                  ssl
+----------------------------------------------------------------------+

- authenticated_session
** /broker/tests/cpp/ssl.cc:30   test_dir
  -> using certififcate , key  [line 35]
** /broker/tests/cpp/ssl.cc:30   test_dir
  -> using certififcate , key  [line 35]
** /broker/tests/cpp/ssl.cc:30   test_dir
  -> using certififcate , key  [line 35]
  -> prepare authenticated connection [line 74]
  -> mercury_auth listen [line 78]
  -> venus_auth peer with mecury_auth on port 44940 [line 80]
** /broker/tests/cpp/ssl.cc:82   b
  -> mercury_auth sending ping [line 88]
  -> venus_auth waiting for ping [line 90]
** /broker/tests/cpp/ssl.cc:91   ::caf::test::equal_to(venus_auth_es.get(), ping)
** /broker/tests/cpp/ssl.cc:92   mercury_auth_es.poll().empty()
** /broker/tests/cpp/ssl.cc:93   venus_auth_es.poll().empty()
  -> venus_auth sending pong [line 95]
  -> mercury_auth waiting for pong [line 97]
** /broker/tests/cpp/ssl.cc:98   ::caf::test::equal_to(mercury_auth_es.get(), pong)
** /broker/tests/cpp/ssl.cc:99   mercury_auth_es.poll().empty()
** /broker/tests/cpp/ssl.cc:100  venus_auth_es.poll().empty()
  -> disconnect venus_auth from mercury_auth [line 102]
  -> venus_auth to shutdown [line 104]
  -> mercury_auth to shutdown [line 106]
  -> all done [line 108]
  -> 10 checks took 88 ms

- authenticated_failure_no_ssl_peer
** /broker/tests/cpp/ssl.cc:30   test_dir
  -> using certififcate , key  [line 35]
** /broker/tests/cpp/ssl.cc:30   test_dir
  -> using certififcate , key  [line 35]
** /broker/tests/cpp/ssl.cc:30   test_dir
  -> using certififcate , key  [line 35]
  -> prepare authenticated connection expected to fail [line 112]
  -> earth_no_auth listen [line 113]
  -> venus_auth peer with earth_no_auth on port 40355 [line 116]
!! /broker/tests/cpp/ssl.cc:118  not b
     REQUIRED: not b
     /broker/tests/cpp/ssl.cc:30   had last successful check

      Start 11: store
11/19 Test #11: store ............................   Passed    1.15 sec
      Start 12: subscriber
12/19 Test #12: subscriber .......................   Passed    0.04 sec
      Start 13: topic
13/19 Test #13: topic ............................   Passed    0.01 sec
      Start 14: python-communication
14/19 Test #14: python-communication .............   Passed    1.57 sec
      Start 15: python-data
15/19 Test #15: python-data ......................   Passed    0.08 sec
      Start 16: python-forwarding
16/19 Test #16: python-forwarding ................   Passed    5.04 sec
      Start 17: python-ssl
17/19 Test #17: python-ssl .......................   Passed    0.47 sec
      Start 18: python-store
18/19 Test #18: python-store .....................   Passed    4.98 sec
      Start 19: python-topic
19/19 Test #19: python-topic .....................   Passed    0.06 sec

95% tests passed, 1 tests failed out of 19

Total Test time (real) =  15.59 sec

The following tests FAILED:
	 10 - ssl (OTHER_FAULT)
Errors while running CTest
make[1]: *** [test] Error 8
Makefile:72: recipe for target 'test' failed
make[1]: Leaving directory '/broker/build'
Makefile:14: recipe for target 'test' failed
make: *** [test] Error 2
The command '/bin/sh -c cd broker && ./configure --with-caf=/usr/local/actor-framework && make && make test && make install' returned a non-zero code: 2

from broker.

jsiwek avatar jsiwek commented on August 18, 2024

I can reproduce the ssl test failure, but only using the CAF master branch. For your own testing, you'd probably want to checkout CAF version 0.16.2 (currently what broker embeds/uses by default) or 0.16.3 (latest CAF release, which I plan to update to shortly). The Broker ssl test passes for me using those release versions.

from broker.

Monkstar avatar Monkstar commented on August 18, 2024

Ah, thank you. I'll do that then.

from broker.

Neverlord avatar Neverlord commented on August 18, 2024

FWIW, I cannot reproduce a test failure with latest CAF master (debug build with logging):

$ BROKER_TEST_DIR=$PWD/tests ./build/debug/bin/broker-test -v4 -s ssl
+----------------------------------------------------------------------+
                                  ssl
+----------------------------------------------------------------------+

- authenticated_session
** ../../tests/cpp/ssl.cc:30   test_dir
  -> using certififcate /Users/neverlord/corelight/broker/tests/cpp/certs/cert.1.pem, key /Users/neverlord/corelight/broker/tests/cpp/certs/key.1.pem [line 35]
** ../../tests/cpp/ssl.cc:30   test_dir
  -> using certififcate /Users/neverlord/corelight/broker/tests/cpp/certs/cert.2.pem, key /Users/neverlord/corelight/broker/tests/cpp/certs/key.2.pem [line 35]
** ../../tests/cpp/ssl.cc:30   test_dir
  -> using certififcate /Users/neverlord/corelight/broker/tests/cpp/certs/cert.self-signed.pem, key /Users/neverlord/corelight/broker/tests/cpp/certs/key.self-signed.pem [line 35]
  -> prepare authenticated connection [line 74]
  -> mercury_auth listen [line 78]
  -> venus_auth peer with mecury_auth on port 55786 [line 80]
** ../../tests/cpp/ssl.cc:82   b
  -> mercury_auth sending ping [line 87]
  -> venus_auth waiting for ping [line 89]
** ../../tests/cpp/ssl.cc:90   ::caf::test::equal_to(venus_auth_es.get(), ping)
** ../../tests/cpp/ssl.cc:91   mercury_auth_es.poll().empty()
** ../../tests/cpp/ssl.cc:92   venus_auth_es.poll().empty()
  -> venus_auth sending pong [line 94]
  -> mercury_auth waiting for pong [line 96]
** ../../tests/cpp/ssl.cc:97   ::caf::test::equal_to(mercury_auth_es.get(), pong)
** ../../tests/cpp/ssl.cc:98   mercury_auth_es.poll().empty()
** ../../tests/cpp/ssl.cc:99   venus_auth_es.poll().empty()
  -> disconnect venus_auth from mercury_auth [line 101]
  -> venus_auth to shutdown [line 103]
  -> mercury_auth to shutdown [line 105]
  -> all done [line 107]
  -> 10 checks took 857 ms

- authenticated_failure_no_ssl_peer
** ../../tests/cpp/ssl.cc:30   test_dir
  -> using certififcate /Users/neverlord/corelight/broker/tests/cpp/certs/cert.1.pem, key /Users/neverlord/corelight/broker/tests/cpp/certs/key.1.pem [line 35]
** ../../tests/cpp/ssl.cc:30   test_dir
  -> using certififcate /Users/neverlord/corelight/broker/tests/cpp/certs/cert.2.pem, key /Users/neverlord/corelight/broker/tests/cpp/certs/key.2.pem [line 35]
** ../../tests/cpp/ssl.cc:30   test_dir
  -> using certififcate /Users/neverlord/corelight/broker/tests/cpp/certs/cert.self-signed.pem, key /Users/neverlord/corelight/broker/tests/cpp/certs/key.self-signed.pem [line 35]
  -> prepare authenticated connection expected to fail [line 111]
  -> earth_no_auth listen [line 112]
  -> venus_auth peer with earth_no_auth on port 55788 [line 115]
** ../../tests/cpp/ssl.cc:117  not b
  -> venus_auth to shutdown [line 119]
  -> earth_no_auth to shutdown [line 121]
  -> 4 checks took 586 ms

- authenticated_failure_wrong_ssl_peer
** ../../tests/cpp/ssl.cc:30   test_dir
  -> using certififcate /Users/neverlord/corelight/broker/tests/cpp/certs/cert.1.pem, key /Users/neverlord/corelight/broker/tests/cpp/certs/key.1.pem [line 35]
** ../../tests/cpp/ssl.cc:30   test_dir
  -> using certififcate /Users/neverlord/corelight/broker/tests/cpp/certs/cert.2.pem, key /Users/neverlord/corelight/broker/tests/cpp/certs/key.2.pem [line 35]
** ../../tests/cpp/ssl.cc:30   test_dir
  -> using certififcate /Users/neverlord/corelight/broker/tests/cpp/certs/cert.self-signed.pem, key /Users/neverlord/corelight/broker/tests/cpp/certs/key.self-signed.pem [line 35]
  -> prepare authenticated connection expected to fail [line 126]
  -> earth_wrong_auth listen [line 127]
  -> venus_auth peer with earth_wrong_auth on port 55790 [line 130]
** ../../tests/cpp/ssl.cc:132  not b
  -> venus_auth to shutdown [line 134]
  -> earth_wrong_auth to shutdown [line 136]
  -> 4 checks took 603 ms


+----------------------------------------------------------------------+
                                summary
+----------------------------------------------------------------------+

                        suites:  1
                        tests:   3
                        checks:  18
                        time:    2.4 s
                        success: 100%

+----------------------------------------------------------------------+

from broker.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.