diff --git a/opencti-platform/opencti-graphql/src/modules/publicDashboard/publicDashboard.graphql b/opencti-platform/opencti-graphql/src/modules/publicDashboard/publicDashboard.graphql index b54fc4e8b29c..2748a71d155b 100644 --- a/opencti-platform/opencti-graphql/src/modules/publicDashboard/publicDashboard.graphql +++ b/opencti-platform/opencti-graphql/src/modules/publicDashboard/publicDashboard.graphql @@ -24,5 +24,6 @@ type Query { # Mutation type Mutation { publicDashboardAdd(dashboard_id: String!): PublicDashboard @auth(for: [KNOWLEDGE, EXPLORE]) + publishPublicDashboard(dashboard_id: ID!, uri_keys) } diff --git a/opencti-platform/opencti-graphql/tests/02-integration/01-database/elasticSearch-test.js b/opencti-platform/opencti-graphql/tests/02-integration/01-database/elasticSearch-test.js index 749d31bb628c..61211b429fe9 100644 --- a/opencti-platform/opencti-graphql/tests/02-integration/01-database/elasticSearch-test.js +++ b/opencti-platform/opencti-graphql/tests/02-integration/01-database/elasticSearch-test.js @@ -395,7 +395,7 @@ describe('Elasticsearch pagination', () => { it('should entity paginate everything', async () => { const data = await elPaginate(testContext, ADMIN_USER, READ_ENTITIES_INDICES, { first: 1000 }); expect(data).not.toBeNull(); - expect(data.edges.length).toEqual(493); + expect(data.edges.length).toEqual(494); const filterBaseTypes = R.uniq(R.map((e) => e.node.base_type, data.edges)); expect(filterBaseTypes.length).toEqual(1); expect(R.head(filterBaseTypes)).toEqual('ENTITY'); @@ -471,7 +471,7 @@ describe('Elasticsearch pagination', () => { filterGroups: [], }; const data = await elPaginate(testContext, ADMIN_USER, READ_ENTITIES_INDICES, { filters, first: 1000 }); - expect(data.edges.length).toEqual(486); + expect(data.edges.length).toEqual(487); }); it('should entity paginate with field exist filter', async () => { const filters = { @@ -552,7 +552,7 @@ describe('Elasticsearch pagination', () => { orderMode: 'asc', first: 1000 }); - expect(data.edges.length).toEqual(493); + expect(data.edges.length).toEqual(494); const createdDates = R.map((e) => e.node.created, data.edges); let previousCreatedDate = null; for (let index = 0; index < createdDates.length; index += 1) { diff --git a/opencti-platform/opencti-graphql/tests/02-integration/02-resolvers/role-test.js b/opencti-platform/opencti-graphql/tests/02-integration/02-resolvers/role-test.js index e77abce255ed..997f58a8eb87 100644 --- a/opencti-platform/opencti-graphql/tests/02-integration/02-resolvers/role-test.js +++ b/opencti-platform/opencti-graphql/tests/02-integration/02-resolvers/role-test.js @@ -83,7 +83,7 @@ describe('Role resolver standard behavior', () => { } `; const queryResult = await queryAsAdmin({ query: LIST_CAPABILITIES_QUERY, variables: { first: 50 } }); - expect(queryResult.data.capabilities.edges.length).toEqual(26); + expect(queryResult.data.capabilities.edges.length).toEqual(27); }); it('should update role', async () => { const UPDATE_QUERY = gql`