Git Product home page Git Product logo

juju-secrets-operator's Introduction

secrets-test

Small demonstration of the unexpected beahvior observed when multiple changes (deletion) are applied on a multi-pack secret of a charm within the smae event context.

Description

Demonstration of the issue is visible in the correpsonding Integration Test.

NOTE: These tests are representing BROKEN behavior.

Running green means that the feature is still broken.

How to use

Pipelines are equipped to run both on Juju 3.1. edge and stable releases.

Whenever a new Juju 3.1. stable/edge release may be out, you just have to re-run the pipelines to verify if previous issues still may hold.

We suggest to keep already existing tests --making sure that already working behavior is preserved-- and extend them with demonstrations of freshly broken characteristics.

Pipelines

The demo is equipped with verbose pipelines, printing expected results vs. actual ones.

Furthermore, all juju debug-logs are also listed after each test run (in case curiousity about the details).

An example of how the demo can showing broken behavior, with a purposefully broken test:

for i in range(3):
    await helper_execute_action(ops_test, "set-secret", {"key": f"key{i}", "value": f"value{i}"})
await helper_execute_action(ops_test, "delete-secrets", {"keys": ["key{i}" for i in range(3)]})
secrets_data = await helper_execute_action(ops_test, "get-secrets")

[..<printout>..]

# ISSUE: This is NOT the intuitively expected behavior
assert secrets_data.get("secrets") == {"key2": "value2", "key3": "value3"}

Then, on the pipeline we'll see:

alt text

Alternatively of course it's also possible to show broken behavior with tests breaking, as "normal" :-)

juju-secrets-operator's People

Contributors

juditnovak avatar shayancanonical avatar

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.