This commit is contained in:
embed@git.macaw.me 2024-01-06 01:38:28 +00:00
commit b50fd16591
197 changed files with 41663 additions and 0 deletions

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,40 @@
{
"ANSIBLE_MODULE_ARGS": {
"screenshot_when": [
"end",
"error"
],
"webdriver_log": "/tmp/test_ipleak.net_firefox_geckodriver.log",
"screenshot": true,
"title": "IP/DNS Detect - What is your IP, what is your DNS, what informations you send to websites",
"url": "https://ipv4.ipleak.net/",
"webdriver_executable": "/usr/bin/geckodriver",
"validate_cert": true,
"browser_log": "/tmp/test_ipleak.net_firefox_geckodriver.log",
"screenshot_path": "/tmp",
"steps": [
{
"assert": [
{
"text": "IPv4",
"type": "find_element_by_link_text"
}
],
"wait_for": {
"text": "IPv4",
"type": "LINK_TEXT",
"method": "presence_of_element_located"
},
"name": "IPv4",
"click": {
"text": "IPv4",
"type": "find_element_by_link_text"
}
}
],
"screenshot_prefix": "test_ipleak.net_firefox_",
"screenshot_type": "file",
"browser_executable": "/usr/bin/firefox",
"browser": "firefox"
}
}

View file

@ -0,0 +1,32 @@
# -*- mode: yaml; indent-tabs-mode: nil; tab-width: 2; coding: utf-8-unix -*-
---
# selenium_test:
ANSIBLE_MODULE_ARGS:
url: "https://ipv4.ipleak.net/"
title: "IP/DNS Detect - What is your IP, what is your DNS, what informations you send to websites"
browser: "firefox"
browser_log: "/tmp/test_ipleak.net_firefox_geckodriver.log"
# must run webdriver.xpi
browser_executable: "/usr/bin/firefox"
webdriver_log: "/tmp/test_ipleak.net_firefox_geckodriver.log"
webdriver_executable: "/usr/bin/geckodriver"
screenshot: true
screenshot_prefix: test_ipleak.net_firefox_
screenshot_when: ['end', 'error']
screenshot_type: file
screenshot_path: /tmp
validate_cert: true
steps:
- name: IPv4
click:
type: 'find_element_by_link_text'
text: 'IPv4'
wait_for:
method: 'presence_of_element_located'
type: 'LINK_TEXT'
text: 'IPv4'
assert:
- type: 'find_element_by_link_text'
text: 'IPv4'

View file

@ -0,0 +1,40 @@
{
"ANSIBLE_MODULE_ARGS": {
"screenshot_when": [
"end",
"error"
],
"webdriver_log": "/tmp/test_ipleak.net_phantomjs_ghostdriver.log",
"screenshot": true,
"title": "IP/DNS Detect - What is your IP, what is your DNS, what informations you send to websites",
"url": "https://ipv4.ipleak.net/",
"webdriver_executable": "/usr/bin/ghostdriver",
"validate_cert": true,
"browser_log": "/tmp/test_ipleak.net_phantomjs_ghostdriver.log",
"screenshot_path": "/tmp",
"steps": [
{
"assert": [
{
"text": "IPv4",
"type": "find_element_by_link_text"
}
],
"wait_for": {
"text": "IPv4",
"type": "LINK_TEXT",
"method": "presence_of_element_located"
},
"name": "IPv4",
"click": {
"text": "IPv4",
"type": "find_element_by_link_text"
}
}
],
"screenshot_prefix": "test_ipleak.net_phantomjs_",
"screenshot_type": "file",
"browser_executable": "/usr/bin/phantomjs",
"browser": "phantomjs"
}
}

View file

@ -0,0 +1,32 @@
# -*- mode: yaml; indent-tabs-mode: nil; tab-width: 2; coding: utf-8-unix -*-
---
# selenium_test:
ANSIBLE_MODULE_ARGS:
url: "https://ipv4.ipleak.net/"
title: "IP/DNS Detect - What is your IP, what is your DNS, what informations you send to websites"
browser: "phantomjs"
browser_log: "/tmp/phantomjs-ipleak.net.log"
# must run webdriver.xpi
browser_executable: "/var/local/bin/phantomjs.bash"
webdriver_log: "/tmp/ghostdriver-ipleak.net.log"
# webdriver_executable: "/var/local/bin/ghostdriver.bash"
screenshot: true
screenshot_prefix: "privacy_ipleak.net_phantomjs_"
screenshot_when: ['end', 'error']
screenshot_type: file
screenshot_path: /tmp
validate_cert: true
steps:
- name: IPv4
click:
type: 'find_element_by_link_text'
text: 'IPv4'
wait_for:
method: 'presence_of_element_located'
type: 'LINK_TEXT'
text: 'IPv4'
assert:
- type: 'find_element_by_link_text'
text: 'IPv4'

