mirror of
https://github.com/ansible/awx.git
synced 2026-03-21 10:57:36 -02:30
Removal of OAuth2 stuff from CLI
also from awxkit generally Remove login command
This commit is contained in:
@@ -10,11 +10,10 @@ ParseResult = namedtuple("ParseResult", ["port", "hostname", "secure"])
|
||||
|
||||
|
||||
def test_explicit_hostname():
|
||||
client = WSClient("token", "some-hostname", 556, False)
|
||||
client = WSClient(hostname="some-hostname", port=556, secure=False)
|
||||
assert client.port == 556
|
||||
assert client.hostname == "some-hostname"
|
||||
assert client._use_ssl == False
|
||||
assert client.token == "token"
|
||||
|
||||
|
||||
def test_websocket_suffix():
|
||||
@@ -35,7 +34,7 @@ def test_urlparsing(url, result):
|
||||
with patch("awxkit.ws.config") as mock_config:
|
||||
mock_config.base_url = url
|
||||
|
||||
client = WSClient("token")
|
||||
client = WSClient(hostname=None)
|
||||
assert client.port == result.port
|
||||
assert client.hostname == result.hostname
|
||||
assert client._use_ssl == result.secure
|
||||
|
||||
Reference in New Issue
Block a user