Skip to content

Commit

Permalink
Update latest csm-api-client
Browse files Browse the repository at this point in the history
  • Loading branch information
annapoorna-s-alt committed Sep 12, 2024
1 parent f70608c commit d4cf735
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion requirements-dev.lock.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ coverage==6.3.2
cray-product-catalog==2.3.1
croniter==0.3.37
cryptography==42.0.4
csm-api-client==2.1.0
csm-api-client==2.2.1
dataclasses-json==0.5.6
docutils==0.17.1
google-auth==2.6.0
Expand Down
2 changes: 1 addition & 1 deletion requirements.lock.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ click==8.0.4
cray-product-catalog==2.3.1
croniter==0.3.37
cryptography==42.0.4
csm-api-client==2.1.0
csm-api-client==2.2.1
dataclasses-json==0.5.6
google-auth==2.6.0
htmlmin==0.1.12
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ argcomplete
boto3
botocore
cray-product-catalog >= 2.3.1
csm-api-client >= 2.1.0, <3.0
csm-api-client >= 2.2.1, <3.0
croniter >= 0.3, < 1.0
inflect >= 0.2.5, < 3.0
Jinja2 >= 3.0, < 4.0
Expand Down
6 changes: 3 additions & 3 deletions sat/cli/bootsys/service_activity.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#
# MIT License
#
# (C) Copyright 2020-2023 Hewlett Packard Enterprise Development LP
# (C) Copyright 2020-2024 Hewlett Packard Enterprise Development LP
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the "Software"),
Expand Down Expand Up @@ -38,7 +38,7 @@

from sat.apiclient import (
APIError,
CFSClient,
CFSClientBase,
NMDClient
)
from sat.apiclient.bos import BOSClientCommon
Expand Down Expand Up @@ -383,7 +383,7 @@ def get_active_sessions(self):
Raises:
ServiceCheckError: if unable to get the active CFS sessions.
"""
cfs_client = CFSClient(SATSession())
cfs_client = CFSClientBase.get_cfs_client(SATSession(), 'v2')
try:
sessions = cfs_client.get('sessions').json()
except (APIError, ValueError) as err:
Expand Down
2 changes: 1 addition & 1 deletion tests/cli/bootprep/input/test_image.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#
# MIT License
#
# (C) Copyright 2023 Hewlett Packard Enterprise Development LP
# (C) Copyright 2023-2024 Hewlett Packard Enterprise Development LP
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the "Software"),
Expand Down
2 changes: 1 addition & 1 deletion tests/cli/bootprep/test_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ def setUp(self):
self.mock_input_instance_cls = patch('sat.cli.bootprep.main.InputInstance').start()
self.mock_input_instance = self.mock_input_instance_cls.return_value
self.mock_sat_session = patch('sat.cli.bootprep.main.SATSession').start()
self.mock_cfs_client = patch('sat.cli.bootprep.main.CFSV2Client').start().return_value
self.mock_cfs_client = patch('sat.cli.bootprep.main.CFSClientBase.get_cfs_client').start().return_value
self.mock_ims_client = patch('sat.cli.bootprep.main.IMSClient').start().return_value
self.mock_bos_client = patch('sat.cli.bootprep.main.BOSClientCommon.get_bos_client').start().return_value
self.mock_configurations = self.mock_input_instance.input_configurations
Expand Down
2 changes: 1 addition & 1 deletion tests/cli/bootsys/test_service_activity.py
Original file line number Diff line number Diff line change
Expand Up @@ -508,7 +508,7 @@ def json():

patch('sat.cli.bootsys.service_activity.SATSession').start()
self.mock_cfs_client = patch(
'sat.cli.bootsys.service_activity.CFSClient').start()
'sat.cli.bootsys.service_activity.CFSClientBase.get_cfs_client').start()
self.mock_cfs_client.return_value.get = mock_cfs_get

def tearDown(self):
Expand Down

0 comments on commit d4cf735

Please sign in to comment.