OSF installation fails phpunit test

29 views
Skip to first unread message

Yoann Mamy Randriamihaja

unread,
Nov 1, 2017, 11:54:45 AM11/1/17
to Open Semantic Framework
Hi,

I'm trying to install osf 3.4 on an EC2 Ubuntu instance (see spec below) and it fails the phpunit test (see log below, I edited the apiKey ).

Please let me know if you have any suggestions on how to fix it. Thanks!

Distributor ID: Ubuntu
Description:    Ubuntu 14.04.5 LTS
Release:        14.04
Codename:       trusty



There was 1 failure:

1) StructuredDynamics\osf\tests\ws\revision\update\RevisionUpdateTest::testInterfaceNotExisting
Debugging information: StructuredDynamics\osf\php\api\ws\revision\update\RevisionUpdateQuery::__set_state(array(
   'endpoint' => 'revision/update/',
   'method' => 'get',
   'mime' => 'resultset',
   'timeout' => 0,
   'resultset' => NULL,
   'supportedMimes' =>
  array (
    0 => 'text/xml',
    1 => 'application/json',
    2 => 'application/rdf+xml',
    3 => 'application/rdf+n3',
    4 => 'application/iron+json',
    5 => 'application/iron+csv',
    6 => 'resultset',
  ),
   'httpStatus' => '400',
   'httpStatusMessage' => 'Bad Request',
   'httpStatusMessageDescription' => '<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"><html><head><title>400 Bad Request</title></head><body><h1>Bad Request</h1><p>Your browser sent a request that this server could not understand.<br /></p><hr><address>Apache/2.4.7 (Ubuntu) Server at ip-172-31-4-23.us-east-2.compute.internal Port 80</address></body></html>',
   'appID' => 'administer',
   'apiKey' => 'E30...',
   'params' =>
  array (
    'interface' => 'unexisting interface',
    'revuri' => 'http%3A%2F%2Ftest.com%2Funittests%2Frevisions%2F1509551115.2922',
    'dataset' => 'http%3A%2F%2Ftest.com%2Funittests%2F',
    'lifecycle' => 'experimental',
    'version' => '3.0',
  ),
   'error' =>
  StructuredDynamics\osf\framework\QuerierError::__set_state(array(
     'id' => 'HTTP-500',
     'level' => 'fatal',
     'name' => 'Fatal Error',
     'description' => 'Unspecified Server Fatal Error',
     'debugInfo' => '<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>400 Bad Request</title>
</head><body>
<h1>Bad Request</h1>
<p>Your browser sent a request that this server could not understand.<br />
</p>
<hr>
<address>Apache/2.4.7 (Ubuntu) Server at ip-172-31-4-23.us-east-2.compute.internal Port 80</address>
</body></html>
',
  )),
))
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-'HTTP-500'
+'WS-REVISION-UPDATE-300'

/usr/sare/open-semantic-framework/StructuredDynamics/osf/tests/ws/revision/update/RevisionUpdateTest.php:170

FAILURES!
Tests: 751, Assertions: 3861, Failures: 1.

Frederick Giasson

unread,
Nov 14, 2017, 8:48:59 PM11/14/17
to open-semant...@googlegroups.com
Hi Yoann,


Looks like that the test triggered some internal error in the server.
The different logs (apache) should be investigated to see what may be
the root cause. Right now, I cannot tell from this log snipped.


Thanks,


Fred
> --
> You received this message because you are subscribed to the Google
> Groups "Open Semantic Framework" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to open-semantic-fra...@googlegroups.com
> <mailto:open-semantic-fra...@googlegroups.com>.
> For more options, visit https://groups.google.com/d/optout.


Theodore Dasher

unread,
Jan 7, 2018, 4:16:04 PM1/7/18
to Open Semantic Framework
Any updates on this error? I have exactly the same issue.
Reply all
Reply to author
Forward
0 new messages