Skip to content

Commit

Permalink
update argument to cluster_name in listRecommendations invocation
Browse files Browse the repository at this point in the history
  • Loading branch information
shreyabiradar07 committed Nov 10, 2023
1 parent 7ba3563 commit baa2bc9
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1282,8 +1282,9 @@ def test_list_recommendations_single_cluster_and_latest(latest, cluster_type):
item['interval_start_time'] for item in sorted_data[:5]
]
print(f"{top_5_dates}")
# Get the experiment name
# Get the experiment and cluster name
json_data = json.load(open(input_json_file))
cluster_name = json_data[0]['cluster_name']
experiment_name = json_data[0]['experiment_name']

for dateStr in top_5_dates:
Expand All @@ -1298,7 +1299,7 @@ def test_list_recommendations_single_cluster_and_latest(latest, cluster_type):
assert data[0]['kubernetes_objects'][0]['containers'][0]['recommendations']['notifications']['112101'][
'message'] == 'Cost Recommendations Available'

response = list_recommendations(experiment_name, latest)
response = list_recommendations(cluster_name=cluster_name, latest=latest)

list_reco_json = response.json()
assert response.status_code == SUCCESS_200_STATUS_CODE
Expand Down

0 comments on commit baa2bc9

Please sign in to comment.