qa-dev / jsonwire-grid

High-performance scalable implementation of Selenium Grid
MIT License
73 stars 10 forks source link

grid status method #41

Closed podtserkovskiy closed 4 years ago

podtserkovskiy commented 4 years ago

Fixes #36

Hi, now I can't provide a web interface, but here is some API that can help you to get the information that you need.

That looks like this:

curl localhost:4444/grid/status -sS | jq "."
{
  "node_list": [
    {
      "key": "10.9.241.207:6666",
      "type": "persistent",
      "address": "10.9.241.207:6666",
      "status": "available",
      "session_id": "",
      "updated": 1572215422,
      "registered": 1572215422,
      "capabilities_list": [
        {
          "browserName": "firefox",
          "marionette": true,
          "maxInstances": 5,
          "platform": "MAC",
          "platformName": "MAC",
          "seleniumProtocol": "WebDriver",
          "server:CONFIG_UUID": "d4771bc0-6349-47be-8f10-f3198e5cd12f"
        },
        {
          "browserName": "chrome",
          "maxInstances": 5,
          "platform": "MAC",
          "platformName": "MAC",
          "seleniumProtocol": "WebDriver",
          "server:CONFIG_UUID": "25cb856d-913c-4f45-ae88-91a76d82e712"
        },
        {
          "browserName": "safari",
          "maxInstances": 1,
          "platform": "MAC",
          "platformName": "MAC",
          "seleniumProtocol": "WebDriver",
          "server:CONFIG_UUID": "5756e9c5-6b3a-4578-afa6-b029d00ad32e",
          "technologyPreview": false
        }
      ]
    }
  ],
  "config": {
    "logger": {
      "level": "debug"
    },
    "db": {
      "implementation": "local",
      "connection": ""
    },
    "grid": {
      "client_type": "selenium",
      "port": 4444,
      "strategy_list": [
        {
          "params": null,
          "type": "persistent",
          "limit": 0,
          "node_list": null
        }
      ],
      "busy_node_duration": "15m",
      "reserved_node_duration": "5m"
    }
  }
}

work

codecov-io commented 4 years ago

Codecov Report

Merging #41 into master will decrease coverage by 0.45%. The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #41      +/-   ##
==========================================
- Coverage   63.67%   63.22%   -0.46%     
==========================================
  Files          21       21              
  Lines         881      881              
==========================================
- Hits          561      557       -4     
- Misses        277      280       +3     
- Partials       43       44       +1
Impacted Files Coverage Δ
pool/node.go 83.33% <ø> (ø) :arrow_up:
pool/strategy/kubernetes/strategy.go 69.23% <0%> (-7.7%) :arrow_down:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 208d0ad...9233c37. Read the comment docs.

podtserkovskiy commented 4 years ago

Не помню, возможно это было связано, с тем что IDE дефолтно генерирует снейк кейс 🤷‍♀️