name: "Plugin references self"

input:
  devworkspace:
    components:
      - name: "plugin-a"
        plugin:
          kubernetes:
            name: plugin-a
  devworkspaceResources:
    plugin-a:
      kind: DevWorkspaceTemplate
      apiVersion: workspace.devfile.io/v1alpha2
      metadata:
        name: plugin-a
        annotations:
          "controller.devfile.io/allow-import-from": "*"
      spec:
        components:
          - name: plugin-a
            plugin:
              kubernetes:
                name: plugin-a
                namespace: devworkspace-plugins

output:
  errRegexp: "DevWorkspace has an cycle in references.*"
