Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wrong reading config file #1345

Open
lukman7788 opened this issue Jan 31, 2025 · 0 comments
Open

wrong reading config file #1345

lukman7788 opened this issue Jan 31, 2025 · 0 comments

Comments

@lukman7788
Copy link
Contributor

lukman7788 commented Jan 31, 2025

Describe the bug
Running Monika with the Insomnia and Postman argument, the program reads monika.yml instead of the filename provided in the next argument

To Reproduce
Steps to reproduce the behavior:

  1. Make a file monika.yml

notifications:

  • id: c97e1ae7-5022-485d-a51e-23734edfd0b3
    type: desktop
    probes:
  • id: ping_test
    name: ping_test
    description: requesting icmp ping
    interval: 1
    ping:
    • uri: google.com`
  1. Make a file insomnia.yaml
    `_type: export
    __export_format: 4
    __export_date: 2025-01-24T05:27:52.241Z
    __export_source: insomnia.desktop.app:v10.3.0
    resources:
  • _id: req_c0918b7d2b4a424aa1dab19e1f8822be
    parentId: wrk_78c651d0d2ef4bbeba27ca5d3d49909d
    modified: 1737696321173
    created: 1713329870680
    url: https://insomnia.rest/
    name: insomnia
    description: ""
    method: GET
    body: {}
    parameters: []
    headers:
    • name: User-Agent
      value: insomnia/8.6.1
      authentication:
      type: bearer
      token: ""
      metaSortKey: -1713329870680
      isPrivate: false
      pathParameters: []
      settingStoreCookies: true
      settingSendCookies: true
      settingDisableRenderRequestBody: false
      settingEncodeUrl: true
      settingRebuildPath: true
      settingFollowRedirects: global
      _type: request
  • _id: wrk_78c651d0d2ef4bbeba27ca5d3d49909d
    parentId: null
    modified: 1737696376394
    created: 1713329864652
    name: Random
    description: ""
    scope: collection
    _type: workspace
  • _id: env_83f4449dc03cf89614238cf944bebacb7adb6662
    parentId: wrk_78c651d0d2ef4bbeba27ca5d3d49909d
    modified: 1713329864656
    created: 1713329864656
    name: Base Environment
    data: {}
    dataPropertyOrder: null
    color: null
    isPrivate: false
    metaSortKey: 1713329864656
    _type: environment
  • _id: jar_83f4449dc03cf89614238cf944bebacb7adb6662
    parentId: wrk_78c651d0d2ef4bbeba27ca5d3d49909d
    modified: 1713329864657
    created: 1713329864657
    name: Default Jar
    cookies: []
    _type: cookie_jar
  1. run monika -I insomnia.yaml
  2. program will read monika.yml

Expected behavior
program will read config from insomnia.yaml

Screenshots

Image

Desktop (please complete the following information):

  • OS: Ubuntu 22.04.5 LTS

Additional context
Add any other context about the problem here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant