MCPcopy Create free account
hub / github.com/cloudflare/cloudflared / test_get_token

Method test_get_token

component-tests/test_token.py:9–16  ·  view source on GitHub ↗
(self, tmp_path, component_tests_config)

Source from the content-addressed store, hash-verified

7
8class TestToken:
9 def test_get_token(self, tmp_path, component_tests_config):
10 config = component_tests_config()
11 tunnel_id = config.get_tunnel_id()
12
13 token_args = ["--origincert", cert_path(), "token", tunnel_id]
14 output = start_cloudflared(tmp_path, config, token_args)
15
16 assert parse_token(config.get_token()) == parse_token(output.stdout)
17
18 def test_get_credentials_file(self, tmp_path, component_tests_config):
19 config = component_tests_config()

Callers

nothing calls this directly

Calls 6

start_cloudflaredFunction · 0.90
component_tests_configFunction · 0.85
parse_tokenFunction · 0.85
get_tunnel_idMethod · 0.80
get_tokenMethod · 0.80
cert_pathFunction · 0.70

Tested by

no test coverage detected