David Arnold
b29d3a11b2
testing: rename defaults to common options
...
They are technically no defaults and competing declarations cause a
module error
2021-05-31 22:36:11 -05:00
David Arnold
557cc48a0a
style: simplify example & tests top level invokation
2021-05-31 22:35:41 -05:00
David Arnold
0c99276b50
fix: test kubernetes manifest
...
nix-repl> test-nginx = g.config.testing.testsByName.nginx-deployment.evaled.config.kubernetes.resources.deployments.nginx
nix-repl> test-nginx.spec.template.spec.containers.nginx.image
"nginx:dy4y4j45arjj9sgyjb90sv035sxglpv8"
vs
nix-repl> nginx = g.config.kubernetes.resources.deployments.nginx
nix-repl> nginx.spec.template.spec.containers.nginx.image
"docker.io/gatehub/nginx:dy4y4j45arjj9sgyjb90sv035sxglpv8"
2021-05-31 21:46:13 -05:00
David Arnold
39badb2084
fixup tests
2021-05-31 21:14:39 -05:00
David Arnold
e575c23570
rm: fix nixosPath
...
nixosPath would get reified in the nix store as /nix/store/<hash>-nixos
which breakes any referenced from within ./nixpkgs/nixos to ../lib or
../pkgs
2021-05-31 17:25:06 -05:00
David Arnold
ee9b4adfc8
ref: non-flake compatibility
...
since this is purely a legacy concern (both default.nix and shell.nix),
we avoid to include the flake-compat as a flake input.
(even though unused inputs are lazily fetched - for style & clarity)
2021-05-31 17:25:05 -05:00
David Arnold
7b057d8c0f
adapt remaining tests to kubetest
2021-05-13 22:58:11 -04:00
David Arnold
70d249aaff
move past legacy compat
2021-05-13 19:45:26 -04:00
David Arnold
db6d83c61e
fmt
2021-05-13 17:33:58 -04:00
David Arnold
1bd3fe4d4e
fixups
2021-05-06 16:07:24 -04:00
Jaka Hudoklin
bbc5e3d477
WIP: test refactoring
2021-05-05 22:49:54 -04:00
David Arnold
8ad3b90a52
deactivate legacy + flaky tests
2021-05-05 22:33:09 -04:00
David Arnold
9759a318f5
expose cluster & fix flaky test image
2021-05-05 22:33:08 -04:00
David Arnold
be58b0e94e
fix helm test
2021-04-29 16:25:04 -05:00
David Arnold
1cc28e4602
bump: k8s version
2021-04-29 16:23:20 -05:00
David Arnold
52c6472e90
fix tests
2021-04-28 19:25:09 -05:00
Xavier Zwirtz
cdddbc3f7d
Added k3s test
2021-04-28 14:28:44 -05:00
David Arnold
7a93fdce23
fix test executability
2021-04-28 13:43:24 -05:00
Jaka Hudoklin
611059a329
fix(tests): fix helm tests
2020-04-04 19:22:57 +07:00
Jaka Hudoklin
b2c91dfa4b
fix tests, do not test k8s 1.8 to 1.10 anymore
2020-04-04 18:44:43 +07:00
Jaka Hudoklin
acd93f0748
fix tests and examples
2020-01-14 19:13:44 +00:00
Jaka Hudoklin
23331edff5
feat(legacy): improve tests for crd
2020-01-14 14:53:42 +00:00
Adrian Gierakowski
578a52fb23
fix crontabs -> cronTabs in tests/k8s/crd.nix
...
must have been missed in recent refactor (086780088c )
2019-11-16 18:09:29 +00:00
Jaka Hudoklin
26d0351eb8
feat(legacy): improve CRD support
2019-10-21 13:47:21 +02:00
Jaka Hudoklin
29b1140178
feat(legacy): improve legacy support, add more tests
2019-10-21 12:51:46 +02:00
Jaka Hudoklin
086780088c
feat(k8s): allow to define customTypes from CRDs
2019-10-20 13:48:48 +02:00
Jaka Hudoklin
baea3cc3b3
feat(submodules): allow to match defaults by module version
2019-10-12 15:22:38 +02:00
Jaka Hudoklin
28d2b4baac
fix tests
2019-10-10 13:28:48 +02:00
Jaka Hudoklin
e9dbb01005
feat(submodules): add test for submodule passthru
2019-10-10 13:01:19 +02:00
Jaka Hudoklin
9ca9c44c92
feat(submodules): add support for submodule exports
2019-10-10 13:00:52 +02:00
Jaka Hudoklin
9f05cd56b1
feat(legacy): refactor legacy kubenix support
2019-10-06 21:43:57 +02:00
Jaka Hudoklin
a8dcc69d54
feat(submodules): support for submodule passthru
2019-10-06 21:43:53 +02:00
Jaka Hudoklin
ff59c7d905
feat: initial back compatibility for kubenix 1.0
2019-09-27 18:29:54 +02:00
Jaka Hudoklin
2f3669a961
fix(tests): new resource naming
2019-09-27 18:29:00 +02:00
Jaka Hudoklin
3d149d6101
feat(k8s): improvements
...
- format k8s generated files with nixfmt
- improve k8s module true and mount resources at `kubernetes.api.resources`
- create alias `kubernetes.resources` to `kubernetes.api.resources`
- rename from `kubernetes.api.resources` to `kubernetes.api.types`
- rename from `kubernetes.customResources` to `kubernetes.customTypes`
2019-09-25 01:03:01 +02:00
Jaka Hudoklin
ed22d9c047
fix(tests/helm/simple): fix test
2019-05-05 16:15:21 +02:00
Jaka Hudoklin
7e7eb19e94
improve testing
2019-05-05 11:55:19 +02:00
Jaka Hudoklin
e4493addd8
pass nixos path explicitly
2019-05-03 23:37:20 +02:00
Jaka Hudoklin
5e29229879
feat(k8s): support for yaml/json imports
2019-04-05 20:27:47 +02:00
Jaka Hudoklin
0c5e0d3a10
fix(tests/submodules): use submodule.args instead of args directly
2019-03-20 20:59:17 +01:00
Jaka Hudoklin
bc344c7992
feat(testing): set default kubenix.project to test name
2019-03-12 21:02:04 +01:00
Jaka Hudoklin
6183fcc190
Refactor:
...
- Support for module features
- Remove kubenix.module and rather use explicit modules
- Make tests framework independent of k8s module
- Remove metacontroller submodule, which will go to kubenix-modules
- Improved submodule propagation and passthru
- Added additional test for k8s-submodule
2019-03-12 20:48:19 +01:00
Jaka Hudoklin
2d0121bcdf
fix(tests/module): fix broken test
2019-03-11 20:51:57 +01:00
Jaka Hudoklin
ae8b5f9667
feat(tests/k8s/deployment): use docker module
2019-03-11 20:51:43 +01:00
Jaka Hudoklin
4b96377e42
feat: initial work on metacontroller
2019-03-08 23:26:41 +01:00
Jaka Hudoklin
987c6e4173
feat: improve testing
2019-03-08 00:40:58 +01:00
Jaka Hudoklin
eac2d78667
feat: refactor file structure module interfaces and other
2019-03-07 23:23:07 +01:00
Jaka Hudoklin
5d8b66f8a0
feat: interface and lib refactoring
2019-03-07 18:02:26 +01:00
Jaka Hudoklin
e260ad9bb4
feat: rename kubenix.all to kubenix.module
2019-03-07 11:41:43 +01:00
Jaka Hudoklin
a6cea15f34
feat(modules/docker): improvements
2019-03-05 22:08:26 +01:00