Skip to content

[Question] Using configuration file for extractor in v7.0.0 alpha x.x.x #823

@forX01

Description

@forX01

Release version

APIOPS v7.0.0 alpha x.x.x

Question Details

Not sure if is a question or a bug.

using the run extractor https://github.com/Azure/apiops/blob/main/tools/azdo_pipelines/run-extractor.yaml

I want to use a configuration file to get specified elements https://github.com/Azure/apiops/blob/main/configuration.extractor.yaml

Expected behavior

extract only 1product, 1 api, 1 backend

Actual behavior

Extract All elements of the apim (configuration file not loaded/used)

Reproduction Steps

Files in folders:
/pipelines/run-extractor.yml
/pipelines/configuration.extractor.yml

productNames:
 - my-product

apiNames:
 - my-api

backendNames: 
 - my-api-backend

diagnosticNames: [ignore]

loggerNames: [ignore]

namedValueNames: [ignore]

subscriptionNames: [ignore]

tagNames: [ignore]
 
policyFragmentNames: [ignore]

groupNames: [ignore]
  - name: CONFIGURATION_YAML_PATH
    type: string
    displayName: Optional configuration file
    values:
      - 'pipelines/configuration.extractor.yml'
      - 'configuration.extractor.yml'
      - Extract All
  - name: APIOPS_RELEASE_VERSION
    type: string
    displayName: APIOps extractor release version
    default: 'v6.0.2'
    values:
      - 'v6.0.2'
      - 'v7.0.0-alpha.3.0.1'
      - 'v7.0.0-alpha.2.0.0'
      - 'v7.0.0-alpha.1.0.4'

  • execute with v6.0.2 and 'pipelines/configuration.extractor.yml'
    • result : got only the 3 elements
  • execute with v6.0.2 and 'configuration.extractor.yml'
    • result : error, cannot find configuration file
  • execute with v7.0.0-alpha.X.X.X (3 options) and 'pipelines/configuration.extractor.yml'
    • result : no error, extract all elements of apim
  • execute with v7.0.0-alpha.X.X.X (3 options) and 'configuration.extractor.yml'
    • result : no error, extract all elements of apim

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions