Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/trailofbits/algo
/ functions
Functions
215 in github.com/trailofbits/algo
⨍
Functions
215
◇
Types & classes
9
↓ 53 callers
Method
fail_json
(self, **kwargs)
tests/unit/test_wireguard_key_generation.py:83
↓ 22 callers
Method
exit_json
(self, **kwargs)
tests/unit/test_wireguard_key_generation.py:86
↓ 10 callers
Function
wait_to_complete_state_transition
(compute_api, server)
library/scaleway_compute.py:201
↓ 9 callers
Function
render_template
Render a Jinja2 template with given variables.
tests/unit/test_boolean_variables.py:10
↓ 8 callers
Function
load_template
Load a Jinja2 template from the roles/common/templates directory.
tests/unit/test_iptables_rules.py:15
↓ 7 callers
Function
fetch_state
(compute_api, server)
library/scaleway_compute.py:183
↓ 5 callers
Function
find
(compute_api, wished_server, per_page=1)
library/scaleway_compute.py:537
↓ 5 callers
Function
find_ansible_file
Find Ansible file from various possible locations
tests/unit/test_openssl_compatibility.py:533
↓ 5 callers
Function
find_generated_certificates
Find Ansible-generated certificate files in configs directory
tests/unit/test_openssl_compatibility.py:20
↓ 5 callers
Function
run_module
Main execution function for the x25519_pubkey Ansible module. Handles parameter validation, private key processing, public key derivation,
library/x25519_pubkey.py:32
↓ 5 callers
Method
test_yaml_validity
Test that the expected cloud-init YAML is valid.
tests/test_cloud_init_template.py:82
↓ 4 callers
Function
create_server
(compute_api, server)
library/scaleway_compute.py:247
↓ 4 callers
Function
generate_test_private_key
Generate a test private key using the same method as Algo
tests/unit/test_wireguard_key_generation.py:40
↓ 4 callers
Method
get_yaml_files
Get all YAML files in the Algo project, excluding external dependencies.
tests/unit/test_comprehensive_boolean_scan.py:45
↓ 4 callers
Function
server_attributes_should_be_changed
(compute_api, target_server, wished_server)
library/scaleway_compute.py:560
↓ 4 callers
Function
server_change_attributes
(compute_api, target_server, wished_server)
library/scaleway_compute.py:589
↓ 4 callers
Function
validate_jinja2_expression
Validate a single Jinja2 expression. Returns (is_valid, error_message)
tests/unit/test_yaml_jinja2_expressions.py:68
↓ 3 callers
Function
detect_double_templating
Detect double templating patterns in file content. Returns list of (line_number, problematic_line) tuples.
tests/unit/test_double_templating.py:36
↓ 3 callers
Function
get_github_api_data
Fetch data from GitHub API
scripts/track-test-effectiveness.py:14
↓ 3 callers
Function
get_test_variables
Get a comprehensive set of test variables for template rendering
tests/unit/test_template_rendering.py:42
↓ 3 callers
Function
load_test_variables
Load test variables from YAML fixture
tests/fixtures/__init__.py:8
↓ 3 callers
Function
perform_action
(compute_api, server, action)
library/scaleway_compute.py:294
↓ 2 callers
Function
check_inline_comments_in_expressions
Check for inline comments (#) within Jinja2 expressions. This is the error we just fixed in openssl.yml.
tests/validate_jinja2_templates.py:34
↓ 2 callers
Function
create_expected_cloud_init
Create the expected cloud-init content that should be generated by our template after the YAML indentation fix.
tests/test_cloud_init_template.py:28
↓ 2 callers
Function
derive_pubkey_from_same_key
()
tests/unit/test_wireguard_key_generation.py:279
↓ 2 callers
Function
get_strongswan_test_variables
Get test variables for StrongSwan templates with different scenarios.
tests/unit/test_strongswan_templates.py:50
↓ 2 callers
Function
restart_server
(compute_api, server)
library/scaleway_compute.py:282
↓ 2 callers
Function
stop_server
(compute_api, server)
library/scaleway_compute.py:286
↓ 2 callers
Function
validate_yaml_file
Validate all Jinja2 expressions in a YAML file. Returns (has_inline_comments, list_of_inline_comment_errors, list_of_other_errors)
tests/unit/test_yaml_jinja2_expressions.py:209
↓ 1 callers
Function
analyze_workflow_runs
Analyze workflow runs to find test failures
scripts/track-test-effectiveness.py:24
↓ 1 callers
Function
assign_floating_id_to_droplet
(module, rest)
library/digital_ocean_floating_ip.py:189
↓ 1 callers
Function
associate_floating_ips
(module, rest)
library/digital_ocean_floating_ip.py:211
↓ 1 callers
Function
build_client
Build a LinodeClient.
library/linode_stackscript_v4.py:63
↓ 1 callers
Function
build_client
Build a LinodeClient.
library/linode_v4.py:88
↓ 1 callers
Function
check_common_antipatterns
Check for common Jinja2 anti-patterns.
tests/validate_jinja2_templates.py:180
↓ 1 callers
Function
check_docker_available
Check if Docker is available
tests/unit/test_docker_localhost_deployment.py:12
↓ 1 callers
Function
check_image_id
(compute_api, image_id)
library/scaleway_compute.py:170
↓ 1 callers
Function
collection
(module)
library/gcp_compute_location_info.py:41
↓ 1 callers
Function
core
(module)
library/digital_ocean_floating_ip.py:147
↓ 1 callers
Function
core
(module)
library/scaleway_compute.py:620
↓ 1 callers
Function
correlate_with_issues
Correlate test failures with issues/PRs that fixed them
scripts/track-test-effectiveness.py:85
↓ 1 callers
Function
create_floating_ips
(module, rest)
library/digital_ocean_floating_ip.py:222
↓ 1 callers
Function
create_linode
Creates a Linode instance and handles return format.
library/linode_v4.py:23
↓ 1 callers
Function
create_stackscript
Creates a stackscript and handles return format.
library/linode_stackscript_v4.py:19
↓ 1 callers
Function
extract_failed_test
Extract test name from job - this is simplified
scripts/track-test-effectiveness.py:65
↓ 1 callers
Function
extract_jinja2_expressions
Extract all Jinja2 expressions from text content.
tests/unit/test_yaml_jinja2_expressions.py:32
↓ 1 callers
Function
extract_pr_number
Extract PR number from workflow run
scripts/track-test-effectiveness.py:78
↓ 1 callers
Function
fetch_list
(module, link, query)
library/gcp_compute_location_info.py:45
↓ 1 callers
Function
find_jinja2_templates
Find all Jinja2 template files in the project.
tests/validate_jinja2_templates.py:17
↓ 1 callers
Function
find_line_number
Find the line number for a given position in content.
tests/unit/test_yaml_jinja2_expressions.py:63
↓ 1 callers
Function
find_templates
Find all Jinja2 template files in the repo
tests/unit/test_template_rendering.py:48
↓ 1 callers
Function
find_yaml_files
Find all YAML files in the repository.
tests/unit/test_double_templating.py:17
↓ 1 callers
Function
find_yaml_files_with_jinja2
Find all YAML files that might contain Jinja2 expressions.
tests/unit/test_yaml_jinja2_expressions.py:15
↓ 1 callers
Function
generate_effectiveness_report
Generate test effectiveness report
scripts/track-test-effectiveness.py:111
↓ 1 callers
Function
get_floating_ip_details
(module, rest)
library/digital_ocean_floating_ip.py:174
↓ 1 callers
Function
get_test_variables
Get a comprehensive set of test variables for expression validation.
tests/unit/test_yaml_jinja2_expressions.py:161
↓ 1 callers
Function
initialise_module
Initialise the module parameter specification.
library/linode_stackscript_v4.py:42
↓ 1 callers
Function
initialise_module
Initialise the module parameter specification.
library/linode_v4.py:61
↓ 1 callers
Method
json
(self)
library/digital_ocean_floating_ip.py:118
↓ 1 callers
Function
main
Module entrypoint.
library/linode_stackscript_v4.py:68
↓ 1 callers
Function
main
()
library/digital_ocean_floating_ip.py:254
↓ 1 callers
Function
main
Entry point when module is executed directly.
library/x25519_pubkey.py:126
↓ 1 callers
Function
main
()
library/scaleway_compute.py:647
↓ 1 callers
Function
main
Module entrypoint.
library/linode_v4.py:93
↓ 1 callers
Function
main
()
library/lightsail_region_facts.py:72
↓ 1 callers
Function
main
()
library/gcp_compute_location_info.py:19
↓ 1 callers
Function
main
Main validation function.
tests/validate_jinja2_templates.py:210
↓ 1 callers
Function
main
()
tests/integration/mock_modules/command.py:9
↓ 1 callers
Function
main
()
tests/integration/mock_modules/apt.py:9
↓ 1 callers
Function
main
()
tests/integration/mock_modules/shell.py:9
↓ 1 callers
Function
maybe_instance_from_label
Try to retrieve an instance based on a label.
library/linode_v4.py:49
↓ 1 callers
Function
public_ip_payload
(compute_api, public_ip)
library/scaleway_compute.py:221
↓ 1 callers
Function
query_options
(filters)
library/gcp_compute_location_info.py:51
↓ 1 callers
Function
remove_server
(compute_api, server)
library/scaleway_compute.py:305
↓ 1 callers
Function
return_if_object
(module, response)
library/gcp_compute_location_info.py:69
↓ 1 callers
Function
run_tests
Run all tests manually (for non-pytest usage).
tests/test_cloud_init_template.py:229
↓ 1 callers
Function
save_metrics
Save metrics to JSON for historical tracking
scripts/track-test-effectiveness.py:161
↓ 1 callers
Function
stackscript_available
Try to retrieve a stackscript.
library/linode_stackscript_v4.py:28
↓ 1 callers
Function
start_server
(compute_api, server)
library/scaleway_compute.py:290
↓ 1 callers
Method
test_indentation_consistency
Test that sshd_config content has consistent indentation.
tests/test_cloud_init_template.py:192
↓ 1 callers
Function
test_no_double_templating
Test that no YAML files contain double templating patterns.
tests/unit/test_double_templating.py:70
↓ 1 callers
Function
test_openssl_version_detection
Test that we can detect OpenSSL version for compatibility checks
tests/unit/test_openssl_compatibility.py:43
↓ 1 callers
Method
test_required_sections
Test that all required cloud-init sections are present.
tests/test_cloud_init_template.py:97
↓ 1 callers
Method
test_runcmd_section
Test that runcmd section will restart SSH correctly.
tests/test_cloud_init_template.py:172
↓ 1 callers
Function
test_specific_known_issues
Test for specific known double-templating issues. This ensures our detection catches the actual bugs from issue #14835.
tests/unit/test_double_templating.py:104
↓ 1 callers
Method
test_ssh_configuration
Test that SSH configuration is correct.
tests/test_cloud_init_template.py:110
↓ 1 callers
Method
test_user_creation
Test that algo user will be created correctly.
tests/test_cloud_init_template.py:143
↓ 1 callers
Function
test_valid_patterns_not_flagged
Test that valid templating patterns are not flagged as errors.
tests/unit/test_double_templating.py:122
↓ 1 callers
Function
test_wireguard_tools_available
Test that WireGuard tools are available for validation
tests/unit/test_wireguard_key_generation.py:17
↓ 1 callers
Function
validate_ca_certificate_config
Validate CA certificate configuration in Ansible files (CI mode)
tests/unit/test_openssl_compatibility.py:114
↓ 1 callers
Function
validate_ca_certificate_real
Validate actual Ansible-generated CA certificate
tests/unit/test_openssl_compatibility.py:60
↓ 1 callers
Function
validate_certificate_chain_config
Validate certificate chain configuration in Ansible files (CI mode)
tests/unit/test_openssl_compatibility.py:492
↓ 1 callers
Function
validate_certificate_chain_real
Validate actual Ansible-generated certificate chain
tests/unit/test_openssl_compatibility.py:458
↓ 1 callers
Function
validate_client_certificates_config
Validate client certificate configuration in Ansible files (CI mode)
tests/unit/test_openssl_compatibility.py:324
↓ 1 callers
Function
validate_client_certificates_real
Validate actual Ansible-generated client certificates
tests/unit/test_openssl_compatibility.py:276
↓ 1 callers
Function
validate_pkcs12_files_config
Validate PKCS#12 file configuration in Ansible files (CI mode)
tests/unit/test_openssl_compatibility.py:422
↓ 1 callers
Function
validate_pkcs12_files_real
Validate actual Ansible-generated PKCS#12 files
tests/unit/test_openssl_compatibility.py:383
↓ 1 callers
Function
validate_server_certificates_config
Validate server certificate configuration in Ansible files (CI mode)
tests/unit/test_openssl_compatibility.py:221
↓ 1 callers
Function
validate_server_certificates_real
Validate actual Ansible-generated server certificates
tests/unit/test_openssl_compatibility.py:177
↓ 1 callers
Function
validate_template_syntax
Validate a single template for syntax errors. Returns (is_valid, list_of_errors)
tests/validate_jinja2_templates.py:120
next →
1–100 of 215, ranked by callers