Giter Site home page Giter Site logo

Comments (8)

anubnair avatar anubnair commented on July 30, 2024

@sylvestre Test should run across all the function right? It needs api_key to call the apis. Any test api_key is available? If so, we dont need to use the config.json, rather we can hard cord this.

from bugbot.

anoopvalluthadam avatar anoopvalluthadam commented on July 30, 2024

@sylvestre https://github.com/sylvestre In most of the modules getting
it from config file, instead of that we can parse it in a common place and
pass it to the methods, which will help us when we import that modules in
to some other modules.

from bugbot.

sylvestre avatar sylvestre commented on July 30, 2024

I am not sure if a public api_key is available. I will ask.
For example, it is causing this failure:
https://travis-ci.org/mozilla/relman-auto-nag/builds/86781044

from bugbot.

sylvestre avatar sylvestre commented on July 30, 2024

I asked to @globau and the api_key must remain private. However, I think we could try the solution 3.
Otherwise, we have other solutions:

<glob> so.. the options i see for you are:
<glob> 1. use bugzilla-dev ( bugzilla-dev.allizom.org ).  be aware your api-key may be deleted at any time as that system is periodically refreshed.  api-keys should not be public
<glob> 2.  read-only tests against production.  api-keys should still not be public
<glob> 3. unauthenticated testing
<glob> 4. self-host minimal bmo instance, unlimited testing with not api-key privacy issues
<glob> running destructive tests against production (eg. creating test bugs) is a good way to get an account disabled (this has happened before!)
<glob> running destructive tests against bugzilla-dev is ok

from bugbot.

anoopvalluthadam avatar anoopvalluthadam commented on July 30, 2024

@sylvestre

Doubts regarding 4 points mentioned above:

  1. If we are using bugzilla-dev.allizom.org as API, we have to change the whole APIs in the code when testing( change the APIs to a settings file), since the APIs are not from a settings file.
  2. read-only tests against production: public API KEY!
  3. unauthenticated testing: How it works for bugzilla production API or any other APIs, still we need a KEY, isn't it?
  4. I didn't understand!

from bugbot.

anubnair avatar anubnair commented on July 30, 2024

@sylvestre : I have tried to create an api key with bugzilla-dev ( bugzilla-dev.allizom.org ) But I got " Unauthorized Error"

from bugbot.

globau avatar globau commented on July 30, 2024

@anoopvalluthadam

  1. "unauthenticated testing" means without an api-key. requests such as bug searching/getting will work, but you only have visibility of public bugs.
  2. some other projects that need to run tests against bugzilla run all of their tests within multiple docker containers (this makes CI integration easier too). in this scenario you'd build a docker image for bmo and use that as the end-point for your testing.

@anubnair : did you ask on the #bmo irc channel for access (as per the instructions on every page)?

(edited after reading more)

i don't think this issue should be fixed -- tests should require config.json in order to run.

from bugbot.

sylvestre avatar sylvestre commented on July 30, 2024

I think that anoopvalluthadam@caf54aa implemented the change and I am happy with it.

from bugbot.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.