Bump sphinx-autodoc-typehints from 2.3.0 to 2.4.1 #1003
89 tests run, 21 passed, 4 skipped, 64 failed.
Annotations
Check failure on line 1 in tests/auth/test_api.py
github-actions / Test Report ubuntu-latest:3.10
test_api.test_get_users
failed on setup with "RuntimeError: Failed to contact jms info endpoint https://localhost:8443/hps/jms/api/v1, status code 404:
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html>
<head>
<title>Error: 404 Not Found</title>
<style type="text/css">
html {background-color: #eee; font-family: sans;}
body {background-color: #fff; border: 1px solid #ddd;
padding: 15px; margin: 15px;}
pre {background-color: #eee; border: 1px solid #ddd; padding: 5px;}
</style>
</head>
<body>
<h1>Error: 404 Not Found</h1>
<p>Sorry, the requested URL <tt>'https://localhost:8443/hps/jms/api/v1'</tt>
caused an error:</p>
<pre>Not found: '/hps/jms/api/v1'</pre>
</body>
</html>"
Raw output
url = 'https://localhost:8443/hps', username = 'repadmin', password = 'repadmin'
@pytest.fixture(scope="session")
def client(url, username, password):
> return Client(url, username, password, verify=False)
tests/conftest.py:59:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <ansys.hps.client.client.Client object at 0x7f164df76500>
url = 'https://localhost:8443/hps', username = 'repadmin', password = 'repadmin'
realm = 'rep', grant_type = None, scope = 'openid', client_id = 'rep-cli'
client_secret = None, access_token = None, refresh_token = None
all_fields = True
def __init__(
self,
url: str = "https://127.0.0.1:8443/hps",
username: str = None,
password: str = None,
*,
realm: str = "rep",
grant_type: str = None,
scope="openid",
client_id: str = "rep-cli",
client_secret: str = None,
access_token: str = None,
refresh_token: str = None,
all_fields=True,
verify: Union[bool, str] = None,
disable_security_warnings: bool = True,
**kwargs,
):
rep_url = kwargs.get("rep_url", None)
if rep_url is not None:
url = rep_url
msg = "The 'rep_url' input argument is deprecated. Use 'url' instead."
warnings.warn(msg, DeprecationWarning)
log.warning(msg)
auth_url = kwargs.get("auth_url", None)
if auth_url is not None:
msg = (
"The 'auth_url' input argument is deprecated. Use None instead. "
"New HPS deployments will determine this automatically."
)
warnings.warn(msg, DeprecationWarning)
log.warning(msg)
self.url = url
self.access_token = None
self.refresh_token = None
self.username = username
self.realm = realm
self.grant_type = grant_type
self.scope = scope
self.client_id = client_id
self.client_secret = client_secret
self.verify = verify
self.data_transfer_url = url + f"/dt/api/v1"
self.dt_client = None
if self.verify is None:
self.verify = False
msg = (
f"Certificate verification is disabled. "
f"Unverified HTTPS requests are made to {self.url}."
)
warnings.warn(msg, UnverifiedHTTPSRequestsWarning)
log.warning(msg)
if disable_security_warnings:
requests.packages.urllib3.disable_warnings(
requests.packages.urllib3.exceptions.InsecureRequestWarning
)
self.auth_url = auth_url
if not auth_url:
with requests.session() as session:
session.verify = self.verify
jms_info_url = url.rstrip("/") + "/jms/api/v1"
resp = session.get(jms_info_url)
if resp.status_code != 200:
> raise RuntimeError(
f"Failed to contact jms info endpoint {jms_info_url}, \
status code {resp.status_code}: {resp.content.decode()}"
)
E RuntimeError: Failed to contact jms info endpoint https://localhost:8443/hps/jms/api/v1, status code 404:
E <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
E <html>
E <head>
E <title>Error: 404 Not Found</title>
E <style type="text/css">
E html {background-color: #eee; font-family: sans;}
E body {background-color: #fff; border: 1px solid #ddd;
E padding: 15px; margin: 15px;}
E pre {background-color: #eee; border: 1px solid #ddd; padding: 5px;}
E </style>
E </head>
E <body>
E <h1>Error: 404 Not Found</h1>
E <p>Sorry, the requested URL <tt>'https://localhost:8443/hps/jms/api/v1'</tt>
E caused an error:</p>
E <pre>Not found: '/hps/jms/api/v1'</pre>
E </body>
E </html>
.tox/py310-coverage/lib/python3.10/site-packages/ansys/hps/client/client.py:190: RuntimeError
Check failure on line 1 in tests/auth/test_api.py
github-actions / Test Report ubuntu-latest:3.10
test_api.test_get_user_permissions
failed on setup with "RuntimeError: Failed to contact jms info endpoint https://localhost:8443/hps/jms/api/v1, status code 404:
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html>
<head>
<title>Error: 404 Not Found</title>
<style type="text/css">
html {background-color: #eee; font-family: sans;}
body {background-color: #fff; border: 1px solid #ddd;
padding: 15px; margin: 15px;}
pre {background-color: #eee; border: 1px solid #ddd; padding: 5px;}
</style>
</head>
<body>
<h1>Error: 404 Not Found</h1>
<p>Sorry, the requested URL <tt>'https://localhost:8443/hps/jms/api/v1'</tt>
caused an error:</p>
<pre>Not found: '/hps/jms/api/v1'</pre>
</body>
</html>"
Raw output
url = 'https://localhost:8443/hps', username = 'repadmin', password = 'repadmin'
@pytest.fixture(scope="session")
def client(url, username, password):
> return Client(url, username, password, verify=False)
tests/conftest.py:59:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <ansys.hps.client.client.Client object at 0x7f164df76500>
url = 'https://localhost:8443/hps', username = 'repadmin', password = 'repadmin'
realm = 'rep', grant_type = None, scope = 'openid', client_id = 'rep-cli'
client_secret = None, access_token = None, refresh_token = None
all_fields = True
def __init__(
self,
url: str = "https://127.0.0.1:8443/hps",
username: str = None,
password: str = None,
*,
realm: str = "rep",
grant_type: str = None,
scope="openid",
client_id: str = "rep-cli",
client_secret: str = None,
access_token: str = None,
refresh_token: str = None,
all_fields=True,
verify: Union[bool, str] = None,
disable_security_warnings: bool = True,
**kwargs,
):
rep_url = kwargs.get("rep_url", None)
if rep_url is not None:
url = rep_url
msg = "The 'rep_url' input argument is deprecated. Use 'url' instead."
warnings.warn(msg, DeprecationWarning)
log.warning(msg)
auth_url = kwargs.get("auth_url", None)
if auth_url is not None:
msg = (
"The 'auth_url' input argument is deprecated. Use None instead. "
"New HPS deployments will determine this automatically."
)
warnings.warn(msg, DeprecationWarning)
log.warning(msg)
self.url = url
self.access_token = None
self.refresh_token = None
self.username = username
self.realm = realm
self.grant_type = grant_type
self.scope = scope
self.client_id = client_id
self.client_secret = client_secret
self.verify = verify
self.data_transfer_url = url + f"/dt/api/v1"
self.dt_client = None
if self.verify is None:
self.verify = False
msg = (
f"Certificate verification is disabled. "
f"Unverified HTTPS requests are made to {self.url}."
)
warnings.warn(msg, UnverifiedHTTPSRequestsWarning)
log.warning(msg)
if disable_security_warnings:
requests.packages.urllib3.disable_warnings(
requests.packages.urllib3.exceptions.InsecureRequestWarning
)
self.auth_url = auth_url
if not auth_url:
with requests.session() as session:
session.verify = self.verify
jms_info_url = url.rstrip("/") + "/jms/api/v1"
resp = session.get(jms_info_url)
if resp.status_code != 200:
> raise RuntimeError(
f"Failed to contact jms info endpoint {jms_info_url}, \
status code {resp.status_code}: {resp.content.decode()}"
)
E RuntimeError: Failed to contact jms info endpoint https://localhost:8443/hps/jms/api/v1, status code 404:
E <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
E <html>
E <head>
E <title>Error: 404 Not Found</title>
E <style type="text/css">
E html {background-color: #eee; font-family: sans;}
E body {background-color: #fff; border: 1px solid #ddd;
E padding: 15px; margin: 15px;}
E pre {background-color: #eee; border: 1px solid #ddd; padding: 5px;}
E </style>
E </head>
E <body>
E <h1>Error: 404 Not Found</h1>
E <p>Sorry, the requested URL <tt>'https://localhost:8443/hps/jms/api/v1'</tt>
E caused an error:</p>
E <pre>Not found: '/hps/jms/api/v1'</pre>
E </body>
E </html>
.tox/py310-coverage/lib/python3.10/site-packages/ansys/hps/client/client.py:190: RuntimeError
Check failure on line 1 in tests/auth/test_api.py
github-actions / Test Report ubuntu-latest:3.10
test_api.test_impersonate_user
failed on setup with "RuntimeError: Failed to contact jms info endpoint https://localhost:8443/hps/jms/api/v1, status code 404:
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html>
<head>
<title>Error: 404 Not Found</title>
<style type="text/css">
html {background-color: #eee; font-family: sans;}
body {background-color: #fff; border: 1px solid #ddd;
padding: 15px; margin: 15px;}
pre {background-color: #eee; border: 1px solid #ddd; padding: 5px;}
</style>
</head>
<body>
<h1>Error: 404 Not Found</h1>
<p>Sorry, the requested URL <tt>'https://localhost:8443/hps/jms/api/v1'</tt>
caused an error:</p>
<pre>Not found: '/hps/jms/api/v1'</pre>
</body>
</html>"
Raw output
url = 'https://localhost:8443/hps', username = 'repadmin', password = 'repadmin'
@pytest.fixture(scope="session")
def client(url, username, password):
> return Client(url, username, password, verify=False)
tests/conftest.py:59:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <ansys.hps.client.client.Client object at 0x7f164df76500>
url = 'https://localhost:8443/hps', username = 'repadmin', password = 'repadmin'
realm = 'rep', grant_type = None, scope = 'openid', client_id = 'rep-cli'
client_secret = None, access_token = None, refresh_token = None
all_fields = True
def __init__(
self,
url: str = "https://127.0.0.1:8443/hps",
username: str = None,
password: str = None,
*,
realm: str = "rep",
grant_type: str = None,
scope="openid",
client_id: str = "rep-cli",
client_secret: str = None,
access_token: str = None,
refresh_token: str = None,
all_fields=True,
verify: Union[bool, str] = None,
disable_security_warnings: bool = True,
**kwargs,
):
rep_url = kwargs.get("rep_url", None)
if rep_url is not None:
url = rep_url
msg = "The 'rep_url' input argument is deprecated. Use 'url' instead."
warnings.warn(msg, DeprecationWarning)
log.warning(msg)
auth_url = kwargs.get("auth_url", None)
if auth_url is not None:
msg = (
"The 'auth_url' input argument is deprecated. Use None instead. "
"New HPS deployments will determine this automatically."
)
warnings.warn(msg, DeprecationWarning)
log.warning(msg)
self.url = url
self.access_token = None
self.refresh_token = None
self.username = username
self.realm = realm
self.grant_type = grant_type
self.scope = scope
self.client_id = client_id
self.client_secret = client_secret
self.verify = verify
self.data_transfer_url = url + f"/dt/api/v1"
self.dt_client = None
if self.verify is None:
self.verify = False
msg = (
f"Certificate verification is disabled. "
f"Unverified HTTPS requests are made to {self.url}."
)
warnings.warn(msg, UnverifiedHTTPSRequestsWarning)
log.warning(msg)
if disable_security_warnings:
requests.packages.urllib3.disable_warnings(
requests.packages.urllib3.exceptions.InsecureRequestWarning
)
self.auth_url = auth_url
if not auth_url:
with requests.session() as session:
session.verify = self.verify
jms_info_url = url.rstrip("/") + "/jms/api/v1"
resp = session.get(jms_info_url)
if resp.status_code != 200:
> raise RuntimeError(
f"Failed to contact jms info endpoint {jms_info_url}, \
status code {resp.status_code}: {resp.content.decode()}"
)
E RuntimeError: Failed to contact jms info endpoint https://localhost:8443/hps/jms/api/v1, status code 404:
E <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
E <html>
E <head>
E <title>Error: 404 Not Found</title>
E <style type="text/css">
E html {background-color: #eee; font-family: sans;}
E body {background-color: #fff; border: 1px solid #ddd;
E padding: 15px; margin: 15px;}
E pre {background-color: #eee; border: 1px solid #ddd; padding: 5px;}
E </style>
E </head>
E <body>
E <h1>Error: 404 Not Found</h1>
E <p>Sorry, the requested URL <tt>'https://localhost:8443/hps/jms/api/v1'</tt>
E caused an error:</p>
E <pre>Not found: '/hps/jms/api/v1'</pre>
E </body>
E </html>
.tox/py310-coverage/lib/python3.10/site-packages/ansys/hps/client/client.py:190: RuntimeError
Check failure on line 1 in tests/jms/test_algorithms.py
github-actions / Test Report ubuntu-latest:3.10
test_algorithms
failed on setup with "RuntimeError: Failed to contact jms info endpoint https://localhost:8443/hps/jms/api/v1, status code 404:
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html>
<head>
<title>Error: 404 Not Found</title>
<style type="text/css">
html {background-color: #eee; font-family: sans;}
body {background-color: #fff; border: 1px solid #ddd;
padding: 15px; margin: 15px;}
pre {background-color: #eee; border: 1px solid #ddd; padding: 5px;}
</style>
</head>
<body>
<h1>Error: 404 Not Found</h1>
<p>Sorry, the requested URL <tt>'https://localhost:8443/hps/jms/api/v1'</tt>
caused an error:</p>
<pre>Not found: '/hps/jms/api/v1'</pre>
</body>
</html>"
Raw output
url = 'https://localhost:8443/hps', username = 'repadmin', password = 'repadmin'
@pytest.fixture(scope="session")
def client(url, username, password):
> return Client(url, username, password, verify=False)
tests/conftest.py:59:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <ansys.hps.client.client.Client object at 0x7f164df76500>
url = 'https://localhost:8443/hps', username = 'repadmin', password = 'repadmin'
realm = 'rep', grant_type = None, scope = 'openid', client_id = 'rep-cli'
client_secret = None, access_token = None, refresh_token = None
all_fields = True
def __init__(
self,
url: str = "https://127.0.0.1:8443/hps",
username: str = None,
password: str = None,
*,
realm: str = "rep",
grant_type: str = None,
scope="openid",
client_id: str = "rep-cli",
client_secret: str = None,
access_token: str = None,
refresh_token: str = None,
all_fields=True,
verify: Union[bool, str] = None,
disable_security_warnings: bool = True,
**kwargs,
):
rep_url = kwargs.get("rep_url", None)
if rep_url is not None:
url = rep_url
msg = "The 'rep_url' input argument is deprecated. Use 'url' instead."
warnings.warn(msg, DeprecationWarning)
log.warning(msg)
auth_url = kwargs.get("auth_url", None)
if auth_url is not None:
msg = (
"The 'auth_url' input argument is deprecated. Use None instead. "
"New HPS deployments will determine this automatically."
)
warnings.warn(msg, DeprecationWarning)
log.warning(msg)
self.url = url
self.access_token = None
self.refresh_token = None
self.username = username
self.realm = realm
self.grant_type = grant_type
self.scope = scope
self.client_id = client_id
self.client_secret = client_secret
self.verify = verify
self.data_transfer_url = url + f"/dt/api/v1"
self.dt_client = None
if self.verify is None:
self.verify = False
msg = (
f"Certificate verification is disabled. "
f"Unverified HTTPS requests are made to {self.url}."
)
warnings.warn(msg, UnverifiedHTTPSRequestsWarning)
log.warning(msg)
if disable_security_warnings:
requests.packages.urllib3.disable_warnings(
requests.packages.urllib3.exceptions.InsecureRequestWarning
)
self.auth_url = auth_url
if not auth_url:
with requests.session() as session:
session.verify = self.verify
jms_info_url = url.rstrip("/") + "/jms/api/v1"
resp = session.get(jms_info_url)
if resp.status_code != 200:
> raise RuntimeError(
f"Failed to contact jms info endpoint {jms_info_url}, \
status code {resp.status_code}: {resp.content.decode()}"
)
E RuntimeError: Failed to contact jms info endpoint https://localhost:8443/hps/jms/api/v1, status code 404:
E <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
E <html>
E <head>
E <title>Error: 404 Not Found</title>
E <style type="text/css">
E html {background-color: #eee; font-family: sans;}
E body {background-color: #fff; border: 1px solid #ddd;
E padding: 15px; margin: 15px;}
E pre {background-color: #eee; border: 1px solid #ddd; padding: 5px;}
E </style>
E </head>
E <body>
E <h1>Error: 404 Not Found</h1>
E <p>Sorry, the requested URL <tt>'https://localhost:8443/hps/jms/api/v1'</tt>
E caused an error:</p>
E <pre>Not found: '/hps/jms/api/v1'</pre>
E </body>
E </html>
.tox/py310-coverage/lib/python3.10/site-packages/ansys/hps/client/client.py:190: RuntimeError
github-actions / Test Report ubuntu-latest:3.10
test_files
failed on setup with "RuntimeError: Failed to contact jms info endpoint https://localhost:8443/hps/jms/api/v1, status code 404:
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html>
<head>
<title>Error: 404 Not Found</title>
<style type="text/css">
html {background-color: #eee; font-family: sans;}
body {background-color: #fff; border: 1px solid #ddd;
padding: 15px; margin: 15px;}
pre {background-color: #eee; border: 1px solid #ddd; padding: 5px;}
</style>
</head>
<body>
<h1>Error: 404 Not Found</h1>
<p>Sorry, the requested URL <tt>'https://localhost:8443/hps/jms/api/v1'</tt>
caused an error:</p>
<pre>Not found: '/hps/jms/api/v1'</pre>
</body>
</html>"
Raw output
url = 'https://localhost:8443/hps', username = 'repadmin', password = 'repadmin'
@pytest.fixture(scope="session")
def client(url, username, password):
> return Client(url, username, password, verify=False)
tests/conftest.py:59:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <ansys.hps.client.client.Client object at 0x7f164df76500>
url = 'https://localhost:8443/hps', username = 'repadmin', password = 'repadmin'
realm = 'rep', grant_type = None, scope = 'openid', client_id = 'rep-cli'
client_secret = None, access_token = None, refresh_token = None
all_fields = True
def __init__(
self,
url: str = "https://127.0.0.1:8443/hps",
username: str = None,
password: str = None,
*,
realm: str = "rep",
grant_type: str = None,
scope="openid",
client_id: str = "rep-cli",
client_secret: str = None,
access_token: str = None,
refresh_token: str = None,
all_fields=True,
verify: Union[bool, str] = None,
disable_security_warnings: bool = True,
**kwargs,
):
rep_url = kwargs.get("rep_url", None)
if rep_url is not None:
url = rep_url
msg = "The 'rep_url' input argument is deprecated. Use 'url' instead."
warnings.warn(msg, DeprecationWarning)
log.warning(msg)
auth_url = kwargs.get("auth_url", None)
if auth_url is not None:
msg = (
"The 'auth_url' input argument is deprecated. Use None instead. "
"New HPS deployments will determine this automatically."
)
warnings.warn(msg, DeprecationWarning)
log.warning(msg)
self.url = url
self.access_token = None
self.refresh_token = None
self.username = username
self.realm = realm
self.grant_type = grant_type
self.scope = scope
self.client_id = client_id
self.client_secret = client_secret
self.verify = verify
self.data_transfer_url = url + f"/dt/api/v1"
self.dt_client = None
if self.verify is None:
self.verify = False
msg = (
f"Certificate verification is disabled. "
f"Unverified HTTPS requests are made to {self.url}."
)
warnings.warn(msg, UnverifiedHTTPSRequestsWarning)
log.warning(msg)
if disable_security_warnings:
requests.packages.urllib3.disable_warnings(
requests.packages.urllib3.exceptions.InsecureRequestWarning
)
self.auth_url = auth_url
if not auth_url:
with requests.session() as session:
session.verify = self.verify
jms_info_url = url.rstrip("/") + "/jms/api/v1"
resp = session.get(jms_info_url)
if resp.status_code != 200:
> raise RuntimeError(
f"Failed to contact jms info endpoint {jms_info_url}, \
status code {resp.status_code}: {resp.content.decode()}"
)
E RuntimeError: Failed to contact jms info endpoint https://localhost:8443/hps/jms/api/v1, status code 404:
E <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
E <html>
E <head>
E <title>Error: 404 Not Found</title>
E <style type="text/css">
E html {background-color: #eee; font-family: sans;}
E body {background-color: #fff; border: 1px solid #ddd;
E padding: 15px; margin: 15px;}
E pre {background-color: #eee; border: 1px solid #ddd; padding: 5px;}
E </style>
E </head>
E <body>
E <h1>Error: 404 Not Found</h1>
E <p>Sorry, the requested URL <tt>'https://localhost:8443/hps/jms/api/v1'</tt>
E caused an error:</p>
E <pre>Not found: '/hps/jms/api/v1'</pre>
E </body>
E </html>
.tox/py310-coverage/lib/python3.10/site-packages/ansys/hps/client/client.py:190: RuntimeError
github-actions / Test Report ubuntu-latest:3.10
test_files.test_download_file_in_subdir
failed on setup with "RuntimeError: Failed to contact jms info endpoint https://localhost:8443/hps/jms/api/v1, status code 404:
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html>
<head>
<title>Error: 404 Not Found</title>
<style type="text/css">
html {background-color: #eee; font-family: sans;}
body {background-color: #fff; border: 1px solid #ddd;
padding: 15px; margin: 15px;}
pre {background-color: #eee; border: 1px solid #ddd; padding: 5px;}
</style>
</head>
<body>
<h1>Error: 404 Not Found</h1>
<p>Sorry, the requested URL <tt>'https://localhost:8443/hps/jms/api/v1'</tt>
caused an error:</p>
<pre>Not found: '/hps/jms/api/v1'</pre>
</body>
</html>"
Raw output
url = 'https://localhost:8443/hps', username = 'repadmin', password = 'repadmin'
@pytest.fixture(scope="session")
def client(url, username, password):
> return Client(url, username, password, verify=False)
tests/conftest.py:59:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <ansys.hps.client.client.Client object at 0x7f164df76500>
url = 'https://localhost:8443/hps', username = 'repadmin', password = 'repadmin'
realm = 'rep', grant_type = None, scope = 'openid', client_id = 'rep-cli'
client_secret = None, access_token = None, refresh_token = None
all_fields = True
def __init__(
self,
url: str = "https://127.0.0.1:8443/hps",
username: str = None,
password: str = None,
*,
realm: str = "rep",
grant_type: str = None,
scope="openid",
client_id: str = "rep-cli",
client_secret: str = None,
access_token: str = None,
refresh_token: str = None,
all_fields=True,
verify: Union[bool, str] = None,
disable_security_warnings: bool = True,
**kwargs,
):
rep_url = kwargs.get("rep_url", None)
if rep_url is not None:
url = rep_url
msg = "The 'rep_url' input argument is deprecated. Use 'url' instead."
warnings.warn(msg, DeprecationWarning)
log.warning(msg)
auth_url = kwargs.get("auth_url", None)
if auth_url is not None:
msg = (
"The 'auth_url' input argument is deprecated. Use None instead. "
"New HPS deployments will determine this automatically."
)
warnings.warn(msg, DeprecationWarning)
log.warning(msg)
self.url = url
self.access_token = None
self.refresh_token = None
self.username = username
self.realm = realm
self.grant_type = grant_type
self.scope = scope
self.client_id = client_id
self.client_secret = client_secret
self.verify = verify
self.data_transfer_url = url + f"/dt/api/v1"
self.dt_client = None
if self.verify is None:
self.verify = False
msg = (
f"Certificate verification is disabled. "
f"Unverified HTTPS requests are made to {self.url}."
)
warnings.warn(msg, UnverifiedHTTPSRequestsWarning)
log.warning(msg)
if disable_security_warnings:
requests.packages.urllib3.disable_warnings(
requests.packages.urllib3.exceptions.InsecureRequestWarning
)
self.auth_url = auth_url
if not auth_url:
with requests.session() as session:
session.verify = self.verify
jms_info_url = url.rstrip("/") + "/jms/api/v1"
resp = session.get(jms_info_url)
if resp.status_code != 200:
> raise RuntimeError(
f"Failed to contact jms info endpoint {jms_info_url}, \
status code {resp.status_code}: {resp.content.decode()}"
)
E RuntimeError: Failed to contact jms info endpoint https://localhost:8443/hps/jms/api/v1, status code 404:
E <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
E <html>
E <head>
E <title>Error: 404 Not Found</title>
E <style type="text/css">
E html {background-color: #eee; font-family: sans;}
E body {background-color: #fff; border: 1px solid #ddd;
E padding: 15px; margin: 15px;}
E pre {background-color: #eee; border: 1px solid #ddd; padding: 5px;}
E </style>
E </head>
E <body>
E <h1>Error: 404 Not Found</h1>
E <p>Sorry, the requested URL <tt>'https://localhost:8443/hps/jms/api/v1'</tt>
E caused an error:</p>
E <pre>Not found: '/hps/jms/api/v1'</pre>
E </body>
E </html>
.tox/py310-coverage/lib/python3.10/site-packages/ansys/hps/client/client.py:190: RuntimeError
Check failure on line 1 in tests/jms/test_fitness_definition.py
github-actions / Test Report ubuntu-latest:3.10
test_fitness_definition.test_fitness_definition_integration
failed on setup with "RuntimeError: Failed to contact jms info endpoint https://localhost:8443/hps/jms/api/v1, status code 404:
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html>
<head>
<title>Error: 404 Not Found</title>
<style type="text/css">
html {background-color: #eee; font-family: sans;}
body {background-color: #fff; border: 1px solid #ddd;
padding: 15px; margin: 15px;}
pre {background-color: #eee; border: 1px solid #ddd; padding: 5px;}
</style>
</head>
<body>
<h1>Error: 404 Not Found</h1>
<p>Sorry, the requested URL <tt>'https://localhost:8443/hps/jms/api/v1'</tt>
caused an error:</p>
<pre>Not found: '/hps/jms/api/v1'</pre>
</body>
</html>"
Raw output
url = 'https://localhost:8443/hps', username = 'repadmin', password = 'repadmin'
@pytest.fixture(scope="session")
def client(url, username, password):
> return Client(url, username, password, verify=False)
tests/conftest.py:59:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <ansys.hps.client.client.Client object at 0x7f164df76500>
url = 'https://localhost:8443/hps', username = 'repadmin', password = 'repadmin'
realm = 'rep', grant_type = None, scope = 'openid', client_id = 'rep-cli'
client_secret = None, access_token = None, refresh_token = None
all_fields = True
def __init__(
self,
url: str = "https://127.0.0.1:8443/hps",
username: str = None,
password: str = None,
*,
realm: str = "rep",
grant_type: str = None,
scope="openid",
client_id: str = "rep-cli",
client_secret: str = None,
access_token: str = None,
refresh_token: str = None,
all_fields=True,
verify: Union[bool, str] = None,
disable_security_warnings: bool = True,
**kwargs,
):
rep_url = kwargs.get("rep_url", None)
if rep_url is not None:
url = rep_url
msg = "The 'rep_url' input argument is deprecated. Use 'url' instead."
warnings.warn(msg, DeprecationWarning)
log.warning(msg)
auth_url = kwargs.get("auth_url", None)
if auth_url is not None:
msg = (
"The 'auth_url' input argument is deprecated. Use None instead. "
"New HPS deployments will determine this automatically."
)
warnings.warn(msg, DeprecationWarning)
log.warning(msg)
self.url = url
self.access_token = None
self.refresh_token = None
self.username = username
self.realm = realm
self.grant_type = grant_type
self.scope = scope
self.client_id = client_id
self.client_secret = client_secret
self.verify = verify
self.data_transfer_url = url + f"/dt/api/v1"
self.dt_client = None
if self.verify is None:
self.verify = False
msg = (
f"Certificate verification is disabled. "
f"Unverified HTTPS requests are made to {self.url}."
)
warnings.warn(msg, UnverifiedHTTPSRequestsWarning)
log.warning(msg)
if disable_security_warnings:
requests.packages.urllib3.disable_warnings(
requests.packages.urllib3.exceptions.InsecureRequestWarning
)
self.auth_url = auth_url
if not auth_url:
with requests.session() as session:
session.verify = self.verify
jms_info_url = url.rstrip("/") + "/jms/api/v1"
resp = session.get(jms_info_url)
if resp.status_code != 200:
> raise RuntimeError(
f"Failed to contact jms info endpoint {jms_info_url}, \
status code {resp.status_code}: {resp.content.decode()}"
)
E RuntimeError: Failed to contact jms info endpoint https://localhost:8443/hps/jms/api/v1, status code 404:
E <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
E <html>
E <head>
E <title>Error: 404 Not Found</title>
E <style type="text/css">
E html {background-color: #eee; font-family: sans;}
E body {background-color: #fff; border: 1px solid #ddd;
E padding: 15px; margin: 15px;}
E pre {background-color: #eee; border: 1px solid #ddd; padding: 5px;}
E </style>
E </head>
E <body>
E <h1>Error: 404 Not Found</h1>
E <p>Sorry, the requested URL <tt>'https://localhost:8443/hps/jms/api/v1'</tt>
E caused an error:</p>
E <pre>Not found: '/hps/jms/api/v1'</pre>
E </body>
E </html>
.tox/py310-coverage/lib/python3.10/site-packages/ansys/hps/client/client.py:190: RuntimeError
Check failure on line 1 in tests/jms/test_jms_api.py
github-actions / Test Report ubuntu-latest:3.10
test_jms_api.test_jms_api_info
failed on setup with "RuntimeError: Failed to contact jms info endpoint https://localhost:8443/hps/jms/api/v1, status code 404:
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html>
<head>
<title>Error: 404 Not Found</title>
<style type="text/css">
html {background-color: #eee; font-family: sans;}
body {background-color: #fff; border: 1px solid #ddd;
padding: 15px; margin: 15px;}
pre {background-color: #eee; border: 1px solid #ddd; padding: 5px;}
</style>
</head>
<body>
<h1>Error: 404 Not Found</h1>
<p>Sorry, the requested URL <tt>'https://localhost:8443/hps/jms/api/v1'</tt>
caused an error:</p>
<pre>Not found: '/hps/jms/api/v1'</pre>
</body>
</html>"
Raw output
url = 'https://localhost:8443/hps', username = 'repadmin', password = 'repadmin'
@pytest.fixture(scope="session")
def client(url, username, password):
> return Client(url, username, password, verify=False)
tests/conftest.py:59:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <ansys.hps.client.client.Client object at 0x7f164df76500>
url = 'https://localhost:8443/hps', username = 'repadmin', password = 'repadmin'
realm = 'rep', grant_type = None, scope = 'openid', client_id = 'rep-cli'
client_secret = None, access_token = None, refresh_token = None
all_fields = True
def __init__(
self,
url: str = "https://127.0.0.1:8443/hps",
username: str = None,
password: str = None,
*,
realm: str = "rep",
grant_type: str = None,
scope="openid",
client_id: str = "rep-cli",
client_secret: str = None,
access_token: str = None,
refresh_token: str = None,
all_fields=True,
verify: Union[bool, str] = None,
disable_security_warnings: bool = True,
**kwargs,
):
rep_url = kwargs.get("rep_url", None)
if rep_url is not None:
url = rep_url
msg = "The 'rep_url' input argument is deprecated. Use 'url' instead."
warnings.warn(msg, DeprecationWarning)
log.warning(msg)
auth_url = kwargs.get("auth_url", None)
if auth_url is not None:
msg = (
"The 'auth_url' input argument is deprecated. Use None instead. "
"New HPS deployments will determine this automatically."
)
warnings.warn(msg, DeprecationWarning)
log.warning(msg)
self.url = url
self.access_token = None
self.refresh_token = None
self.username = username
self.realm = realm
self.grant_type = grant_type
self.scope = scope
self.client_id = client_id
self.client_secret = client_secret
self.verify = verify
self.data_transfer_url = url + f"/dt/api/v1"
self.dt_client = None
if self.verify is None:
self.verify = False
msg = (
f"Certificate verification is disabled. "
f"Unverified HTTPS requests are made to {self.url}."
)
warnings.warn(msg, UnverifiedHTTPSRequestsWarning)
log.warning(msg)
if disable_security_warnings:
requests.packages.urllib3.disable_warnings(
requests.packages.urllib3.exceptions.InsecureRequestWarning
)
self.auth_url = auth_url
if not auth_url:
with requests.session() as session:
session.verify = self.verify
jms_info_url = url.rstrip("/") + "/jms/api/v1"
resp = session.get(jms_info_url)
if resp.status_code != 200:
> raise RuntimeError(
f"Failed to contact jms info endpoint {jms_info_url}, \
status code {resp.status_code}: {resp.content.decode()}"
)
E RuntimeError: Failed to contact jms info endpoint https://localhost:8443/hps/jms/api/v1, status code 404:
E <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
E <html>
E <head>
E <title>Error: 404 Not Found</title>
E <style type="text/css">
E html {background-color: #eee; font-family: sans;}
E body {background-color: #fff; border: 1px solid #ddd;
E padding: 15px; margin: 15px;}
E pre {background-color: #eee; border: 1px solid #ddd; padding: 5px;}
E </style>
E </head>
E <body>
E <h1>Error: 404 Not Found</h1>
E <p>Sorry, the requested URL <tt>'https://localhost:8443/hps/jms/api/v1'</tt>
E caused an error:</p>
E <pre>Not found: '/hps/jms/api/v1'</pre>
E </body>
E </html>
.tox/py310-coverage/lib/python3.10/site-packages/ansys/hps/client/client.py:190: RuntimeError
Check failure on line 1 in tests/jms/test_jms_api.py
github-actions / Test Report ubuntu-latest:3.10
test_jms_api
failed on setup with "RuntimeError: Failed to contact jms info endpoint https://localhost:8443/hps/jms/api/v1, status code 404:
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html>
<head>
<title>Error: 404 Not Found</title>
<style type="text/css">
html {background-color: #eee; font-family: sans;}
body {background-color: #fff; border: 1px solid #ddd;
padding: 15px; margin: 15px;}
pre {background-color: #eee; border: 1px solid #ddd; padding: 5px;}
</style>
</head>
<body>
<h1>Error: 404 Not Found</h1>
<p>Sorry, the requested URL <tt>'https://localhost:8443/hps/jms/api/v1'</tt>
caused an error:</p>
<pre>Not found: '/hps/jms/api/v1'</pre>
</body>
</html>"
Raw output
url = 'https://localhost:8443/hps', username = 'repadmin', password = 'repadmin'
@pytest.fixture(scope="session")
def client(url, username, password):
> return Client(url, username, password, verify=False)
tests/conftest.py:59:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <ansys.hps.client.client.Client object at 0x7f164df76500>
url = 'https://localhost:8443/hps', username = 'repadmin', password = 'repadmin'
realm = 'rep', grant_type = None, scope = 'openid', client_id = 'rep-cli'
client_secret = None, access_token = None, refresh_token = None
all_fields = True
def __init__(
self,
url: str = "https://127.0.0.1:8443/hps",
username: str = None,
password: str = None,
*,
realm: str = "rep",
grant_type: str = None,
scope="openid",
client_id: str = "rep-cli",
client_secret: str = None,
access_token: str = None,
refresh_token: str = None,
all_fields=True,
verify: Union[bool, str] = None,
disable_security_warnings: bool = True,
**kwargs,
):
rep_url = kwargs.get("rep_url", None)
if rep_url is not None:
url = rep_url
msg = "The 'rep_url' input argument is deprecated. Use 'url' instead."
warnings.warn(msg, DeprecationWarning)
log.warning(msg)
auth_url = kwargs.get("auth_url", None)
if auth_url is not None:
msg = (
"The 'auth_url' input argument is deprecated. Use None instead. "
"New HPS deployments will determine this automatically."
)
warnings.warn(msg, DeprecationWarning)
log.warning(msg)
self.url = url
self.access_token = None
self.refresh_token = None
self.username = username
self.realm = realm
self.grant_type = grant_type
self.scope = scope
self.client_id = client_id
self.client_secret = client_secret
self.verify = verify
self.data_transfer_url = url + f"/dt/api/v1"
self.dt_client = None
if self.verify is None:
self.verify = False
msg = (
f"Certificate verification is disabled. "
f"Unverified HTTPS requests are made to {self.url}."
)
warnings.warn(msg, UnverifiedHTTPSRequestsWarning)
log.warning(msg)
if disable_security_warnings:
requests.packages.urllib3.disable_warnings(
requests.packages.urllib3.exceptions.InsecureRequestWarning
)
self.auth_url = auth_url
if not auth_url:
with requests.session() as session:
session.verify = self.verify
jms_info_url = url.rstrip("/") + "/jms/api/v1"
resp = session.get(jms_info_url)
if resp.status_code != 200:
> raise RuntimeError(
f"Failed to contact jms info endpoint {jms_info_url}, \
status code {resp.status_code}: {resp.content.decode()}"
)
E RuntimeError: Failed to contact jms info endpoint https://localhost:8443/hps/jms/api/v1, status code 404:
E <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
E <html>
E <head>
E <title>Error: 404 Not Found</title>
E <style type="text/css">
E html {background-color: #eee; font-family: sans;}
E body {background-color: #fff; border: 1px solid #ddd;
E padding: 15px; margin: 15px;}
E pre {background-color: #eee; border: 1px solid #ddd; padding: 5px;}
E </style>
E </head>
E <body>
E <h1>Error: 404 Not Found</h1>
E <p>Sorry, the requested URL <tt>'https://localhost:8443/hps/jms/api/v1'</tt>
E caused an error:</p>
E <pre>Not found: '/hps/jms/api/v1'</pre>
E </body>
E </html>
.tox/py310-coverage/lib/python3.10/site-packages/ansys/hps/client/client.py:190: RuntimeError
Check failure on line 115 in tests/jms/test_jms_api.py
github-actions / Test Report ubuntu-latest:3.10
test_jms_api.test_fields_query_parameter
RuntimeError: Failed to contact jms info endpoint https://localhost:8443/hps/jms/api/v1, status code 404:
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html>
<head>
<title>Error: 404 Not Found</title>
<style type="text/css">
html {background-color: #eee; font-family: sans;}
body {background-color: #fff; border: 1px solid #ddd;
padding: 15px; margin: 15px;}
pre {background-color: #eee; border: 1px solid #ddd; padding: 5px;}
</style>
</head>
<body>
<h1>Error: 404 Not Found</h1>
<p>Sorry, the requested URL <tt>'https://localhost:8443/hps/jms/api/v1'</tt>
caused an error:</p>
<pre>Not found: '/hps/jms/api/v1'</pre>
</body>
</html>
Raw output
url = 'https://localhost:8443/hps', username = 'repadmin', password = 'repadmin'
def test_fields_query_parameter(url, username, password):
> client1 = Client(url, username, password, all_fields=False)
tests/jms/test_jms_api.py:115:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <ansys.hps.client.client.Client object at 0x7f164dd9a020>
url = 'https://localhost:8443/hps', username = 'repadmin', password = 'repadmin'
realm = 'rep', grant_type = None, scope = 'openid', client_id = 'rep-cli'
client_secret = None, access_token = None, refresh_token = None
all_fields = False
def __init__(
self,
url: str = "https://127.0.0.1:8443/hps",
username: str = None,
password: str = None,
*,
realm: str = "rep",
grant_type: str = None,
scope="openid",
client_id: str = "rep-cli",
client_secret: str = None,
access_token: str = None,
refresh_token: str = None,
all_fields=True,
verify: Union[bool, str] = None,
disable_security_warnings: bool = True,
**kwargs,
):
rep_url = kwargs.get("rep_url", None)
if rep_url is not None:
url = rep_url
msg = "The 'rep_url' input argument is deprecated. Use 'url' instead."
warnings.warn(msg, DeprecationWarning)
log.warning(msg)
auth_url = kwargs.get("auth_url", None)
if auth_url is not None:
msg = (
"The 'auth_url' input argument is deprecated. Use None instead. "
"New HPS deployments will determine this automatically."
)
warnings.warn(msg, DeprecationWarning)
log.warning(msg)
self.url = url
self.access_token = None
self.refresh_token = None
self.username = username
self.realm = realm
self.grant_type = grant_type
self.scope = scope
self.client_id = client_id
self.client_secret = client_secret
self.verify = verify
self.data_transfer_url = url + f"/dt/api/v1"
self.dt_client = None
if self.verify is None:
self.verify = False
msg = (
f"Certificate verification is disabled. "
f"Unverified HTTPS requests are made to {self.url}."
)
warnings.warn(msg, UnverifiedHTTPSRequestsWarning)
log.warning(msg)
if disable_security_warnings:
requests.packages.urllib3.disable_warnings(
requests.packages.urllib3.exceptions.InsecureRequestWarning
)
self.auth_url = auth_url
if not auth_url:
with requests.session() as session:
session.verify = self.verify
jms_info_url = url.rstrip("/") + "/jms/api/v1"
resp = session.get(jms_info_url)
if resp.status_code != 200:
> raise RuntimeError(
f"Failed to contact jms info endpoint {jms_info_url}, \
status code {resp.status_code}: {resp.content.decode()}"
)
E RuntimeError: Failed to contact jms info endpoint https://localhost:8443/hps/jms/api/v1, status code 404:
E <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
E <html>
E <head>
E <title>Error: 404 Not Found</title>
E <style type="text/css">
E html {background-color: #eee; font-family: sans;}
E body {background-color: #fff; border: 1px solid #ddd;
E padding: 15px; margin: 15px;}
E pre {background-color: #eee; border: 1px solid #ddd; padding: 5px;}
E </style>
E </head>
E <body>
E <h1>Error: 404 Not Found</h1>
E <p>Sorry, the requested URL <tt>'https://localhost:8443/hps/jms/api/v1'</tt>
E caused an error:</p>
E <pre>Not found: '/hps/jms/api/v1'</pre>
E </body>
E </html>
.tox/py310-coverage/lib/python3.10/site-packages/ansys/hps/client/client.py:190: RuntimeError
Check failure on line 1 in tests/jms/test_jms_api.py
github-actions / Test Report ubuntu-latest:3.10
test_jms_api.test_storage_configuration
failed on setup with "RuntimeError: Failed to contact jms info endpoint https://localhost:8443/hps/jms/api/v1, status code 404:
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html>
<head>
<title>Error: 404 Not Found</title>
<style type="text/css">
html {background-color: #eee; font-family: sans;}
body {background-color: #fff; border: 1px solid #ddd;
padding: 15px; margin: 15px;}
pre {background-color: #eee; border: 1px solid #ddd; padding: 5px;}
</style>
</head>
<body>
<h1>Error: 404 Not Found</h1>
<p>Sorry, the requested URL <tt>'https://localhost:8443/hps/jms/api/v1'</tt>
caused an error:</p>
<pre>Not found: '/hps/jms/api/v1'</pre>
</body>
</html>"
Raw output
url = 'https://localhost:8443/hps', username = 'repadmin', password = 'repadmin'
@pytest.fixture(scope="session")
def client(url, username, password):
> return Client(url, username, password, verify=False)
tests/conftest.py:59:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <ansys.hps.client.client.Client object at 0x7f164df76500>
url = 'https://localhost:8443/hps', username = 'repadmin', password = 'repadmin'
realm = 'rep', grant_type = None, scope = 'openid', client_id = 'rep-cli'
client_secret = None, access_token = None, refresh_token = None
all_fields = True
def __init__(
self,
url: str = "https://127.0.0.1:8443/hps",
username: str = None,
password: str = None,
*,
realm: str = "rep",
grant_type: str = None,
scope="openid",
client_id: str = "rep-cli",
client_secret: str = None,
access_token: str = None,
refresh_token: str = None,
all_fields=True,
verify: Union[bool, str] = None,
disable_security_warnings: bool = True,
**kwargs,
):
rep_url = kwargs.get("rep_url", None)
if rep_url is not None:
url = rep_url
msg = "The 'rep_url' input argument is deprecated. Use 'url' instead."
warnings.warn(msg, DeprecationWarning)
log.warning(msg)
auth_url = kwargs.get("auth_url", None)
if auth_url is not None:
msg = (
"The 'auth_url' input argument is deprecated. Use None instead. "
"New HPS deployments will determine this automatically."
)
warnings.warn(msg, DeprecationWarning)
log.warning(msg)
self.url = url
self.access_token = None
self.refresh_token = None
self.username = username
self.realm = realm
self.grant_type = grant_type
self.scope = scope
self.client_id = client_id
self.client_secret = client_secret
self.verify = verify
self.data_transfer_url = url + f"/dt/api/v1"
self.dt_client = None
if self.verify is None:
self.verify = False
msg = (
f"Certificate verification is disabled. "
f"Unverified HTTPS requests are made to {self.url}."
)
warnings.warn(msg, UnverifiedHTTPSRequestsWarning)
log.warning(msg)
if disable_security_warnings:
requests.packages.urllib3.disable_warnings(
requests.packages.urllib3.exceptions.InsecureRequestWarning
)
self.auth_url = auth_url
if not auth_url:
with requests.session() as session:
session.verify = self.verify
jms_info_url = url.rstrip("/") + "/jms/api/v1"
resp = session.get(jms_info_url)
if resp.status_code != 200:
> raise RuntimeError(
f"Failed to contact jms info endpoint {jms_info_url}, \
status code {resp.status_code}: {resp.content.decode()}"
)
E RuntimeError: Failed to contact jms info endpoint https://localhost:8443/hps/jms/api/v1, status code 404:
E <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
E <html>
E <head>
E <title>Error: 404 Not Found</title>
E <style type="text/css">
E html {background-color: #eee; font-family: sans;}
E body {background-color: #fff; border: 1px solid #ddd;
E padding: 15px; margin: 15px;}
E pre {background-color: #eee; border: 1px solid #ddd; padding: 5px;}
E </style>
E </head>
E <body>
E <h1>Error: 404 Not Found</h1>
E <p>Sorry, the requested URL <tt>'https://localhost:8443/hps/jms/api/v1'</tt>
E caused an error:</p>
E <pre>Not found: '/hps/jms/api/v1'</pre>
E </body>
E </html>
.tox/py310-coverage/lib/python3.10/site-packages/ansys/hps/client/client.py:190: RuntimeError
Check failure on line 1 in tests/jms/test_jms_api.py
github-actions / Test Report ubuntu-latest:3.10
test_jms_api.test_objects_type_check
failed on setup with "RuntimeError: Failed to contact jms info endpoint https://localhost:8443/hps/jms/api/v1, status code 404:
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html>
<head>
<title>Error: 404 Not Found</title>
<style type="text/css">
html {background-color: #eee; font-family: sans;}
body {background-color: #fff; border: 1px solid #ddd;
padding: 15px; margin: 15px;}
pre {background-color: #eee; border: 1px solid #ddd; padding: 5px;}
</style>
</head>
<body>
<h1>Error: 404 Not Found</h1>
<p>Sorry, the requested URL <tt>'https://localhost:8443/hps/jms/api/v1'</tt>
caused an error:</p>
<pre>Not found: '/hps/jms/api/v1'</pre>
</body>
</html>"
Raw output
url = 'https://localhost:8443/hps', username = 'repadmin', password = 'repadmin'
@pytest.fixture(scope="session")
def client(url, username, password):
> return Client(url, username, password, verify=False)
tests/conftest.py:59:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <ansys.hps.client.client.Client object at 0x7f164df76500>
url = 'https://localhost:8443/hps', username = 'repadmin', password = 'repadmin'
realm = 'rep', grant_type = None, scope = 'openid', client_id = 'rep-cli'
client_secret = None, access_token = None, refresh_token = None
all_fields = True
def __init__(
self,
url: str = "https://127.0.0.1:8443/hps",
username: str = None,
password: str = None,
*,
realm: str = "rep",
grant_type: str = None,
scope="openid",
client_id: str = "rep-cli",
client_secret: str = None,
access_token: str = None,
refresh_token: str = None,
all_fields=True,
verify: Union[bool, str] = None,
disable_security_warnings: bool = True,
**kwargs,
):
rep_url = kwargs.get("rep_url", None)
if rep_url is not None:
url = rep_url
msg = "The 'rep_url' input argument is deprecated. Use 'url' instead."
warnings.warn(msg, DeprecationWarning)
log.warning(msg)
auth_url = kwargs.get("auth_url", None)
if auth_url is not None:
msg = (
"The 'auth_url' input argument is deprecated. Use None instead. "
"New HPS deployments will determine this automatically."
)
warnings.warn(msg, DeprecationWarning)
log.warning(msg)
self.url = url
self.access_token = None
self.refresh_token = None
self.username = username
self.realm = realm
self.grant_type = grant_type
self.scope = scope
self.client_id = client_id
self.client_secret = client_secret
self.verify = verify
self.data_transfer_url = url + f"/dt/api/v1"
self.dt_client = None
if self.verify is None:
self.verify = False
msg = (
f"Certificate verification is disabled. "
f"Unverified HTTPS requests are made to {self.url}."
)
warnings.warn(msg, UnverifiedHTTPSRequestsWarning)
log.warning(msg)
if disable_security_warnings:
requests.packages.urllib3.disable_warnings(
requests.packages.urllib3.exceptions.InsecureRequestWarning
)
self.auth_url = auth_url
if not auth_url:
with requests.session() as session:
session.verify = self.verify
jms_info_url = url.rstrip("/") + "/jms/api/v1"
resp = session.get(jms_info_url)
if resp.status_code != 200:
> raise RuntimeError(
f"Failed to contact jms info endpoint {jms_info_url}, \
status code {resp.status_code}: {resp.content.decode()}"
)
E RuntimeError: Failed to contact jms info endpoint https://localhost:8443/hps/jms/api/v1, status code 404:
E <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
E <html>
E <head>
E <title>Error: 404 Not Found</title>
E <style type="text/css">
E html {background-color: #eee; font-family: sans;}
E body {background-color: #fff; border: 1px solid #ddd;
E padding: 15px; margin: 15px;}
E pre {background-color: #eee; border: 1px solid #ddd; padding: 5px;}
E </style>
E </head>
E <body>
E <h1>Error: 404 Not Found</h1>
E <p>Sorry, the requested URL <tt>'https://localhost:8443/hps/jms/api/v1'</tt>
E caused an error:</p>
E <pre>Not found: '/hps/jms/api/v1'</pre>
E </body>
E </html>
.tox/py310-coverage/lib/python3.10/site-packages/ansys/hps/client/client.py:190: RuntimeError
Check failure on line 1 in tests/jms/test_job_definitions.py
github-actions / Test Report ubuntu-latest:3.10
test_job_definitions.test_job_definition_delete
failed on setup with "RuntimeError: Failed to contact jms info endpoint https://localhost:8443/hps/jms/api/v1, status code 404:
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html>
<head>
<title>Error: 404 Not Found</title>
<style type="text/css">
html {background-color: #eee; font-family: sans;}
body {background-color: #fff; border: 1px solid #ddd;
padding: 15px; margin: 15px;}
pre {background-color: #eee; border: 1px solid #ddd; padding: 5px;}
</style>
</head>
<body>
<h1>Error: 404 Not Found</h1>
<p>Sorry, the requested URL <tt>'https://localhost:8443/hps/jms/api/v1'</tt>
caused an error:</p>
<pre>Not found: '/hps/jms/api/v1'</pre>
</body>
</html>"
Raw output
url = 'https://localhost:8443/hps', username = 'repadmin', password = 'repadmin'
@pytest.fixture(scope="session")
def client(url, username, password):
> return Client(url, username, password, verify=False)
tests/conftest.py:59:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <ansys.hps.client.client.Client object at 0x7f164df76500>
url = 'https://localhost:8443/hps', username = 'repadmin', password = 'repadmin'
realm = 'rep', grant_type = None, scope = 'openid', client_id = 'rep-cli'
client_secret = None, access_token = None, refresh_token = None
all_fields = True
def __init__(
self,
url: str = "https://127.0.0.1:8443/hps",
username: str = None,
password: str = None,
*,
realm: str = "rep",
grant_type: str = None,
scope="openid",
client_id: str = "rep-cli",
client_secret: str = None,
access_token: str = None,
refresh_token: str = None,
all_fields=True,
verify: Union[bool, str] = None,
disable_security_warnings: bool = True,
**kwargs,
):
rep_url = kwargs.get("rep_url", None)
if rep_url is not None:
url = rep_url
msg = "The 'rep_url' input argument is deprecated. Use 'url' instead."
warnings.warn(msg, DeprecationWarning)
log.warning(msg)
auth_url = kwargs.get("auth_url", None)
if auth_url is not None:
msg = (
"The 'auth_url' input argument is deprecated. Use None instead. "
"New HPS deployments will determine this automatically."
)
warnings.warn(msg, DeprecationWarning)
log.warning(msg)
self.url = url
self.access_token = None
self.refresh_token = None
self.username = username
self.realm = realm
self.grant_type = grant_type
self.scope = scope
self.client_id = client_id
self.client_secret = client_secret
self.verify = verify
self.data_transfer_url = url + f"/dt/api/v1"
self.dt_client = None
if self.verify is None:
self.verify = False
msg = (
f"Certificate verification is disabled. "
f"Unverified HTTPS requests are made to {self.url}."
)
warnings.warn(msg, UnverifiedHTTPSRequestsWarning)
log.warning(msg)
if disable_security_warnings:
requests.packages.urllib3.disable_warnings(
requests.packages.urllib3.exceptions.InsecureRequestWarning
)
self.auth_url = auth_url
if not auth_url:
with requests.session() as session:
session.verify = self.verify
jms_info_url = url.rstrip("/") + "/jms/api/v1"
resp = session.get(jms_info_url)
if resp.status_code != 200:
> raise RuntimeError(
f"Failed to contact jms info endpoint {jms_info_url}, \
status code {resp.status_code}: {resp.content.decode()}"
)
E RuntimeError: Failed to contact jms info endpoint https://localhost:8443/hps/jms/api/v1, status code 404:
E <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
E <html>
E <head>
E <title>Error: 404 Not Found</title>
E <style type="text/css">
E html {background-color: #eee; font-family: sans;}
E body {background-color: #fff; border: 1px solid #ddd;
E padding: 15px; margin: 15px;}
E pre {background-color: #eee; border: 1px solid #ddd; padding: 5px;}
E </style>
E </head>
E <body>
E <h1>Error: 404 Not Found</h1>
E <p>Sorry, the requested URL <tt>'https://localhost:8443/hps/jms/api/v1'</tt>
E caused an error:</p>
E <pre>Not found: '/hps/jms/api/v1'</pre>
E </body>
E </html>
.tox/py310-coverage/lib/python3.10/site-packages/ansys/hps/client/client.py:190: RuntimeError
Check failure on line 1 in tests/jms/test_job_definitions.py
github-actions / Test Report ubuntu-latest:3.10
test_job_definitions.test_task_definition_fields
failed on setup with "RuntimeError: Failed to contact jms info endpoint https://localhost:8443/hps/jms/api/v1, status code 404:
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html>
<head>
<title>Error: 404 Not Found</title>
<style type="text/css">
html {background-color: #eee; font-family: sans;}
body {background-color: #fff; border: 1px solid #ddd;
padding: 15px; margin: 15px;}
pre {background-color: #eee; border: 1px solid #ddd; padding: 5px;}
</style>
</head>
<body>
<h1>Error: 404 Not Found</h1>
<p>Sorry, the requested URL <tt>'https://localhost:8443/hps/jms/api/v1'</tt>
caused an error:</p>
<pre>Not found: '/hps/jms/api/v1'</pre>
</body>
</html>"
Raw output
url = 'https://localhost:8443/hps', username = 'repadmin', password = 'repadmin'
@pytest.fixture(scope="session")
def client(url, username, password):
> return Client(url, username, password, verify=False)
tests/conftest.py:59:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <ansys.hps.client.client.Client object at 0x7f164df76500>
url = 'https://localhost:8443/hps', username = 'repadmin', password = 'repadmin'
realm = 'rep', grant_type = None, scope = 'openid', client_id = 'rep-cli'
client_secret = None, access_token = None, refresh_token = None
all_fields = True
def __init__(
self,
url: str = "https://127.0.0.1:8443/hps",
username: str = None,
password: str = None,
*,
realm: str = "rep",
grant_type: str = None,
scope="openid",
client_id: str = "rep-cli",
client_secret: str = None,
access_token: str = None,
refresh_token: str = None,
all_fields=True,
verify: Union[bool, str] = None,
disable_security_warnings: bool = True,
**kwargs,
):
rep_url = kwargs.get("rep_url", None)
if rep_url is not None:
url = rep_url
msg = "The 'rep_url' input argument is deprecated. Use 'url' instead."
warnings.warn(msg, DeprecationWarning)
log.warning(msg)
auth_url = kwargs.get("auth_url", None)
if auth_url is not None:
msg = (
"The 'auth_url' input argument is deprecated. Use None instead. "
"New HPS deployments will determine this automatically."
)
warnings.warn(msg, DeprecationWarning)
log.warning(msg)
self.url = url
self.access_token = None
self.refresh_token = None
self.username = username
self.realm = realm
self.grant_type = grant_type
self.scope = scope
self.client_id = client_id
self.client_secret = client_secret
self.verify = verify
self.data_transfer_url = url + f"/dt/api/v1"
self.dt_client = None
if self.verify is None:
self.verify = False
msg = (
f"Certificate verification is disabled. "
f"Unverified HTTPS requests are made to {self.url}."
)
warnings.warn(msg, UnverifiedHTTPSRequestsWarning)
log.warning(msg)
if disable_security_warnings:
requests.packages.urllib3.disable_warnings(
requests.packages.urllib3.exceptions.InsecureRequestWarning
)
self.auth_url = auth_url
if not auth_url:
with requests.session() as session:
session.verify = self.verify
jms_info_url = url.rstrip("/") + "/jms/api/v1"
resp = session.get(jms_info_url)
if resp.status_code != 200:
> raise RuntimeError(
f"Failed to contact jms info endpoint {jms_info_url}, \
status code {resp.status_code}: {resp.content.decode()}"
)
E RuntimeError: Failed to contact jms info endpoint https://localhost:8443/hps/jms/api/v1, status code 404:
E <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
E <html>
E <head>
E <title>Error: 404 Not Found</title>
E <style type="text/css">
E html {background-color: #eee; font-family: sans;}
E body {background-color: #fff; border: 1px solid #ddd;
E padding: 15px; margin: 15px;}
E pre {background-color: #eee; border: 1px solid #ddd; padding: 5px;}
E </style>
E </head>
E <body>
E <h1>Error: 404 Not Found</h1>
E <p>Sorry, the requested URL <tt>'https://localhost:8443/hps/jms/api/v1'</tt>
E caused an error:</p>
E <pre>Not found: '/hps/jms/api/v1'</pre>
E </body>
E </html>
.tox/py310-coverage/lib/python3.10/site-packages/ansys/hps/client/client.py:190: RuntimeError
Check failure on line 1 in tests/jms/test_job_definitions.py
github-actions / Test Report ubuntu-latest:3.10
test_job_definitions.test_task_and_job_definition_copy
failed on setup with "RuntimeError: Failed to contact jms info endpoint https://localhost:8443/hps/jms/api/v1, status code 404:
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html>
<head>
<title>Error: 404 Not Found</title>
<style type="text/css">
html {background-color: #eee; font-family: sans;}
body {background-color: #fff; border: 1px solid #ddd;
padding: 15px; margin: 15px;}
pre {background-color: #eee; border: 1px solid #ddd; padding: 5px;}
</style>
</head>
<body>
<h1>Error: 404 Not Found</h1>
<p>Sorry, the requested URL <tt>'https://localhost:8443/hps/jms/api/v1'</tt>
caused an error:</p>
<pre>Not found: '/hps/jms/api/v1'</pre>
</body>
</html>"
Raw output
url = 'https://localhost:8443/hps', username = 'repadmin', password = 'repadmin'
@pytest.fixture(scope="session")
def client(url, username, password):
> return Client(url, username, password, verify=False)
tests/conftest.py:59:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <ansys.hps.client.client.Client object at 0x7f164df76500>
url = 'https://localhost:8443/hps', username = 'repadmin', password = 'repadmin'
realm = 'rep', grant_type = None, scope = 'openid', client_id = 'rep-cli'
client_secret = None, access_token = None, refresh_token = None
all_fields = True
def __init__(
self,
url: str = "https://127.0.0.1:8443/hps",
username: str = None,
password: str = None,
*,
realm: str = "rep",
grant_type: str = None,
scope="openid",
client_id: str = "rep-cli",
client_secret: str = None,
access_token: str = None,
refresh_token: str = None,
all_fields=True,
verify: Union[bool, str] = None,
disable_security_warnings: bool = True,
**kwargs,
):
rep_url = kwargs.get("rep_url", None)
if rep_url is not None:
url = rep_url
msg = "The 'rep_url' input argument is deprecated. Use 'url' instead."
warnings.warn(msg, DeprecationWarning)
log.warning(msg)
auth_url = kwargs.get("auth_url", None)
if auth_url is not None:
msg = (
"The 'auth_url' input argument is deprecated. Use None instead. "
"New HPS deployments will determine this automatically."
)
warnings.warn(msg, DeprecationWarning)
log.warning(msg)
self.url = url
self.access_token = None
self.refresh_token = None
self.username = username
self.realm = realm
self.grant_type = grant_type
self.scope = scope
self.client_id = client_id
self.client_secret = client_secret
self.verify = verify
self.data_transfer_url = url + f"/dt/api/v1"
self.dt_client = None
if self.verify is None:
self.verify = False
msg = (
f"Certificate verification is disabled. "
f"Unverified HTTPS requests are made to {self.url}."
)
warnings.warn(msg, UnverifiedHTTPSRequestsWarning)
log.warning(msg)
if disable_security_warnings:
requests.packages.urllib3.disable_warnings(
requests.packages.urllib3.exceptions.InsecureRequestWarning
)
self.auth_url = auth_url
if not auth_url:
with requests.session() as session:
session.verify = self.verify
jms_info_url = url.rstrip("/") + "/jms/api/v1"
resp = session.get(jms_info_url)
if resp.status_code != 200:
> raise RuntimeError(
f"Failed to contact jms info endpoint {jms_info_url}, \
status code {resp.status_code}: {resp.content.decode()}"
)
E RuntimeError: Failed to contact jms info endpoint https://localhost:8443/hps/jms/api/v1, status code 404:
E <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
E <html>
E <head>
E <title>Error: 404 Not Found</title>
E <style type="text/css">
E html {background-color: #eee; font-family: sans;}
E body {background-color: #fff; border: 1px solid #ddd;
E padding: 15px; margin: 15px;}
E pre {background-color: #eee; border: 1px solid #ddd; padding: 5px;}
E </style>
E </head>
E <body>
E <h1>Error: 404 Not Found</h1>
E <p>Sorry, the requested URL <tt>'https://localhost:8443/hps/jms/api/v1'</tt>
E caused an error:</p>
E <pre>Not found: '/hps/jms/api/v1'</pre>
E </body>
E </html>
.tox/py310-coverage/lib/python3.10/site-packages/ansys/hps/client/client.py:190: RuntimeError
Check failure on line 1 in tests/jms/test_jobs.py
github-actions / Test Report ubuntu-latest:3.10
test_jobs.test_job_integration
failed on setup with "RuntimeError: Failed to contact jms info endpoint https://localhost:8443/hps/jms/api/v1, status code 404:
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html>
<head>
<title>Error: 404 Not Found</title>
<style type="text/css">
html {background-color: #eee; font-family: sans;}
body {background-color: #fff; border: 1px solid #ddd;
padding: 15px; margin: 15px;}
pre {background-color: #eee; border: 1px solid #ddd; padding: 5px;}
</style>
</head>
<body>
<h1>Error: 404 Not Found</h1>
<p>Sorry, the requested URL <tt>'https://localhost:8443/hps/jms/api/v1'</tt>
caused an error:</p>
<pre>Not found: '/hps/jms/api/v1'</pre>
</body>
</html>"
Raw output
url = 'https://localhost:8443/hps', username = 'repadmin', password = 'repadmin'
@pytest.fixture(scope="session")
def client(url, username, password):
> return Client(url, username, password, verify=False)
tests/conftest.py:59:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <ansys.hps.client.client.Client object at 0x7f164df76500>
url = 'https://localhost:8443/hps', username = 'repadmin', password = 'repadmin'
realm = 'rep', grant_type = None, scope = 'openid', client_id = 'rep-cli'
client_secret = None, access_token = None, refresh_token = None
all_fields = True
def __init__(
self,
url: str = "https://127.0.0.1:8443/hps",
username: str = None,
password: str = None,
*,
realm: str = "rep",
grant_type: str = None,
scope="openid",
client_id: str = "rep-cli",
client_secret: str = None,
access_token: str = None,
refresh_token: str = None,
all_fields=True,
verify: Union[bool, str] = None,
disable_security_warnings: bool = True,
**kwargs,
):
rep_url = kwargs.get("rep_url", None)
if rep_url is not None:
url = rep_url
msg = "The 'rep_url' input argument is deprecated. Use 'url' instead."
warnings.warn(msg, DeprecationWarning)
log.warning(msg)
auth_url = kwargs.get("auth_url", None)
if auth_url is not None:
msg = (
"The 'auth_url' input argument is deprecated. Use None instead. "
"New HPS deployments will determine this automatically."
)
warnings.warn(msg, DeprecationWarning)
log.warning(msg)
self.url = url
self.access_token = None
self.refresh_token = None
self.username = username
self.realm = realm
self.grant_type = grant_type
self.scope = scope
self.client_id = client_id
self.client_secret = client_secret
self.verify = verify
self.data_transfer_url = url + f"/dt/api/v1"
self.dt_client = None
if self.verify is None:
self.verify = False
msg = (
f"Certificate verification is disabled. "
f"Unverified HTTPS requests are made to {self.url}."
)
warnings.warn(msg, UnverifiedHTTPSRequestsWarning)
log.warning(msg)
if disable_security_warnings:
requests.packages.urllib3.disable_warnings(
requests.packages.urllib3.exceptions.InsecureRequestWarning
)
self.auth_url = auth_url
if not auth_url:
with requests.session() as session:
session.verify = self.verify
jms_info_url = url.rstrip("/") + "/jms/api/v1"
resp = session.get(jms_info_url)
if resp.status_code != 200:
> raise RuntimeError(
f"Failed to contact jms info endpoint {jms_info_url}, \
status code {resp.status_code}: {resp.content.decode()}"
)
E RuntimeError: Failed to contact jms info endpoint https://localhost:8443/hps/jms/api/v1, status code 404:
E <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
E <html>
E <head>
E <title>Error: 404 Not Found</title>
E <style type="text/css">
E html {background-color: #eee; font-family: sans;}
E body {background-color: #fff; border: 1px solid #ddd;
E padding: 15px; margin: 15px;}
E pre {background-color: #eee; border: 1px solid #ddd; padding: 5px;}
E </style>
E </head>
E <body>
E <h1>Error: 404 Not Found</h1>
E <p>Sorry, the requested URL <tt>'https://localhost:8443/hps/jms/api/v1'</tt>
E caused an error:</p>
E <pre>Not found: '/hps/jms/api/v1'</pre>
E </body>
E </html>
.tox/py310-coverage/lib/python3.10/site-packages/ansys/hps/client/client.py:190: RuntimeError
Check failure on line 1 in tests/jms/test_jobs.py
github-actions / Test Report ubuntu-latest:3.10
test_jobs.test_job_update
failed on setup with "RuntimeError: Failed to contact jms info endpoint https://localhost:8443/hps/jms/api/v1, status code 404:
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html>
<head>
<title>Error: 404 Not Found</title>
<style type="text/css">
html {background-color: #eee; font-family: sans;}
body {background-color: #fff; border: 1px solid #ddd;
padding: 15px; margin: 15px;}
pre {background-color: #eee; border: 1px solid #ddd; padding: 5px;}
</style>
</head>
<body>
<h1>Error: 404 Not Found</h1>
<p>Sorry, the requested URL <tt>'https://localhost:8443/hps/jms/api/v1'</tt>
caused an error:</p>
<pre>Not found: '/hps/jms/api/v1'</pre>
</body>
</html>"
Raw output
url = 'https://localhost:8443/hps', username = 'repadmin', password = 'repadmin'
@pytest.fixture(scope="session")
def client(url, username, password):
> return Client(url, username, password, verify=False)
tests/conftest.py:59:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <ansys.hps.client.client.Client object at 0x7f164df76500>
url = 'https://localhost:8443/hps', username = 'repadmin', password = 'repadmin'
realm = 'rep', grant_type = None, scope = 'openid', client_id = 'rep-cli'
client_secret = None, access_token = None, refresh_token = None
all_fields = True
def __init__(
self,
url: str = "https://127.0.0.1:8443/hps",
username: str = None,
password: str = None,
*,
realm: str = "rep",
grant_type: str = None,
scope="openid",
client_id: str = "rep-cli",
client_secret: str = None,
access_token: str = None,
refresh_token: str = None,
all_fields=True,
verify: Union[bool, str] = None,
disable_security_warnings: bool = True,
**kwargs,
):
rep_url = kwargs.get("rep_url", None)
if rep_url is not None:
url = rep_url
msg = "The 'rep_url' input argument is deprecated. Use 'url' instead."
warnings.warn(msg, DeprecationWarning)
log.warning(msg)
auth_url = kwargs.get("auth_url", None)
if auth_url is not None:
msg = (
"The 'auth_url' input argument is deprecated. Use None instead. "
"New HPS deployments will determine this automatically."
)
warnings.warn(msg, DeprecationWarning)
log.warning(msg)
self.url = url
self.access_token = None
self.refresh_token = None
self.username = username
self.realm = realm
self.grant_type = grant_type
self.scope = scope
self.client_id = client_id
self.client_secret = client_secret
self.verify = verify
self.data_transfer_url = url + f"/dt/api/v1"
self.dt_client = None
if self.verify is None:
self.verify = False
msg = (
f"Certificate verification is disabled. "
f"Unverified HTTPS requests are made to {self.url}."
)
warnings.warn(msg, UnverifiedHTTPSRequestsWarning)
log.warning(msg)
if disable_security_warnings:
requests.packages.urllib3.disable_warnings(
requests.packages.urllib3.exceptions.InsecureRequestWarning
)
self.auth_url = auth_url
if not auth_url:
with requests.session() as session:
session.verify = self.verify
jms_info_url = url.rstrip("/") + "/jms/api/v1"
resp = session.get(jms_info_url)
if resp.status_code != 200:
> raise RuntimeError(
f"Failed to contact jms info endpoint {jms_info_url}, \
status code {resp.status_code}: {resp.content.decode()}"
)
E RuntimeError: Failed to contact jms info endpoint https://localhost:8443/hps/jms/api/v1, status code 404:
E <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
E <html>
E <head>
E <title>Error: 404 Not Found</title>
E <style type="text/css">
E html {background-color: #eee; font-family: sans;}
E body {background-color: #fff; border: 1px solid #ddd;
E padding: 15px; margin: 15px;}
E pre {background-color: #eee; border: 1px solid #ddd; padding: 5px;}
E </style>
E </head>
E <body>
E <h1>Error: 404 Not Found</h1>
E <p>Sorry, the requested URL <tt>'https://localhost:8443/hps/jms/api/v1'</tt>
E caused an error:</p>
E <pre>Not found: '/hps/jms/api/v1'</pre>
E </body>
E </html>
.tox/py310-coverage/lib/python3.10/site-packages/ansys/hps/client/client.py:190: RuntimeError
Check failure on line 1 in tests/jms/test_parameter_definitions.py
github-actions / Test Report ubuntu-latest:3.10
test_parameter_definitions.test_parameter_definition_integration
failed on setup with "RuntimeError: Failed to contact jms info endpoint https://localhost:8443/hps/jms/api/v1, status code 404:
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html>
<head>
<title>Error: 404 Not Found</title>
<style type="text/css">
html {background-color: #eee; font-family: sans;}
body {background-color: #fff; border: 1px solid #ddd;
padding: 15px; margin: 15px;}
pre {background-color: #eee; border: 1px solid #ddd; padding: 5px;}
</style>
</head>
<body>
<h1>Error: 404 Not Found</h1>
<p>Sorry, the requested URL <tt>'https://localhost:8443/hps/jms/api/v1'</tt>
caused an error:</p>
<pre>Not found: '/hps/jms/api/v1'</pre>
</body>
</html>"
Raw output
url = 'https://localhost:8443/hps', username = 'repadmin', password = 'repadmin'
@pytest.fixture(scope="session")
def client(url, username, password):
> return Client(url, username, password, verify=False)
tests/conftest.py:59:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <ansys.hps.client.client.Client object at 0x7f164df76500>
url = 'https://localhost:8443/hps', username = 'repadmin', password = 'repadmin'
realm = 'rep', grant_type = None, scope = 'openid', client_id = 'rep-cli'
client_secret = None, access_token = None, refresh_token = None
all_fields = True
def __init__(
self,
url: str = "https://127.0.0.1:8443/hps",
username: str = None,
password: str = None,
*,
realm: str = "rep",
grant_type: str = None,
scope="openid",
client_id: str = "rep-cli",
client_secret: str = None,
access_token: str = None,
refresh_token: str = None,
all_fields=True,
verify: Union[bool, str] = None,
disable_security_warnings: bool = True,
**kwargs,
):
rep_url = kwargs.get("rep_url", None)
if rep_url is not None:
url = rep_url
msg = "The 'rep_url' input argument is deprecated. Use 'url' instead."
warnings.warn(msg, DeprecationWarning)
log.warning(msg)
auth_url = kwargs.get("auth_url", None)
if auth_url is not None:
msg = (
"The 'auth_url' input argument is deprecated. Use None instead. "
"New HPS deployments will determine this automatically."
)
warnings.warn(msg, DeprecationWarning)
log.warning(msg)
self.url = url
self.access_token = None
self.refresh_token = None
self.username = username
self.realm = realm
self.grant_type = grant_type
self.scope = scope
self.client_id = client_id
self.client_secret = client_secret
self.verify = verify
self.data_transfer_url = url + f"/dt/api/v1"
self.dt_client = None
if self.verify is None:
self.verify = False
msg = (
f"Certificate verification is disabled. "
f"Unverified HTTPS requests are made to {self.url}."
)
warnings.warn(msg, UnverifiedHTTPSRequestsWarning)
log.warning(msg)
if disable_security_warnings:
requests.packages.urllib3.disable_warnings(
requests.packages.urllib3.exceptions.InsecureRequestWarning
)
self.auth_url = auth_url
if not auth_url:
with requests.session() as session:
session.verify = self.verify
jms_info_url = url.rstrip("/") + "/jms/api/v1"
resp = session.get(jms_info_url)
if resp.status_code != 200:
> raise RuntimeError(
f"Failed to contact jms info endpoint {jms_info_url}, \
status code {resp.status_code}: {resp.content.decode()}"
)
E RuntimeError: Failed to contact jms info endpoint https://localhost:8443/hps/jms/api/v1, status code 404:
E <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
E <html>
E <head>
E <title>Error: 404 Not Found</title>
E <style type="text/css">
E html {background-color: #eee; font-family: sans;}
E body {background-color: #fff; border: 1px solid #ddd;
E padding: 15px; margin: 15px;}
E pre {background-color: #eee; border: 1px solid #ddd; padding: 5px;}
E </style>
E </head>
E <body>
E <h1>Error: 404 Not Found</h1>
E <p>Sorry, the requested URL <tt>'https://localhost:8443/hps/jms/api/v1'</tt>
E caused an error:</p>
E <pre>Not found: '/hps/jms/api/v1'</pre>
E </body>
E </html>
.tox/py310-coverage/lib/python3.10/site-packages/ansys/hps/client/client.py:190: RuntimeError
Check failure on line 1 in tests/jms/test_parameter_definitions.py
github-actions / Test Report ubuntu-latest:3.10
test_parameter_definitions.test_mixed_parameter_definition
failed on setup with "RuntimeError: Failed to contact jms info endpoint https://localhost:8443/hps/jms/api/v1, status code 404:
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html>
<head>
<title>Error: 404 Not Found</title>
<style type="text/css">
html {background-color: #eee; font-family: sans;}
body {background-color: #fff; border: 1px solid #ddd;
padding: 15px; margin: 15px;}
pre {background-color: #eee; border: 1px solid #ddd; padding: 5px;}
</style>
</head>
<body>
<h1>Error: 404 Not Found</h1>
<p>Sorry, the requested URL <tt>'https://localhost:8443/hps/jms/api/v1'</tt>
caused an error:</p>
<pre>Not found: '/hps/jms/api/v1'</pre>
</body>
</html>"
Raw output
url = 'https://localhost:8443/hps', username = 'repadmin', password = 'repadmin'
@pytest.fixture(scope="session")
def client(url, username, password):
> return Client(url, username, password, verify=False)
tests/conftest.py:59:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <ansys.hps.client.client.Client object at 0x7f164df76500>
url = 'https://localhost:8443/hps', username = 'repadmin', password = 'repadmin'
realm = 'rep', grant_type = None, scope = 'openid', client_id = 'rep-cli'
client_secret = None, access_token = None, refresh_token = None
all_fields = True
def __init__(
self,
url: str = "https://127.0.0.1:8443/hps",
username: str = None,
password: str = None,
*,
realm: str = "rep",
grant_type: str = None,
scope="openid",
client_id: str = "rep-cli",
client_secret: str = None,
access_token: str = None,
refresh_token: str = None,
all_fields=True,
verify: Union[bool, str] = None,
disable_security_warnings: bool = True,
**kwargs,
):
rep_url = kwargs.get("rep_url", None)
if rep_url is not None:
url = rep_url
msg = "The 'rep_url' input argument is deprecated. Use 'url' instead."
warnings.warn(msg, DeprecationWarning)
log.warning(msg)
auth_url = kwargs.get("auth_url", None)
if auth_url is not None:
msg = (
"The 'auth_url' input argument is deprecated. Use None instead. "
"New HPS deployments will determine this automatically."
)
warnings.warn(msg, DeprecationWarning)
log.warning(msg)
self.url = url
self.access_token = None
self.refresh_token = None
self.username = username
self.realm = realm
self.grant_type = grant_type
self.scope = scope
self.client_id = client_id
self.client_secret = client_secret
self.verify = verify
self.data_transfer_url = url + f"/dt/api/v1"
self.dt_client = None
if self.verify is None:
self.verify = False
msg = (
f"Certificate verification is disabled. "
f"Unverified HTTPS requests are made to {self.url}."
)
warnings.warn(msg, UnverifiedHTTPSRequestsWarning)
log.warning(msg)
if disable_security_warnings:
requests.packages.urllib3.disable_warnings(
requests.packages.urllib3.exceptions.InsecureRequestWarning
)
self.auth_url = auth_url
if not auth_url:
with requests.session() as session:
session.verify = self.verify
jms_info_url = url.rstrip("/") + "/jms/api/v1"
resp = session.get(jms_info_url)
if resp.status_code != 200:
> raise RuntimeError(
f"Failed to contact jms info endpoint {jms_info_url}, \
status code {resp.status_code}: {resp.content.decode()}"
)
E RuntimeError: Failed to contact jms info endpoint https://localhost:8443/hps/jms/api/v1, status code 404:
E <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
E <html>
E <head>
E <title>Error: 404 Not Found</title>
E <style type="text/css">
E html {background-color: #eee; font-family: sans;}
E body {background-color: #fff; border: 1px solid #ddd;
E padding: 15px; margin: 15px;}
E pre {background-color: #eee; border: 1px solid #ddd; padding: 5px;}
E </style>
E </head>
E <body>
E <h1>Error: 404 Not Found</h1>
E <p>Sorry, the requested URL <tt>'https://localhost:8443/hps/jms/api/v1'</tt>
E caused an error:</p>
E <pre>Not found: '/hps/jms/api/v1'</pre>
E </body>
E </html>
.tox/py310-coverage/lib/python3.10/site-packages/ansys/hps/client/client.py:190: RuntimeError
Check failure on line 1 in tests/jms/test_project_permissions.py
github-actions / Test Report ubuntu-latest:3.10
test_project_permissions.test_get_project_permissions
failed on setup with "RuntimeError: Failed to contact jms info endpoint https://localhost:8443/hps/jms/api/v1, status code 404:
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html>
<head>
<title>Error: 404 Not Found</title>
<style type="text/css">
html {background-color: #eee; font-family: sans;}
body {background-color: #fff; border: 1px solid #ddd;
padding: 15px; margin: 15px;}
pre {background-color: #eee; border: 1px solid #ddd; padding: 5px;}
</style>
</head>
<body>
<h1>Error: 404 Not Found</h1>
<p>Sorry, the requested URL <tt>'https://localhost:8443/hps/jms/api/v1'</tt>
caused an error:</p>
<pre>Not found: '/hps/jms/api/v1'</pre>
</body>
</html>"
Raw output
url = 'https://localhost:8443/hps', username = 'repadmin', password = 'repadmin'
@pytest.fixture(scope="session")
def client(url, username, password):
> return Client(url, username, password, verify=False)
tests/conftest.py:59:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <ansys.hps.client.client.Client object at 0x7f164df76500>
url = 'https://localhost:8443/hps', username = 'repadmin', password = 'repadmin'
realm = 'rep', grant_type = None, scope = 'openid', client_id = 'rep-cli'
client_secret = None, access_token = None, refresh_token = None
all_fields = True
def __init__(
self,
url: str = "https://127.0.0.1:8443/hps",
username: str = None,
password: str = None,
*,
realm: str = "rep",
grant_type: str = None,
scope="openid",
client_id: str = "rep-cli",
client_secret: str = None,
access_token: str = None,
refresh_token: str = None,
all_fields=True,
verify: Union[bool, str] = None,
disable_security_warnings: bool = True,
**kwargs,
):
rep_url = kwargs.get("rep_url", None)
if rep_url is not None:
url = rep_url
msg = "The 'rep_url' input argument is deprecated. Use 'url' instead."
warnings.warn(msg, DeprecationWarning)
log.warning(msg)
auth_url = kwargs.get("auth_url", None)
if auth_url is not None:
msg = (
"The 'auth_url' input argument is deprecated. Use None instead. "
"New HPS deployments will determine this automatically."
)
warnings.warn(msg, DeprecationWarning)
log.warning(msg)
self.url = url
self.access_token = None
self.refresh_token = None
self.username = username
self.realm = realm
self.grant_type = grant_type
self.scope = scope
self.client_id = client_id
self.client_secret = client_secret
self.verify = verify
self.data_transfer_url = url + f"/dt/api/v1"
self.dt_client = None
if self.verify is None:
self.verify = False
msg = (
f"Certificate verification is disabled. "
f"Unverified HTTPS requests are made to {self.url}."
)
warnings.warn(msg, UnverifiedHTTPSRequestsWarning)
log.warning(msg)
if disable_security_warnings:
requests.packages.urllib3.disable_warnings(
requests.packages.urllib3.exceptions.InsecureRequestWarning
)
self.auth_url = auth_url
if not auth_url:
with requests.session() as session:
session.verify = self.verify
jms_info_url = url.rstrip("/") + "/jms/api/v1"
resp = session.get(jms_info_url)
if resp.status_code != 200:
> raise RuntimeError(
f"Failed to contact jms info endpoint {jms_info_url}, \
status code {resp.status_code}: {resp.content.decode()}"
)
E RuntimeError: Failed to contact jms info endpoint https://localhost:8443/hps/jms/api/v1, status code 404:
E <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
E <html>
E <head>
E <title>Error: 404 Not Found</title>
E <style type="text/css">
E html {background-color: #eee; font-family: sans;}
E body {background-color: #fff; border: 1px solid #ddd;
E padding: 15px; margin: 15px;}
E pre {background-color: #eee; border: 1px solid #ddd; padding: 5px;}
E </style>
E </head>
E <body>
E <h1>Error: 404 Not Found</h1>
E <p>Sorry, the requested URL <tt>'https://localhost:8443/hps/jms/api/v1'</tt>
E caused an error:</p>
E <pre>Not found: '/hps/jms/api/v1'</pre>
E </body>
E </html>
.tox/py310-coverage/lib/python3.10/site-packages/ansys/hps/client/client.py:190: RuntimeError
Check failure on line 1 in tests/jms/test_project_permissions.py
github-actions / Test Report ubuntu-latest:3.10
test_project_permissions.test_modify_project_permissions
failed on setup with "RuntimeError: Failed to contact jms info endpoint https://localhost:8443/hps/jms/api/v1, status code 404:
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html>
<head>
<title>Error: 404 Not Found</title>
<style type="text/css">
html {background-color: #eee; font-family: sans;}
body {background-color: #fff; border: 1px solid #ddd;
padding: 15px; margin: 15px;}
pre {background-color: #eee; border: 1px solid #ddd; padding: 5px;}
</style>
</head>
<body>
<h1>Error: 404 Not Found</h1>
<p>Sorry, the requested URL <tt>'https://localhost:8443/hps/jms/api/v1'</tt>
caused an error:</p>
<pre>Not found: '/hps/jms/api/v1'</pre>
</body>
</html>"
Raw output
url = 'https://localhost:8443/hps', username = 'repadmin', password = 'repadmin'
@pytest.fixture(scope="session")
def client(url, username, password):
> return Client(url, username, password, verify=False)
tests/conftest.py:59:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <ansys.hps.client.client.Client object at 0x7f164df76500>
url = 'https://localhost:8443/hps', username = 'repadmin', password = 'repadmin'
realm = 'rep', grant_type = None, scope = 'openid', client_id = 'rep-cli'
client_secret = None, access_token = None, refresh_token = None
all_fields = True
def __init__(
self,
url: str = "https://127.0.0.1:8443/hps",
username: str = None,
password: str = None,
*,
realm: str = "rep",
grant_type: str = None,
scope="openid",
client_id: str = "rep-cli",
client_secret: str = None,
access_token: str = None,
refresh_token: str = None,
all_fields=True,
verify: Union[bool, str] = None,
disable_security_warnings: bool = True,
**kwargs,
):
rep_url = kwargs.get("rep_url", None)
if rep_url is not None:
url = rep_url
msg = "The 'rep_url' input argument is deprecated. Use 'url' instead."
warnings.warn(msg, DeprecationWarning)
log.warning(msg)
auth_url = kwargs.get("auth_url", None)
if auth_url is not None:
msg = (
"The 'auth_url' input argument is deprecated. Use None instead. "
"New HPS deployments will determine this automatically."
)
warnings.warn(msg, DeprecationWarning)
log.warning(msg)
self.url = url
self.access_token = None
self.refresh_token = None
self.username = username
self.realm = realm
self.grant_type = grant_type
self.scope = scope
self.client_id = client_id
self.client_secret = client_secret
self.verify = verify
self.data_transfer_url = url + f"/dt/api/v1"
self.dt_client = None
if self.verify is None:
self.verify = False
msg = (
f"Certificate verification is disabled. "
f"Unverified HTTPS requests are made to {self.url}."
)
warnings.warn(msg, UnverifiedHTTPSRequestsWarning)
log.warning(msg)
if disable_security_warnings:
requests.packages.urllib3.disable_warnings(
requests.packages.urllib3.exceptions.InsecureRequestWarning
)
self.auth_url = auth_url
if not auth_url:
with requests.session() as session:
session.verify = self.verify
jms_info_url = url.rstrip("/") + "/jms/api/v1"
resp = session.get(jms_info_url)
if resp.status_code != 200:
> raise RuntimeError(
f"Failed to contact jms info endpoint {jms_info_url}, \
status code {resp.status_code}: {resp.content.decode()}"
)
E RuntimeError: Failed to contact jms info endpoint https://localhost:8443/hps/jms/api/v1, status code 404:
E <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
E <html>
E <head>
E <title>Error: 404 Not Found</title>
E <style type="text/css">
E html {background-color: #eee; font-family: sans;}
E body {background-color: #fff; border: 1px solid #ddd;
E padding: 15px; margin: 15px;}
E pre {background-color: #eee; border: 1px solid #ddd; padding: 5px;}
E </style>
E </head>
E <body>
E <h1>Error: 404 Not Found</h1>
E <p>Sorry, the requested URL <tt>'https://localhost:8443/hps/jms/api/v1'</tt>
E caused an error:</p>
E <pre>Not found: '/hps/jms/api/v1'</pre>
E </body>
E </html>
.tox/py310-coverage/lib/python3.10/site-packages/ansys/hps/client/client.py:190: RuntimeError
Check failure on line 1 in tests/jms/test_projects.py
github-actions / Test Report ubuntu-latest:3.10
test_projects.test_project_integration
failed on setup with "RuntimeError: Failed to contact jms info endpoint https://localhost:8443/hps/jms/api/v1, status code 404:
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html>
<head>
<title>Error: 404 Not Found</title>
<style type="text/css">
html {background-color: #eee; font-family: sans;}
body {background-color: #fff; border: 1px solid #ddd;
padding: 15px; margin: 15px;}
pre {background-color: #eee; border: 1px solid #ddd; padding: 5px;}
</style>
</head>
<body>
<h1>Error: 404 Not Found</h1>
<p>Sorry, the requested URL <tt>'https://localhost:8443/hps/jms/api/v1'</tt>
caused an error:</p>
<pre>Not found: '/hps/jms/api/v1'</pre>
</body>
</html>"
Raw output
url = 'https://localhost:8443/hps', username = 'repadmin', password = 'repadmin'
@pytest.fixture(scope="session")
def client(url, username, password):
> return Client(url, username, password, verify=False)
tests/conftest.py:59:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <ansys.hps.client.client.Client object at 0x7f164df76500>
url = 'https://localhost:8443/hps', username = 'repadmin', password = 'repadmin'
realm = 'rep', grant_type = None, scope = 'openid', client_id = 'rep-cli'
client_secret = None, access_token = None, refresh_token = None
all_fields = True
def __init__(
self,
url: str = "https://127.0.0.1:8443/hps",
username: str = None,
password: str = None,
*,
realm: str = "rep",
grant_type: str = None,
scope="openid",
client_id: str = "rep-cli",
client_secret: str = None,
access_token: str = None,
refresh_token: str = None,
all_fields=True,
verify: Union[bool, str] = None,
disable_security_warnings: bool = True,
**kwargs,
):
rep_url = kwargs.get("rep_url", None)
if rep_url is not None:
url = rep_url
msg = "The 'rep_url' input argument is deprecated. Use 'url' instead."
warnings.warn(msg, DeprecationWarning)
log.warning(msg)
auth_url = kwargs.get("auth_url", None)
if auth_url is not None:
msg = (
"The 'auth_url' input argument is deprecated. Use None instead. "
"New HPS deployments will determine this automatically."
)
warnings.warn(msg, DeprecationWarning)
log.warning(msg)
self.url = url
self.access_token = None
self.refresh_token = None
self.username = username
self.realm = realm
self.grant_type = grant_type
self.scope = scope
self.client_id = client_id
self.client_secret = client_secret
self.verify = verify
self.data_transfer_url = url + f"/dt/api/v1"
self.dt_client = None
if self.verify is None:
self.verify = False
msg = (
f"Certificate verification is disabled. "
f"Unverified HTTPS requests are made to {self.url}."
)
warnings.warn(msg, UnverifiedHTTPSRequestsWarning)
log.warning(msg)
if disable_security_warnings:
requests.packages.urllib3.disable_warnings(
requests.packages.urllib3.exceptions.InsecureRequestWarning
)
self.auth_url = auth_url
if not auth_url:
with requests.session() as session:
session.verify = self.verify
jms_info_url = url.rstrip("/") + "/jms/api/v1"
resp = session.get(jms_info_url)
if resp.status_code != 200:
> raise RuntimeError(
f"Failed to contact jms info endpoint {jms_info_url}, \
status code {resp.status_code}: {resp.content.decode()}"
)
E RuntimeError: Failed to contact jms info endpoint https://localhost:8443/hps/jms/api/v1, status code 404:
E <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
E <html>
E <head>
E <title>Error: 404 Not Found</title>
E <style type="text/css">
E html {background-color: #eee; font-family: sans;}
E body {background-color: #fff; border: 1px solid #ddd;
E padding: 15px; margin: 15px;}
E pre {background-color: #eee; border: 1px solid #ddd; padding: 5px;}
E </style>
E </head>
E <body>
E <h1>Error: 404 Not Found</h1>
E <p>Sorry, the requested URL <tt>'https://localhost:8443/hps/jms/api/v1'</tt>
E caused an error:</p>
E <pre>Not found: '/hps/jms/api/v1'</pre>
E </body>
E </html>
.tox/py310-coverage/lib/python3.10/site-packages/ansys/hps/client/client.py:190: RuntimeError
Check failure on line 1 in tests/jms/test_projects.py
github-actions / Test Report ubuntu-latest:3.10
test_projects.test_project_copy
failed on setup with "RuntimeError: Failed to contact jms info endpoint https://localhost:8443/hps/jms/api/v1, status code 404:
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html>
<head>
<title>Error: 404 Not Found</title>
<style type="text/css">
html {background-color: #eee; font-family: sans;}
body {background-color: #fff; border: 1px solid #ddd;
padding: 15px; margin: 15px;}
pre {background-color: #eee; border: 1px solid #ddd; padding: 5px;}
</style>
</head>
<body>
<h1>Error: 404 Not Found</h1>
<p>Sorry, the requested URL <tt>'https://localhost:8443/hps/jms/api/v1'</tt>
caused an error:</p>
<pre>Not found: '/hps/jms/api/v1'</pre>
</body>
</html>"
Raw output
url = 'https://localhost:8443/hps', username = 'repadmin', password = 'repadmin'
@pytest.fixture(scope="session")
def client(url, username, password):
> return Client(url, username, password, verify=False)
tests/conftest.py:59:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <ansys.hps.client.client.Client object at 0x7f164df76500>
url = 'https://localhost:8443/hps', username = 'repadmin', password = 'repadmin'
realm = 'rep', grant_type = None, scope = 'openid', client_id = 'rep-cli'
client_secret = None, access_token = None, refresh_token = None
all_fields = True
def __init__(
self,
url: str = "https://127.0.0.1:8443/hps",
username: str = None,
password: str = None,
*,
realm: str = "rep",
grant_type: str = None,
scope="openid",
client_id: str = "rep-cli",
client_secret: str = None,
access_token: str = None,
refresh_token: str = None,
all_fields=True,
verify: Union[bool, str] = None,
disable_security_warnings: bool = True,
**kwargs,
):
rep_url = kwargs.get("rep_url", None)
if rep_url is not None:
url = rep_url
msg = "The 'rep_url' input argument is deprecated. Use 'url' instead."
warnings.warn(msg, DeprecationWarning)
log.warning(msg)
auth_url = kwargs.get("auth_url", None)
if auth_url is not None:
msg = (
"The 'auth_url' input argument is deprecated. Use None instead. "
"New HPS deployments will determine this automatically."
)
warnings.warn(msg, DeprecationWarning)
log.warning(msg)
self.url = url
self.access_token = None
self.refresh_token = None
self.username = username
self.realm = realm
self.grant_type = grant_type
self.scope = scope
self.client_id = client_id
self.client_secret = client_secret
self.verify = verify
self.data_transfer_url = url + f"/dt/api/v1"
self.dt_client = None
if self.verify is None:
self.verify = False
msg = (
f"Certificate verification is disabled. "
f"Unverified HTTPS requests are made to {self.url}."
)
warnings.warn(msg, UnverifiedHTTPSRequestsWarning)
log.warning(msg)
if disable_security_warnings:
requests.packages.urllib3.disable_warnings(
requests.packages.urllib3.exceptions.InsecureRequestWarning
)
self.auth_url = auth_url
if not auth_url:
with requests.session() as session:
session.verify = self.verify
jms_info_url = url.rstrip("/") + "/jms/api/v1"
resp = session.get(jms_info_url)
if resp.status_code != 200:
> raise RuntimeError(
f"Failed to contact jms info endpoint {jms_info_url}, \
status code {resp.status_code}: {resp.content.decode()}"
)
E RuntimeError: Failed to contact jms info endpoint https://localhost:8443/hps/jms/api/v1, status code 404:
E <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
E <html>
E <head>
E <title>Error: 404 Not Found</title>
E <style type="text/css">
E html {background-color: #eee; font-family: sans;}
E body {background-color: #fff; border: 1px solid #ddd;
E padding: 15px; margin: 15px;}
E pre {background-color: #eee; border: 1px solid #ddd; padding: 5px;}
E </style>
E </head>
E <body>
E <h1>Error: 404 Not Found</h1>
E <p>Sorry, the requested URL <tt>'https://localhost:8443/hps/jms/api/v1'</tt>
E caused an error:</p>
E <pre>Not found: '/hps/jms/api/v1'</pre>
E </body>
E </html>
.tox/py310-coverage/lib/python3.10/site-packages/ansys/hps/client/client.py:190: RuntimeError
Check failure on line 1 in tests/jms/test_projects.py
github-actions / Test Report ubuntu-latest:3.10
test_projects.test_project_delete_job_definition
failed on setup with "RuntimeError: Failed to contact jms info endpoint https://localhost:8443/hps/jms/api/v1, status code 404:
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html>
<head>
<title>Error: 404 Not Found</title>
<style type="text/css">
html {background-color: #eee; font-family: sans;}
body {background-color: #fff; border: 1px solid #ddd;
padding: 15px; margin: 15px;}
pre {background-color: #eee; border: 1px solid #ddd; padding: 5px;}
</style>
</head>
<body>
<h1>Error: 404 Not Found</h1>
<p>Sorry, the requested URL <tt>'https://localhost:8443/hps/jms/api/v1'</tt>
caused an error:</p>
<pre>Not found: '/hps/jms/api/v1'</pre>
</body>
</html>"
Raw output
url = 'https://localhost:8443/hps', username = 'repadmin', password = 'repadmin'
@pytest.fixture(scope="session")
def client(url, username, password):
> return Client(url, username, password, verify=False)
tests/conftest.py:59:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <ansys.hps.client.client.Client object at 0x7f164df76500>
url = 'https://localhost:8443/hps', username = 'repadmin', password = 'repadmin'
realm = 'rep', grant_type = None, scope = 'openid', client_id = 'rep-cli'
client_secret = None, access_token = None, refresh_token = None
all_fields = True
def __init__(
self,
url: str = "https://127.0.0.1:8443/hps",
username: str = None,
password: str = None,
*,
realm: str = "rep",
grant_type: str = None,
scope="openid",
client_id: str = "rep-cli",
client_secret: str = None,
access_token: str = None,
refresh_token: str = None,
all_fields=True,
verify: Union[bool, str] = None,
disable_security_warnings: bool = True,
**kwargs,
):
rep_url = kwargs.get("rep_url", None)
if rep_url is not None:
url = rep_url
msg = "The 'rep_url' input argument is deprecated. Use 'url' instead."
warnings.warn(msg, DeprecationWarning)
log.warning(msg)
auth_url = kwargs.get("auth_url", None)
if auth_url is not None:
msg = (
"The 'auth_url' input argument is deprecated. Use None instead. "
"New HPS deployments will determine this automatically."
)
warnings.warn(msg, DeprecationWarning)
log.warning(msg)
self.url = url
self.access_token = None
self.refresh_token = None
self.username = username
self.realm = realm
self.grant_type = grant_type
self.scope = scope
self.client_id = client_id
self.client_secret = client_secret
self.verify = verify
self.data_transfer_url = url + f"/dt/api/v1"
self.dt_client = None
if self.verify is None:
self.verify = False
msg = (
f"Certificate verification is disabled. "
f"Unverified HTTPS requests are made to {self.url}."
)
warnings.warn(msg, UnverifiedHTTPSRequestsWarning)
log.warning(msg)
if disable_security_warnings:
requests.packages.urllib3.disable_warnings(
requests.packages.urllib3.exceptions.InsecureRequestWarning
)
self.auth_url = auth_url
if not auth_url:
with requests.session() as session:
session.verify = self.verify
jms_info_url = url.rstrip("/") + "/jms/api/v1"
resp = session.get(jms_info_url)
if resp.status_code != 200:
> raise RuntimeError(
f"Failed to contact jms info endpoint {jms_info_url}, \
status code {resp.status_code}: {resp.content.decode()}"
)
E RuntimeError: Failed to contact jms info endpoint https://localhost:8443/hps/jms/api/v1, status code 404:
E <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
E <html>
E <head>
E <title>Error: 404 Not Found</title>
E <style type="text/css">
E html {background-color: #eee; font-family: sans;}
E body {background-color: #fff; border: 1px solid #ddd;
E padding: 15px; margin: 15px;}
E pre {background-color: #eee; border: 1px solid #ddd; padding: 5px;}
E </style>
E </head>
E <body>
E <h1>Error: 404 Not Found</h1>
E <p>Sorry, the requested URL <tt>'https://localhost:8443/hps/jms/api/v1'</tt>
E caused an error:</p>
E <pre>Not found: '/hps/jms/api/v1'</pre>
E </body>
E </html>
.tox/py310-coverage/lib/python3.10/site-packages/ansys/hps/client/client.py:190: RuntimeError
Check failure on line 1 in tests/jms/test_projects.py
github-actions / Test Report ubuntu-latest:3.10
test_projects.test_project_archive_restore
failed on setup with "RuntimeError: Failed to contact jms info endpoint https://localhost:8443/hps/jms/api/v1, status code 404:
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html>
<head>
<title>Error: 404 Not Found</title>
<style type="text/css">
html {background-color: #eee; font-family: sans;}
body {background-color: #fff; border: 1px solid #ddd;
padding: 15px; margin: 15px;}
pre {background-color: #eee; border: 1px solid #ddd; padding: 5px;}
</style>
</head>
<body>
<h1>Error: 404 Not Found</h1>
<p>Sorry, the requested URL <tt>'https://localhost:8443/hps/jms/api/v1'</tt>
caused an error:</p>
<pre>Not found: '/hps/jms/api/v1'</pre>
</body>
</html>"
Raw output
url = 'https://localhost:8443/hps', username = 'repadmin', password = 'repadmin'
@pytest.fixture(scope="session")
def client(url, username, password):
> return Client(url, username, password, verify=False)
tests/conftest.py:59:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <ansys.hps.client.client.Client object at 0x7f164df76500>
url = 'https://localhost:8443/hps', username = 'repadmin', password = 'repadmin'
realm = 'rep', grant_type = None, scope = 'openid', client_id = 'rep-cli'
client_secret = None, access_token = None, refresh_token = None
all_fields = True
def __init__(
self,
url: str = "https://127.0.0.1:8443/hps",
username: str = None,
password: str = None,
*,
realm: str = "rep",
grant_type: str = None,
scope="openid",
client_id: str = "rep-cli",
client_secret: str = None,
access_token: str = None,
refresh_token: str = None,
all_fields=True,
verify: Union[bool, str] = None,
disable_security_warnings: bool = True,
**kwargs,
):
rep_url = kwargs.get("rep_url", None)
if rep_url is not None:
url = rep_url
msg = "The 'rep_url' input argument is deprecated. Use 'url' instead."
warnings.warn(msg, DeprecationWarning)
log.warning(msg)
auth_url = kwargs.get("auth_url", None)
if auth_url is not None:
msg = (
"The 'auth_url' input argument is deprecated. Use None instead. "
"New HPS deployments will determine this automatically."
)
warnings.warn(msg, DeprecationWarning)
log.warning(msg)
self.url = url
self.access_token = None
self.refresh_token = None
self.username = username
self.realm = realm
self.grant_type = grant_type
self.scope = scope
self.client_id = client_id
self.client_secret = client_secret
self.verify = verify
self.data_transfer_url = url + f"/dt/api/v1"
self.dt_client = None
if self.verify is None:
self.verify = False
msg = (
f"Certificate verification is disabled. "
f"Unverified HTTPS requests are made to {self.url}."
)
warnings.warn(msg, UnverifiedHTTPSRequestsWarning)
log.warning(msg)
if disable_security_warnings:
requests.packages.urllib3.disable_warnings(
requests.packages.urllib3.exceptions.InsecureRequestWarning
)
self.auth_url = auth_url
if not auth_url:
with requests.session() as session:
session.verify = self.verify
jms_info_url = url.rstrip("/") + "/jms/api/v1"
resp = session.get(jms_info_url)
if resp.status_code != 200:
> raise RuntimeError(
f"Failed to contact jms info endpoint {jms_info_url}, \
status code {resp.status_code}: {resp.content.decode()}"
)
E RuntimeError: Failed to contact jms info endpoint https://localhost:8443/hps/jms/api/v1, status code 404:
E <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
E <html>
E <head>
E <title>Error: 404 Not Found</title>
E <style type="text/css">
E html {background-color: #eee; font-family: sans;}
E body {background-color: #fff; border: 1px solid #ddd;
E padding: 15px; margin: 15px;}
E pre {background-color: #eee; border: 1px solid #ddd; padding: 5px;}
E </style>
E </head>
E <body>
E <h1>Error: 404 Not Found</h1>
E <p>Sorry, the requested URL <tt>'https://localhost:8443/hps/jms/api/v1'</tt>
E caused an error:</p>
E <pre>Not found: '/hps/jms/api/v1'</pre>
E </body>
E </html>
.tox/py310-coverage/lib/python3.10/site-packages/ansys/hps/client/client.py:190: RuntimeError