@@ -37,6 +37,7 @@ import fixture5 from '../src/__fixtures__/1-rollouts.json';
|
||||
import fixture6 from '../src/__fixtures__/3-ingresses.json';
|
||||
import fixture7 from '../src/__fixtures__/2-statefulsets.json';
|
||||
import { TestApiProvider } from '@backstage/test-utils';
|
||||
import { StructuredMetadataTable } from '@backstage/core-components';
|
||||
|
||||
const mockEntity: Entity = {
|
||||
apiVersion: 'backstage.io/v1alpha1',
|
||||
@@ -136,6 +137,12 @@ class MockKubernetesClient implements KubernetesApi {
|
||||
}
|
||||
}
|
||||
|
||||
const metadata = {
|
||||
testA: 'stuff',
|
||||
testB: { testC: 'stuff' },
|
||||
testD: [{ testE: 'stuff' }],
|
||||
};
|
||||
|
||||
createDevApp()
|
||||
.addPage({
|
||||
path: '/fixture-1',
|
||||
@@ -223,6 +230,10 @@ createDevApp()
|
||||
apis={[[kubernetesApiRef, new MockKubernetesClient(fixture7)]]}
|
||||
>
|
||||
<EntityProvider entity={mockEntity}>
|
||||
<StructuredMetadataTable
|
||||
metadata={metadata}
|
||||
options={{ nestedValuesAsYaml: true }}
|
||||
/>
|
||||
<EntityKubernetesContent />
|
||||
</EntityProvider>
|
||||
</TestApiProvider>
|
||||
|
||||
Reference in New Issue
Block a user