Comments (3)
Hi @Proplex. Absolutely happy to see things separated. I'd kept everything private while I got the CLI interface working. But definitely interested in better package layout and building up a public interface. @jpreese did some initial work in #30. Pinging him so as to avoid any overlap.
from conftest.
@Proplex yes, this would be the way that I would approach it.
The intent of my initial PR was just to split up the commands into their own files/packages so that we could iterate on them afterwards. Doing everything in a single PR would've made the one I had even bigger than it already was.
I would also expect the TestFunction to take in a Reader, and have the NewTestCommand() pass it in. Then for testing, we can just call TestFunction with our own reader without having to rely on the real file system.
from conftest.
@garethr to keep the backlog of issues tidy, I feel we can consider this an answered question and close.
As we introduce new features and continue to work on the project, we should strive to make the commands testable.
from conftest.
Related Issues (20)
- Vulnerability scan failure on 0.30.0 HOT 3
- Release 0.30.0 not present anymore HOT 8
- `conftest push` creates new images even without changes HOT 3
- [0.32.1] Cannot push new hashes to aws, gitlab, gcp registries HOT 7
- Publishing to gitlab container registry fails with v0.32.0 but succeeds with v0.31.0 HOT 6
- Deny by map value HOT 2
- Failure vs successes counts are inconsistent HOT 4
- Conftest Policy for Kubernetes manifests for checking that images come from a specific registry HOT 1
- Introduce time-based policy rules HOT 3
- Conftest doesn't exit with plugin exit code HOT 3
- Netlify: select a new build image HOT 11
- OPA bundles created by conftest push should include rule annotations HOT 2
- Conftest ignores NO_PROXY environment variable in v0.37 HOT 4
- Option to filter out `SUCCESS` policy evaluation results HOT 3
- Include test names for successful tests in verify command output HOT 4
- enable strict compilation rules in policies HOT 2
- conftest verify example fails HOT 5
- github output for Exceptions? HOT 3
- conftest verify with 'not' always fails HOT 2
- Provide a config-file flag to allow user to set conftest.toml outside of the default, working directory
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from conftest.