Remove remaining examples of 1.1.1.1 (#70552)

* Remove remaining examples of 1.1.1.1

* Update ec2_group.py
This commit is contained in:
Mark Chappell 2020-07-14 17:19:59 +02:00 committed by GitHub
parent 1e02a201a6
commit 8d160b1881
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 14 additions and 14 deletions

View file

@ -9,8 +9,8 @@
interface_in: foo
interface_out: bar
proto: tcp
from_ip: 1.1.1.1
to_ip: 8.8.8.8
from_ip: 10.1.1.1
to_ip: 10.8.8.8
from_port: 1111
to_port: 2222
@ -20,7 +20,7 @@
route: yes
interface_in: foo
proto: tcp
from_ip: 1.1.1.1
from_ip: 10.1.1.1
from_port: 1111
- name: Route with interface out
@ -29,7 +29,7 @@
route: yes
interface_out: bar
proto: tcp
from_ip: 1.1.1.1
from_ip: 10.1.1.1
from_port: 1111
- name: Non-route with interface in
@ -37,7 +37,7 @@
rule: allow
interface_in: foo
proto: tcp
from_ip: 1.1.1.1
from_ip: 10.1.1.1
from_port: 3333
- name: Non-route with interface out
@ -45,7 +45,7 @@
rule: allow
interface_out: bar
proto: tcp
from_ip: 1.1.1.1
from_ip: 10.1.1.1
from_port: 4444
- name: Check result
@ -54,11 +54,11 @@
- assert:
that:
- '"8.8.8.8 2222/tcp on bar ALLOW FWD 1.1.1.1 1111/tcp on foo " in stdout'
- '"Anywhere ALLOW FWD 1.1.1.1 1111/tcp on foo " in stdout'
- '"Anywhere on bar ALLOW FWD 1.1.1.1 1111/tcp " in stdout'
- '"Anywhere on foo ALLOW 1.1.1.1 3333/tcp " in stdout'
- '"Anywhere ALLOW OUT 1.1.1.1 4444/tcp on bar " in stdout'
- '"10.8.8.8 2222/tcp on bar ALLOW FWD 10.1.1.1 1111/tcp on foo " in stdout'
- '"Anywhere ALLOW FWD 10.1.1.1 1111/tcp on foo " in stdout'
- '"Anywhere on bar ALLOW FWD 10.1.1.1 1111/tcp " in stdout'
- '"Anywhere on foo ALLOW 10.1.1.1 3333/tcp " in stdout'
- '"Anywhere ALLOW OUT 10.1.1.1 4444/tcp on bar " in stdout'
vars:
stdout: '{{ ufw_status.stdout_lines }}'
@ -68,9 +68,9 @@
interface_in: foo
interface_out: bar
proto: tcp
from_ip: 1.1.1.1
from_ip: 10.1.1.1
from_port: 1111
to_ip: 8.8.8.8
to_ip: 10.8.8.8
to_port: 2222
ignore_errors: yes
register: ufw_non_route_iface

View file

@ -194,7 +194,7 @@ class TestSELinux(ModuleTestCase):
mount_data = [
'/dev/disk1 / ext4 rw,seclabel,relatime,data=ordered 0 0\n',
'1.1.1.1:/path/to/nfs /some/path nfs ro 0 0\n',
'10.1.1.1:/path/to/nfs /some/path nfs ro 0 0\n',
'whatever /weird/random/fstype foos rw 0 0\n',
]