View file

@ -0,0 +1,32 @@
# -*- mode: yaml; indent-tabs-mode: nil; tab-width: 2; coding: utf-8-unix -*-
---
# selenium_test:
ANSIBLE_MODULE_ARGS:
url: "https://ipv4.ipleak.net/"
title: "IP/DNS Detect - What is your IP, what is your DNS, what informations you send to websites"
browser: "firefox"
browser_log: "/tmp/waterfox-ipleak.net.log"
# must run webdriver.xpi
browser_executable: "/var/local/bin/waterfox-classic.bash"
webdriver_log: "/tmp/geckodriver-ipleak.net.log"
webdriver_executable: "/var/local/bin/geckodriver.bash"
screenshot: true
screenshot_prefix: test_ipleak.net_waterfox_
screenshot_when: ['end', 'error']
screenshot_type: file
screenshot_path: /tmp
validate_cert: true
steps:
- name: IPv4
click:
type: 'find_element_by_link_text'
text: 'IPv4'
wait_for:
method: 'presence_of_element_located'
type: 'LINK_TEXT'
text: 'IPv4'
assert:
- type: 'find_element_by_link_text'
text: 'IPv4'

View file

@ -0,0 +1,51 @@
{
"ANSIBLE_MODULE_ARGS": {
"screenshot_when": [
"end",
"error"
],
"webdriver_log": "/tmp/geckodriver-polipo.log",
"screenshot": true,
"url": "http://localhost:3128/",
"webdriver_executable": "geckodriver",
"validate_cert": false,
"browser_log": "/tmp/firefox-polipo.log",
"screenshot_path": "/tmp",
"steps": [
{
"name": "The Polipo Manual!",
"click": {
"text": "The Polipo manual",
"type": "find_element_by_link_text"
}
},
{
"wait_for": {
"text": "Variable index",
"type": "LINK_TEXT",
"method": "presence_of_element_located"
}
},
{
"assert": [
{
"text": "1 Background",
"type": "find_element_by_link_text"
},
{
"text": "2 Running Polipo",
"type": "find_element_by_link_text"
},
{
"text": "3 Polipo and the network",
"type": "find_element_by_link_text"
}
]
}
],
"screenshot_prefix": "privacy_polipo_firefox_",
"screenshot_type": "file",
"browser_executable": "firefox",
"browser": "firefox"
}
}

View file

@ -0,0 +1,39 @@
# -*- mode: yaml; indent-tabs-mode: nil; tab-width: 2; coding: utf-8-unix -*-
---
# selenium_test:
ANSIBLE_MODULE_ARGS:
url: "http://localhost:3128/"
browser: firefox
browser_log: "/tmp/firefox-polipo.log"
browser_executable: "firefox"
webdriver_executable: "geckodriver"
webdriver_log: "/tmp/geckodriver-polipo.log"
# not found
# title: "Welcome to Polipo!"
screenshot: true
screenshot_prefix: privacy_polipo_firefox_
screenshot_when: ['end', 'error']
screenshot_type: file
screenshot_path: /tmp
validate_cert: false
steps:
- name: The Polipo Manual!
click:
type: 'find_element_by_link_text'
text: 'The Polipo manual'
- wait_for:
method: 'presence_of_element_located'
type: 'LINK_TEXT'
text: 'Variable index'
- assert:
- type: 'find_element_by_link_text'
text: '1 Background'
- type: 'find_element_by_link_text'
text: '2 Running Polipo'
- type: 'find_element_by_link_text'
text: '3 Polipo and the network'

View file

@ -0,0 +1,51 @@
{
"ANSIBLE_MODULE_ARGS": {
"screenshot_when": [
"end",
"error"
],
"webdriver_log": "/tmp/ghostdriver-polipo.log",
"screenshot": true,
"url": "http://localhost:3128/",
"webdriver_executable": "ghostdriver",
"validate_cert": false,
"browser_log": "/tmp/phantomjs-polipo.log",
"screenshot_path": "/tmp",
"steps": [
{
"name": "The Polipo Manual!",
"click": {
"text": "The Polipo manual",
"type": "find_element_by_link_text"
}
},
{
"wait_for": {
"text": "Variable index",
"type": "LINK_TEXT",
"method": "presence_of_element_located"
}
},
{
"assert": [
{
"text": "1 Background",
"type": "find_element_by_link_text"
},
{
"text": "2 Running Polipo",
"type": "find_element_by_link_text"
},
{
"text": "3 Polipo and the network",
"type": "find_element_by_link_text"
}
]
}
],
"screenshot_prefix": "privacy_polipo_phantomjs_",
"screenshot_type": "file",
"browser_executable": "phantomjs",
"browser": "phantomjs"
}
}

