Code Monkey home page Code Monkey logo

Comments (6)

gerasym avatar gerasym commented on July 20, 2024 2

Could anyone explain current expected dev flow? I can create src.rego and src_test.rego and run opa test src.rego src_test.rego to test it. But how can i test constraint template?

from gatekeeper-library.

maxsmythe avatar maxsmythe commented on July 20, 2024 1

That's a good question and one we've started working on answering!

The draft design for building a constraint template build/test workflow is here:

https://docs.google.com/document/d/1uQlkIBQcgNNyth8o9ufYaVSfUq_JLJGy9fcuW3VB7vU/edit

Definitely interested in feedback and help implementing :)

from gatekeeper-library.

maxsmythe avatar maxsmythe commented on July 20, 2024

This may be complicated by us not knowing where the library will actually live in the long term. Moving them out of this Repo would be harder if we rely on them for e2e tests.

from gatekeeper-library.

teq0 avatar teq0 commented on July 20, 2024

While they're here though it would be good to have confidence that they all work as expected. And presumably the tests could move with the library when it finds its new home, with a bit of refactoring.

from gatekeeper-library.

maxsmythe avatar maxsmythe commented on July 20, 2024

My concern is flakiness. Currently we are running into timeouts b/c presumably the VM Travis CI provides has low enough resources that it takes a while for initialization to happen. Higher #s of flaky tests => lower probability of a good run even with valid code.

I'd like to keep the e2e tests in the GK project focused on whether GK itself works. Unit tests should be sufficient for the library. Plus they'd have zero flakiness as they wouldn't rely on a live service.

In order to have unit tests, however, we need a unit test framework, which implies that the library repo has been implemented.

from gatekeeper-library.

stale avatar stale commented on July 20, 2024

This issue/PR has been automatically marked as stale because it has not had recent activity. It will be closed in 14 days if no further activity occurs. Thank you for your contributions.

from gatekeeper-library.

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.