File tree 2 files changed +6
-1
lines changed
framework/Magento/TestFramework/Helper
2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ class Amqp
16
16
const CONFIG_PATH_HOST = 'queue/amqp/host ' ;
17
17
const CONFIG_PATH_USER = 'queue/amqp/user ' ;
18
18
const CONFIG_PATH_PASSWORD = 'queue/amqp/password ' ;
19
+ const DEFAULT_MANAGEMENT_PROTOCOL = 'http ' ;
19
20
const DEFAULT_MANAGEMENT_PORT = '15672 ' ;
20
21
21
22
/**
@@ -51,7 +52,10 @@ public function __construct(
51
52
);
52
53
$ this ->curl ->addHeader ('content-type ' , 'application/json ' );
53
54
$ this ->host = sprintf (
54
- 'http://%s:%s/api/ ' ,
55
+ '%s://%s:%s/api/ ' ,
56
+ defined ('RABBITMQ_MANAGEMENT_PROTOCOL ' )
57
+ ? RABBITMQ_MANAGEMENT_PROTOCOL
58
+ : self ::DEFAULT_MANAGEMENT_PROTOCOL ,
55
59
$ this ->deploymentConfig ->get (self ::CONFIG_PATH_HOST ),
56
60
defined ('RABBITMQ_MANAGEMENT_PORT ' ) ? RABBITMQ_MANAGEMENT_PORT : self ::DEFAULT_MANAGEMENT_PORT
57
61
);
Original file line number Diff line number Diff line change 80
80
<!-- <const name="MONGODB_CONNECTION_STRING" value="mongodb://localhost:27017"/>-->
81
81
<!-- <const name="MONGODB_DATABASE_NAME" value="magento_integration_tests"/>-->
82
82
<!-- Connection parameters for RabbitMQ tests -->
83
+ <!-- <const name="RABBITMQ_MANAGEMENT_PROTOCOL" value="https"/>-->
83
84
<!-- <const name="RABBITMQ_MANAGEMENT_PORT" value="15672"/>-->
84
85
<!-- <const name="TESTS_PARALLEL_RUN" value="1"/>-->
85
86
<const name =" USE_OVERRIDE_CONFIG" value =" enabled" />
You can’t perform that action at this time.
0 commit comments