View file

@ -0,0 +1,38 @@
# -*- mode: yaml; indent-tabs-mode: nil; tab-width: 2; coding: utf-8-unix -*-
---
# selenium_test:
ANSIBLE_MODULE_ARGS:
url: "http://localhost:3128/"
# not found
# title: "Welcome to Polipo!"
browser: phantomjs
browser_log: "/tmp/phantomjs-polipo.log"
browser_executable: "var/local/bin/phantomjs.bash"
webdriver_log: "/tmp/ghostdriver-polipo.log"
screenshot: true
screenshot_prefix: privacy_polipo_phantomjs_
screenshot_when: ['end', 'error']
screenshot_type: file
screenshot_path: /tmp
validate_cert: false
steps:
- name: The Polipo Manual!
click:
type: 'find_element_by_link_text'
text: 'The Polipo manual'
- wait_for:
method: 'presence_of_element_located'
type: 'LINK_TEXT'
text: 'Variable index'
- assert:
- type: 'find_element_by_link_text'
text: '1 Background'
- type: 'find_element_by_link_text'
text: '2 Running Polipo'
- type: 'find_element_by_link_text'
text: '3 Polipo and the network'

View file

@ -0,0 +1,82 @@
{
"ANSIBLE_MODULE_ARGS": {
"screenshot_when": [
"start",
"end",
"error"
],
"webdriver_log": "/tmp/geckodriver-python.org.log",
"screenshot": true,
"title": "Python",
"url": "https://www.python.org",
"validate_cert": true,
"browser_log": "/tmp/firefox-python.org.log",
"screenshot_path": "/tmp",
"steps": [
{
"keys": {
"text": "garbage",
"type": "find_element_by_id",
"value": "id-search-field",
"key": "RETURN"
},
"wait_for": {
"text": "Python 2.0",
"type": "LINK_TEXT",
"method": "presence_of_element_located"
},
"name": "Login"
},
{
"wait_for": {
"text": "Conferences and Workshops",
"type": "LINK_TEXT",
"method": "presence_of_element_located"
},
"name": "About",
"click": {
"text": "About",
"type": "find_element_by_link_text"
}
},
{
"wait_for": {
"text": "Download Python 3.5.2",
"type": "LINK_TEXT",
"method": "presence_of_element_located"
},
"name": "Downloads",
"click": {
"text": "Downloads",
"type": "find_element_by_link_text"
}
},
{
"assert": [
{
"text": "Python 3.x Docs",
"type": "find_element_by_link_text"
},
{
"text": "Python 2.x Docs",
"type": "find_element_by_link_text"
}
],
"wait_for": {
"text": "Python 3.x Docs",
"type": "LINK_TEXT",
"method": "presence_of_element_located"
},
"name": "Documentation",
"click": {
"text": "Documentation",
"type": "find_element_by_link_text"
}
}
],
"screenshot_prefix": "test_python.org_firefox_",
"screenshot_type": "file",
"browser_executable": "/usr/bin/firefox",
"browser": "firefox"
}
}

View file

@ -0,0 +1,67 @@
# -*- mode: yaml; indent-tabs-mode: nil; tab-width: 2; coding: utf-8-unix -*-
---
#- hosts: localhost
# connection: local
# gather_facts: false
#
# tasks:
# - name: Debug
# debug: var=inventory_hostname
#
# - name: selenium
# selenium_test:
ANSIBLE_MODULE_ARGS:
url: https://www.python.org
title: Python
browser: firefox
browser_log: "/tmp/firefox-python.org.log"
browser_executable: "/usr/bin/firefox"
webdriver_log: "/tmp/geckodriver-python.org.log"
screenshot: true
screenshot_prefix: test_python.org_firefox_
screenshot_type: file
screenshot_path: /tmp
screenshot_when: ['start', 'end', 'error']
validate_cert: true
steps:
- name: Login
keys:
type: 'find_element_by_id'
value: 'id-search-field'
text: 'garbage'
key: 'RETURN'
wait_for:
method: 'presence_of_element_located'
type: 'LINK_TEXT'
text: 'Python 2.0'
- name: About
click:
type: 'find_element_by_link_text'
text: 'About'
wait_for:
method: 'presence_of_element_located'
type: 'LINK_TEXT'
text: 'Conferences and Workshops'
- name: Downloads
click:
type: 'find_element_by_link_text'
text: 'Downloads'
wait_for:
method: 'presence_of_element_located'
type: 'LINK_TEXT'
text: 'Download Python 3.5.2'
- name: Documentation
click:
type: 'find_element_by_link_text'
text: 'Documentation'
wait_for:
method: 'presence_of_element_located'
type: 'LINK_TEXT'
text: 'Python 3.x Docs'
assert:
- type: 'find_element_by_link_text'
text: 'Python 3.x Docs'
- type: 'find_element_by_link_text'
text: 'Python 2.x Docs'

