Skip to content

Commit

Permalink
fix(tools-iottwinmaker): update dashboard role to include execute que…
Browse files Browse the repository at this point in the history
…ry api
  • Loading branch information
MO-Elmu committed Sep 12, 2023
1 parent d046184 commit b63d053
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 10 deletions.
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
import React from 'react';
import { render, act, screen } from '@testing-library/react';
import userEvent from '@testing-library/user-event';
import { render } from '@testing-library/react';

import { IRuleBasedMapInternal, IRuleStatementInternal } from '../../store/internalInterfaces';
import { IRuleBasedMap } from '../../interfaces';

import { SceneRuleMapExpandableInfoSection, SceneRulesPanel } from './SceneRulesPanel';
import { SceneRulesPanel } from './SceneRulesPanel';

jest.mock('../../logger/react-logger/log-provider', () => (props) => <div {...props} />);
jest.mock('./CommonPanelComponents', () => ({
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { IconDefinition, IconLookup } from '@fortawesome/fontawesome-svg-core';
import { IconLookup } from '@fortawesome/fontawesome-svg-core';

export interface TagStyle {
colorPicker?: React.ReactNode;
Expand Down
2 changes: 1 addition & 1 deletion packages/scene-composer/src/hooks/useBindingData.spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { act, renderHook, waitFor } from '@testing-library/react';
import { renderHook, waitFor } from '@testing-library/react';

import { useStore } from '../store';

Expand Down
1 change: 0 additions & 1 deletion packages/scene-composer/src/utils/styleUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import {
colorTextNotificationDefault,
colorBackgroundNotificationRed,
colorBorderButtonNormalDefault,
colorChartsBlue1500,
} from '@awsui/design-tokens';

const designTokenRegex = /^var\(([0-9a-zA-Z-]+),\s*(#[0-9a-z]+)\)$/;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export const workspaceDashboardRolePolicyTemplate = {
},
{
Effect: 'Allow',
Action: ['iottwinmaker:Get*', 'iottwinmaker:List*'],
Action: ['iottwinmaker:Get*', 'iottwinmaker:List*', 'iottwinmaker:ExecuteQuery'],
Resource: ['{workspaceArn}', '{workspaceArn}/*'],
},
{
Expand Down

0 comments on commit b63d053

Please sign in to comment.