Compare commits
10 commits
master
...
fc39_tests
Author | SHA1 | Date | |
---|---|---|---|
|
c7f5af6957 | ||
|
5beed41288 | ||
|
6508965192 | ||
|
eeb3aade32 | ||
|
98239eff31 | ||
|
b0c0b5ee00 | ||
|
cbb6359e10 | ||
|
2eb513aef9 | ||
|
89fd883466 | ||
|
094d845e11 |
5 changed files with 16 additions and 9 deletions
|
@ -16,6 +16,7 @@
|
|||
- crowdsecurity.testing.pkg_config
|
||||
- crowdsecurity.testing.re2
|
||||
- crowdsecurity.testing.bats_requirements
|
||||
- crowdsecurity.testing.python
|
||||
|
||||
- name: "Install Postgres"
|
||||
hosts: all
|
||||
|
|
|
@ -14,7 +14,7 @@ collections:
|
|||
- name: ansible.posix
|
||||
- name: https://github.com/crowdsecurity/ansible-collection-crowdsecurity.testing.git
|
||||
type: git
|
||||
version: v0.0.5
|
||||
version: python
|
||||
|
||||
# - name: crowdsecurity.testing
|
||||
# source: ../../../crowdsecurity.testing
|
||||
|
|
10
test/ansible/vagrant/fedora-39/Vagrantfile
vendored
Normal file
10
test/ansible/vagrant/fedora-39/Vagrantfile
vendored
Normal file
|
@ -0,0 +1,10 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
Vagrant.configure('2') do |config|
|
||||
config.vm.box = "fedora/39-cloud-base"
|
||||
config.vm.provision "shell", inline: <<-SHELL
|
||||
SHELL
|
||||
end
|
||||
|
||||
common = '../common'
|
||||
load common if File.exist?(common)
|
|
@ -115,13 +115,9 @@ teardown() {
|
|||
assert_output "&false"
|
||||
|
||||
# complex type
|
||||
rune -0 cscli config show --key Config.PluginConfig
|
||||
assert_output - <<-EOT
|
||||
&csconfig.PluginCfg{
|
||||
User: "nobody",
|
||||
Group: "nogroup",
|
||||
}
|
||||
EOT
|
||||
rune -0 cscli config show -o json --key Config.PluginConfig
|
||||
assert_output --partial '"User": "nobody"'
|
||||
assert_output --regexp '"Group": "(nogroup|nobody)"'
|
||||
}
|
||||
|
||||
@test "cscli - required configuration paths" {
|
||||
|
|
|
@ -43,7 +43,7 @@ setup() {
|
|||
|
||||
config_set 'del(.api.server.online_client)'
|
||||
rune -1 cscli capi status
|
||||
assert_stderr --partial "no configuration for Central API (CAPI) in '$CONFIG_YAML'"
|
||||
assert_stderr --regexp "no configuration for Central API \(CAPI\) in '$(echo $CONFIG_YAML|sed s#//#/#g)'"
|
||||
}
|
||||
|
||||
@test "cscli capi status" {
|
||||
|
|
Loading…
Reference in a new issue