Skip to content

Commit

Permalink
fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
hhovsepy committed Mar 26, 2024
1 parent 4f80b50 commit 543cda2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions frontend/cypress/integration/common/graph_side_panel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ When(
'there is traffic routing for the {string} service in the {string} namespace and in the {string} cluster',
(service: string, namespace: string, cluster: string) => {
cy.request({
url: `api/namespaces/${namespace}/services`,
url: `api/clusters/services?namespaces=${namespace}`,
qs: { clusterName: cluster, istioResources: true, onlyDefinitions: false }
}).then(response => {
cy.wrap(response).its('status').should('eq', 200);
Expand Down Expand Up @@ -175,7 +175,7 @@ Then(
'there is no traffic routing for the {string} service in the {string} namespace and in the {string} cluster',
(service: string, namespace: string, cluster: string) => {
cy.request({
url: `api/namespaces/${namespace}/services`,
url: `api/clusters/services?namespaces=${namespace}`,
qs: { clusterName: cluster, istioResources: true, onlyDefinitions: false }
}).then(response => {
cy.wrap(response).its('status').should('eq', 200);
Expand Down
1 change: 0 additions & 1 deletion frontend/src/config/Config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,6 @@ const conf = {
podEnvoyProxyResourceEntries: (namespace: string, pod: string, resource: string) =>
`api/namespaces/${namespace}/pods/${pod}/config_dump/${resource}`,
serverConfig: `api/config`,
services: (namespace: string) => `api/namespaces/${namespace}/services`,
service: (namespace: string, service: string) => `api/namespaces/${namespace}/services/${service}`,
serviceGraphElements: (namespace: string, service: string) =>
`api/namespaces/${namespace}/services/${service}/graph`,
Expand Down
2 changes: 1 addition & 1 deletion tests/integration/tests/no_istiod_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ func servicesListNoRegistryServices(t *testing.T) {

// Now, create a Service Entry (Part of th
require.NotNil(serviceList.Validations)
require.Equal(kiali.BOOKINFO, serviceList.Namespace.Name)
require.Equal(kiali.BOOKINFO, serviceList.Services[0].Namespace)

// Cleanup
deleteSe := utils.DeleteFile("../assets/bookinfo-service-entry-external.yaml", "bookinfo")
Expand Down

0 comments on commit 543cda2

Please sign in to comment.