1. 29 Sep, 2021 1 commit
  2. 17 Sep, 2021 1 commit
  3. 09 Jun, 2021 1 commit
    • Dan Smith's avatar
      Add a test fixture · caa75c1b
      Dan Smith authored
      This adds a fixture that can be used by consuming projects to
      simulate a set of limits in keystone, without requiring actual
      keystone. Currently, consumers have to mock oslo.limit internals (at
      least) in order to do testing.
      
      Change-Id: If72050e90ca8b03e26d128c7bbcef6bbea92b501
      caa75c1b
  4. 07 Jun, 2021 1 commit
    • Dan Smith's avatar
      Add Enforcer.calculate_usage() · 1175b0f7
      Dan Smith authored
      In multiple situations, it is necessary to be able to probe the limits
      set for a project without actually enforcing. Examples:
      
      1. Exposing a usage API where we want to not only report the current
         usage, but the limit as well. Otherwise clients have to do their
         own calls to keystone and correlation to get a single integer
         limit value, which we should be able to expose for them.
      2. When checking quota as part of a long-running process of consuming
         an unbounded data stream, we need to be able to determine how much
         quota remains so that we can stop the transfer if we exceed the
         limit. Without this, we have to periodically call to keystone
         during the transfer, which is expensive and could fail.
      
      This patch adds a calculate_usage() method to the Enforcer which
      calculates the usage using the enforcement model and returns a
      mapping of resource names to namedtuples that contain limit and usage
      information.
      
      Change-Id: Ic0632cc5ec52aefb85a04f879651963bfa54dcbe
      1175b0f7
  5. 18 May, 2021 1 commit
  6. 16 Apr, 2021 3 commits
  7. 15 Apr, 2021 2 commits
  8. 23 Mar, 2021 1 commit
  9. 14 Jan, 2021 1 commit
  10. 03 Jan, 2021 1 commit
  11. 02 Dec, 2020 1 commit
    • likui's avatar
      add py38 matedata · e4583b63
      likui authored
      Change-Id: I86ffd71d9c5cdda410d654fe9b0bb46ad12eeb05
      e4583b63
  12. 03 Nov, 2020 1 commit
  13. 16 Oct, 2020 1 commit
    • zhoulinhui's avatar
      Fix hacking min version to 3.0.1 · 592a0d09
      zhoulinhui authored
      flake8 new release 3.8.0 added new checks and gate pep8
      job start failing. hacking 3.0.1 fix the pinning of flake8 to
      avoid bringing in a new version with new checks.
      
      Though it is fixed in latest hacking but 2.0 and 3.0 has cap for
      flake8 as <4.0.0 which mean flake8 new version 3.9.0 can also
      break the pep8 job if new check are added.
      
      To avoid similar gate break in future, we need to bump the hacking min
      version.
      
      - http://lists.openstack.org/pipermail/openstack-discuss/2020-May/014828.html
      
      Change-Id: I70ca30dd0a5bf0f1aa44f627d92038c826b67174
      592a0d09
  14. 23 Sep, 2020 1 commit
    • maaoyu's avatar
      Remove install unnecessary packages · 9558a46c
      maaoyu authored
      The docs requirements migrated to doc/requirements.txt
      we need not install things from requirements.txt.
      
      Change-Id: Ia65109bbb683489ba9a880d3a41baca5ef560d77
      9558a46c
  15. 22 Sep, 2020 1 commit
  16. 11 Sep, 2020 2 commits
  17. 08 Sep, 2020 1 commit
    • Hervé Beraud's avatar
      Adding pre-commit · 00b48751
      Hervé Beraud authored
      Introduced changes:
      - pre-commit config and rules.
      - Add pre-commit to pep8 gate, Flake8 is covered in the pre-commit hooks.
      - Applying fixes for pre-commit compliance in all code.
      
      Also commit hash will be used instead of version tags in pre-commit to
      prevend arbitrary code from running in developer's machines.
      
      pre-commit will be used to:
      - trailing whitespace;
      - Replaces or checks mixed line ending (mixed-line-ending);
      - Forbid files which have a UTF-8 byte-order marker
        (check-byte-order-marker);
      - Checks that non-binary executables have a proper
        shebang (check-executables-have-shebangs);
      - Check for files that contain merge conflict strings
        (check-merge-conflict);
      - Check for debugger imports and py37+ breakpoint()
        calls in python source (debug-statements);
      - Attempts to load all yaml files to verify syntax (check-yaml);
      - Run flake8 checks (flake8) (local)
      
      For further details about tests please refer to:
      https://github.com/pre-commit/pre-commit-hooks
      
      
      
      Change-Id: Ic00da1340d695c7a109f41a09929b654baf995a7
      Signed-off-by: default avatarMoisés Guimarães de Medeiros <moguimar@redhat.com>
      00b48751
  18. 24 Jul, 2020 1 commit
  19. 20 Jul, 2020 1 commit
  20. 22 Jun, 2020 1 commit
  21. 05 Jun, 2020 1 commit
  22. 03 Jun, 2020 1 commit
  23. 01 Jun, 2020 2 commits
  24. 26 May, 2020 2 commits
  25. 21 May, 2020 1 commit
    • Andreas Jaeger's avatar
      Switch to newer openstackdocstheme and reno versions · 16f90983
      Andreas Jaeger authored
      Switch to openstackdocstheme 2.2.1 and reno 3.1.0 versions. Using
      these versions will allow especially:
      * Linking from HTML to PDF document
      * Allow parallel building of documents
      * Fix some rendering problems
      
      Update Sphinx version as well.
      
      Remove doc requirments from lower-constraints, they are not used for
      install. Remove also hacking, the version is ancient and not needed
      there either.
      
      openstackdocstheme renames some variables, so follow the renames. A
      couple of variables are also not needed anymore, remove them.
      
      Set openstackdocs_auto_name to use project as name.
      
      Change pygments_style to 'native' since old theme version always used
      'native' and the theme now respects the setting and using 'sphinx' can
      lead to some strange rendering.
      
      See also
      http://lists.openstack.org/pipermail/openstack-discuss/2020-May/014971.html
      
      Change-Id: I5ec9dda8582f55fc0b287c422d5c43ad2e23b9b8
      16f90983
  26. 15 May, 2020 2 commits
  27. 04 May, 2020 1 commit
  28. 16 Apr, 2020 1 commit
  29. 14 Apr, 2020 2 commits
  30. 30 Mar, 2020 1 commit
  31. 27 Mar, 2020 1 commit
    • Andreas Jaeger's avatar
      Update hacking for Python3 · 009fd6c7
      Andreas Jaeger authored
      The repo is Python 3 now, so update hacking to version 2.0 which
      supports Python 3.
      
      Blacklist: W504 line break after binary operator
      
      Change-Id: I7ca780a2cff32031c562482b804888e5d49712c1
      009fd6c7
  32. 17 Mar, 2020 1 commit