我尝试运行时遇到此错误
RACK_ENV=test be rails test test/system/service_provider_map_test.rb —seed 48088
Java HotSpot(TM) 64-Bit Server VM warning: Cannot open file logs/gc.log due to No such file or directory
Run Code Online (Sandbox Code Playgroud)
然后测试结束时出现此错误
等待群集状态时的超时[绿色]和[1]节点/Users/patrickward/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/elasticsearch-extensions-0.0.26/lib/ elasticsearch/extensions/test/cluster.rb:551:
sleep': execution expired (Timeout::Error) from /Users/patrickward/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/elasticsearch-extensions-0.0.26/lib/elasticsearch/extensions/test/cluster.rb:551:in来自/Users/patrickward/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/elasticsearch-的__wait_for_status 中的块(2个级别) extensions-0.0.26/lib/elasticsearch/extensions/test/cluster.rb:542:loop' from /Users/patrickward/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/elasticsearch-extensions-0.0.26/lib/elasticsearch/extensions/test/cluster.rb:542:in来自/Users/patrickward/.rbenv/versions/2.4.1/lib/ruby/2.4.0/timeout的__wait_for_status 中的块. rb:108:timeout' from /Users/patrickward/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/elasticsearch-extensions-0.0.26/lib/elasticsearch/extensions/test/cluster.rb:541:in__wait_for_status'来自/Users/patrickward/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/elasticsearch-extensions-0.0.26/lib/elasticsearch/extensions/test/ cluster.rb:364:inwait_for_green' from /Users/patrickward/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/elasticsearch-extensions-0.0.26/lib/elasticsearch/extensions/test/cluster.rb:280:instart'from /Users/patrickward/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/elasticsearch-extensions-0.0.26/lib/elasticsearch/extensions/ test/cluster.rb:52:在start' from /Users/patrickward/Desktop/esh/SDR/test/support/elasticsearch_helpers.rb:38:instart_elasticsearch'中来自/Users/patrickward/Desktop/esh/SDR/test/application_system_test_case.rb:12:in<class:ApplicationSystemTestCase>' from /Users/patrickward/Desktop/esh/SDR/test/application_system_test_case.rb:6:in'来自/ Users/patrickward/Desktop/esh/SDR/test/system/service_provider_map_test.rb:2:inrequire' from /Users/patrickward/Desktop/esh/SDR/test/system/service_provider_map_test.rb:2:in"from /Users/patrickward/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/railties-5.1.2/lib/rails/test_unit/test_requirer .rb:14:require' from /Users/patrickward/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/railties-5.1.2/lib/rails/test_unit/test_requirer.rb:14:in来自/Users/patrickward/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/railties-5.1.2/lib/rails/test_unit/test_requirer的require_files 中的 块.rb:13:在each' from /Users/patrickward/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/railties-5.1.2/lib/rails/test_unit/test_requirer.rb:13:in/Users/patrickward/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/railties-5.1.2/lib/rails/test_unit/minitest_plugin.rb的require_files'中:96:在plugin_rails_init' …
我正在尝试使用 boto3 和 aws 运行集成测试。似乎测试无法连接到本地主机端点,因此测试失败。我很确定我已经正确配置了我的 aws 环境变量。我怀疑可能没有本地服务器在运行,但我仍然不确定如何解决这个问题。任何帮助将不胜感激。
我在 Mac Mojave 上运行,我尝试更改服务器尝试连接到 localhost:3000 的端口。我还尝试连接到我正在使用 AWS Step Functions ( https://docs.aws.amazon.com/step-functions/latest/dg/sfn-local-config-options.html )运行的服务器,但是没有运气。
来自日志的错误消息:
ConnectionRefusedError: [Errno 61] Connection refused
Run Code Online (Sandbox Code Playgroud)
和
raise EndpointConnectionError(endpoint_url=request.url, error=e)
botocore.exceptions.EndpointConnectionError: Could not connect to the endpoint URL: "http://127.0.0.1:3001/2015-03-31/functions/AthenaDatabaseProvider/invocations"
Run Code Online (Sandbox Code Playgroud)
完整日志:
Traceback (most recent call last):
File "/Users/patrickward/.local/share/virtualenvs/hobbes-iOpBOaJm/lib/python3.7/site-packages/urllib3/connection.py", line 160, in _new_conn
(self._dns_host, self.port), self.timeout, **extra_kw)
File "/Users/patrickward/.local/share/virtualenvs/hobbes-iOpBOaJm/lib/python3.7/site-packages/urllib3/util/connection.py", line 80, in create_connection
raise err
File "/Users/patrickward/.local/share/virtualenvs/hobbes-iOpBOaJm/lib/python3.7/site-packages/urllib3/util/connection.py", line 70, in create_connection
sock.connect(sa)
ConnectionRefusedError: [Errno 61] Connection refused
During handling of the above exception, …Run Code Online (Sandbox Code Playgroud)