View file

@ -0,0 +1,82 @@
{
"ANSIBLE_MODULE_ARGS": {
"screenshot_when": [
"start",
"end",
"error"
],
"webdriver_log": "/tmp/ghostdriver-python.org.log",
"screenshot": true,
"title": "Python",
"url": "https://www.python.org",
"validate_cert": true,
"browser_log": "/tmp/phantomjs-python.org.log",
"screenshot_path": "/tmp",
"steps": [
{
"keys": {
"text": "garbage",
"type": "find_element_by_id",
"value": "id-search-field",
"key": "RETURN"
},
"wait_for": {
"text": "Python 2.0",
"type": "LINK_TEXT",
"method": "presence_of_element_located"
},
"name": "Login"
},
{
"wait_for": {
"text": "Conferences and Workshops",
"type": "LINK_TEXT",
"method": "presence_of_element_located"
},
"name": "About",
"click": {
"text": "About",
"type": "find_element_by_link_text"
}
},
{
"wait_for": {
"text": "Download Python 3.5.2",
"type": "LINK_TEXT",
"method": "presence_of_element_located"
},
"name": "Downloads",
"click": {
"text": "Downloads",
"type": "find_element_by_link_text"
}
},
{
"assert": [
{
"text": "Python 3.x Docs",
"type": "find_element_by_link_text"
},
{
"text": "Python 2.x Docs",
"type": "find_element_by_link_text"
}
],
"wait_for": {
"text": "Python 3.x Docs",
"type": "LINK_TEXT",
"method": "presence_of_element_located"
},
"name": "Documentation",
"click": {
"text": "Documentation",
"type": "find_element_by_link_text"
}
}
],
"screenshot_prefix": "test_python.org_phantomjs_",
"screenshot_type": "file",
"browser_executable": "/usr/bin/phantomjs",
"browser": "phantomjs"
}
}

View file

@ -0,0 +1,67 @@
# -*- mode: yaml; indent-tabs-mode: nil; tab-width: 2; coding: utf-8-unix -*-
---
#- hosts: localhost
# connection: local
# gather_facts: false
#
# tasks:
# - name: Debug
# debug: var=inventory_hostname
#
# - name: selenium
# selenium_test:
ANSIBLE_MODULE_ARGS:
url: https://www.python.org
title: Python
browser: phantomjs
browser_log: "/tmp/phantomjs-python.org.log"
browser_executable: "var/local/bin/phantomjs.bash"
webdriver_log: "/tmp/ghostdriver-python.org.log"
screenshot: true
screenshot_prefix: test_python.org_phantomjs_
screenshot_type: file
screenshot_path: /tmp
screenshot_when: ['start', 'end', 'error']
validate_cert: true
steps:
- name: Login
keys:
type: 'find_element_by_id'
value: 'id-search-field'
text: 'garbage'
key: 'RETURN'
wait_for:
method: 'presence_of_element_located'
type: 'LINK_TEXT'
text: 'Python 2.0'
- name: About
click:
type: 'find_element_by_link_text'
text: 'About'
wait_for:
method: 'presence_of_element_located'
type: 'LINK_TEXT'
text: 'Conferences and Workshops'
- name: Downloads
click:
type: 'find_element_by_link_text'
text: 'Downloads'
wait_for:
method: 'presence_of_element_located'
type: 'LINK_TEXT'
text: 'Download Python 3.5.2'
- name: Documentation
click:
type: 'find_element_by_link_text'
text: 'Documentation'
wait_for:
method: 'presence_of_element_located'
type: 'LINK_TEXT'
text: 'Python 3.x Docs'
assert:
- type: 'find_element_by_link_text'
text: 'Python 3.x Docs'
- type: 'find_element_by_link_text'
text: 'Python 2.x Docs'