MCPcopy Index your code

hub / github.com/trailofbits/algo / functions

Functions215 in github.com/trailofbits/algo

↓ 53 callersMethodfail_json
(self, **kwargs)
tests/unit/test_wireguard_key_generation.py:83
↓ 22 callersMethodexit_json
(self, **kwargs)
tests/unit/test_wireguard_key_generation.py:86
↓ 10 callersFunctionwait_to_complete_state_transition
(compute_api, server)
library/scaleway_compute.py:201
↓ 9 callersFunctionrender_template
Render a Jinja2 template with given variables.
tests/unit/test_boolean_variables.py:10
↓ 8 callersFunctionload_template
Load a Jinja2 template from the roles/common/templates directory.
tests/unit/test_iptables_rules.py:15
↓ 7 callersFunctionfetch_state
(compute_api, server)
library/scaleway_compute.py:183
↓ 5 callersFunctionfind
(compute_api, wished_server, per_page=1)
library/scaleway_compute.py:537
↓ 5 callersFunctionfind_ansible_file
Find Ansible file from various possible locations
tests/unit/test_openssl_compatibility.py:533
↓ 5 callersFunctionfind_generated_certificates
Find Ansible-generated certificate files in configs directory
tests/unit/test_openssl_compatibility.py:20
↓ 5 callersFunctionrun_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 callersMethodtest_yaml_validity
Test that the expected cloud-init YAML is valid.
tests/test_cloud_init_template.py:82
↓ 4 callersFunctioncreate_server
(compute_api, server)
library/scaleway_compute.py:247
↓ 4 callersFunctiongenerate_test_private_key
Generate a test private key using the same method as Algo
tests/unit/test_wireguard_key_generation.py:40
↓ 4 callersMethodget_yaml_files
Get all YAML files in the Algo project, excluding external dependencies.
tests/unit/test_comprehensive_boolean_scan.py:45
↓ 4 callersFunctionserver_attributes_should_be_changed
(compute_api, target_server, wished_server)
library/scaleway_compute.py:560
↓ 4 callersFunctionserver_change_attributes
(compute_api, target_server, wished_server)
library/scaleway_compute.py:589
↓ 4 callersFunctionvalidate_jinja2_expression
Validate a single Jinja2 expression. Returns (is_valid, error_message)
tests/unit/test_yaml_jinja2_expressions.py:68
↓ 3 callersFunctiondetect_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 callersFunctionget_github_api_data
Fetch data from GitHub API
scripts/track-test-effectiveness.py:14
↓ 3 callersFunctionget_test_variables
Get a comprehensive set of test variables for template rendering
tests/unit/test_template_rendering.py:42
↓ 3 callersFunctionload_test_variables
Load test variables from YAML fixture
tests/fixtures/__init__.py:8
↓ 3 callersFunctionperform_action
(compute_api, server, action)
library/scaleway_compute.py:294
↓ 2 callersFunctioncheck_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 callersFunctioncreate_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 callersFunctionderive_pubkey_from_same_key
()
tests/unit/test_wireguard_key_generation.py:279
↓ 2 callersFunctionget_strongswan_test_variables
Get test variables for StrongSwan templates with different scenarios.
tests/unit/test_strongswan_templates.py:50
↓ 2 callersFunctionrestart_server
(compute_api, server)
library/scaleway_compute.py:282
↓ 2 callersFunctionstop_server
(compute_api, server)
library/scaleway_compute.py:286
↓ 2 callersFunctionvalidate_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 callersFunctionanalyze_workflow_runs
Analyze workflow runs to find test failures
scripts/track-test-effectiveness.py:24
↓ 1 callersFunctionassign_floating_id_to_droplet
(module, rest)
library/digital_ocean_floating_ip.py:189
↓ 1 callersFunctionassociate_floating_ips
(module, rest)
library/digital_ocean_floating_ip.py:211
↓ 1 callersFunctionbuild_client
Build a LinodeClient.
library/linode_stackscript_v4.py:63
↓ 1 callersFunctionbuild_client
Build a LinodeClient.
library/linode_v4.py:88
↓ 1 callersFunctioncheck_common_antipatterns
Check for common Jinja2 anti-patterns.
tests/validate_jinja2_templates.py:180
↓ 1 callersFunctioncheck_docker_available
Check if Docker is available
tests/unit/test_docker_localhost_deployment.py:12
↓ 1 callersFunctioncheck_image_id
(compute_api, image_id)
library/scaleway_compute.py:170
↓ 1 callersFunctioncollection
(module)
library/gcp_compute_location_info.py:41
↓ 1 callersFunctioncore
(module)
library/digital_ocean_floating_ip.py:147
↓ 1 callersFunctioncore
(module)
library/scaleway_compute.py:620
↓ 1 callersFunctioncorrelate_with_issues
Correlate test failures with issues/PRs that fixed them
scripts/track-test-effectiveness.py:85
↓ 1 callersFunctioncreate_floating_ips
(module, rest)
library/digital_ocean_floating_ip.py:222
↓ 1 callersFunctioncreate_linode
Creates a Linode instance and handles return format.
library/linode_v4.py:23
↓ 1 callersFunctioncreate_stackscript
Creates a stackscript and handles return format.
library/linode_stackscript_v4.py:19
↓ 1 callersFunctionextract_failed_test
Extract test name from job - this is simplified
scripts/track-test-effectiveness.py:65
↓ 1 callersFunctionextract_jinja2_expressions
Extract all Jinja2 expressions from text content.
tests/unit/test_yaml_jinja2_expressions.py:32
↓ 1 callersFunctionextract_pr_number
Extract PR number from workflow run
scripts/track-test-effectiveness.py:78
↓ 1 callersFunctionfetch_list
(module, link, query)
library/gcp_compute_location_info.py:45
↓ 1 callersFunctionfind_jinja2_templates
Find all Jinja2 template files in the project.
tests/validate_jinja2_templates.py:17
↓ 1 callersFunctionfind_line_number
Find the line number for a given position in content.
tests/unit/test_yaml_jinja2_expressions.py:63
↓ 1 callersFunctionfind_templates
Find all Jinja2 template files in the repo
tests/unit/test_template_rendering.py:48
↓ 1 callersFunctionfind_yaml_files
Find all YAML files in the repository.
tests/unit/test_double_templating.py:17
↓ 1 callersFunctionfind_yaml_files_with_jinja2
Find all YAML files that might contain Jinja2 expressions.
tests/unit/test_yaml_jinja2_expressions.py:15
↓ 1 callersFunctiongenerate_effectiveness_report
Generate test effectiveness report
scripts/track-test-effectiveness.py:111
↓ 1 callersFunctionget_floating_ip_details
(module, rest)
library/digital_ocean_floating_ip.py:174
↓ 1 callersFunctionget_test_variables
Get a comprehensive set of test variables for expression validation.
tests/unit/test_yaml_jinja2_expressions.py:161
↓ 1 callersFunctioninitialise_module
Initialise the module parameter specification.
library/linode_stackscript_v4.py:42
↓ 1 callersFunctioninitialise_module
Initialise the module parameter specification.
library/linode_v4.py:61
↓ 1 callersMethodjson
(self)
library/digital_ocean_floating_ip.py:118
↓ 1 callersFunctionmain
Module entrypoint.
library/linode_stackscript_v4.py:68
↓ 1 callersFunctionmain
()
library/digital_ocean_floating_ip.py:254
↓ 1 callersFunctionmain
Entry point when module is executed directly.
library/x25519_pubkey.py:126
↓ 1 callersFunctionmain
()
library/scaleway_compute.py:647
↓ 1 callersFunctionmain
Module entrypoint.
library/linode_v4.py:93
↓ 1 callersFunctionmain
()
library/lightsail_region_facts.py:72
↓ 1 callersFunctionmain
()
library/gcp_compute_location_info.py:19
↓ 1 callersFunctionmain
Main validation function.
tests/validate_jinja2_templates.py:210
↓ 1 callersFunctionmain
()
tests/integration/mock_modules/command.py:9
↓ 1 callersFunctionmain
()
tests/integration/mock_modules/apt.py:9
↓ 1 callersFunctionmain
()
tests/integration/mock_modules/shell.py:9
↓ 1 callersFunctionmaybe_instance_from_label
Try to retrieve an instance based on a label.
library/linode_v4.py:49
↓ 1 callersFunctionpublic_ip_payload
(compute_api, public_ip)
library/scaleway_compute.py:221
↓ 1 callersFunctionquery_options
(filters)
library/gcp_compute_location_info.py:51
↓ 1 callersFunctionremove_server
(compute_api, server)
library/scaleway_compute.py:305
↓ 1 callersFunctionreturn_if_object
(module, response)
library/gcp_compute_location_info.py:69
↓ 1 callersFunctionrun_tests
Run all tests manually (for non-pytest usage).
tests/test_cloud_init_template.py:229
↓ 1 callersFunctionsave_metrics
Save metrics to JSON for historical tracking
scripts/track-test-effectiveness.py:161
↓ 1 callersFunctionstackscript_available
Try to retrieve a stackscript.
library/linode_stackscript_v4.py:28
↓ 1 callersFunctionstart_server
(compute_api, server)
library/scaleway_compute.py:290
↓ 1 callersMethodtest_indentation_consistency
Test that sshd_config content has consistent indentation.
tests/test_cloud_init_template.py:192
↓ 1 callersFunctiontest_no_double_templating
Test that no YAML files contain double templating patterns.
tests/unit/test_double_templating.py:70
↓ 1 callersFunctiontest_openssl_version_detection
Test that we can detect OpenSSL version for compatibility checks
tests/unit/test_openssl_compatibility.py:43
↓ 1 callersMethodtest_required_sections
Test that all required cloud-init sections are present.
tests/test_cloud_init_template.py:97
↓ 1 callersMethodtest_runcmd_section
Test that runcmd section will restart SSH correctly.
tests/test_cloud_init_template.py:172
↓ 1 callersFunctiontest_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 callersMethodtest_ssh_configuration
Test that SSH configuration is correct.
tests/test_cloud_init_template.py:110
↓ 1 callersMethodtest_user_creation
Test that algo user will be created correctly.
tests/test_cloud_init_template.py:143
↓ 1 callersFunctiontest_valid_patterns_not_flagged
Test that valid templating patterns are not flagged as errors.
tests/unit/test_double_templating.py:122
↓ 1 callersFunctiontest_wireguard_tools_available
Test that WireGuard tools are available for validation
tests/unit/test_wireguard_key_generation.py:17
↓ 1 callersFunctionvalidate_ca_certificate_config
Validate CA certificate configuration in Ansible files (CI mode)
tests/unit/test_openssl_compatibility.py:114
↓ 1 callersFunctionvalidate_ca_certificate_real
Validate actual Ansible-generated CA certificate
tests/unit/test_openssl_compatibility.py:60
↓ 1 callersFunctionvalidate_certificate_chain_config
Validate certificate chain configuration in Ansible files (CI mode)
tests/unit/test_openssl_compatibility.py:492
↓ 1 callersFunctionvalidate_certificate_chain_real
Validate actual Ansible-generated certificate chain
tests/unit/test_openssl_compatibility.py:458
↓ 1 callersFunctionvalidate_client_certificates_config
Validate client certificate configuration in Ansible files (CI mode)
tests/unit/test_openssl_compatibility.py:324
↓ 1 callersFunctionvalidate_client_certificates_real
Validate actual Ansible-generated client certificates
tests/unit/test_openssl_compatibility.py:276
↓ 1 callersFunctionvalidate_pkcs12_files_config
Validate PKCS#12 file configuration in Ansible files (CI mode)
tests/unit/test_openssl_compatibility.py:422
↓ 1 callersFunctionvalidate_pkcs12_files_real
Validate actual Ansible-generated PKCS#12 files
tests/unit/test_openssl_compatibility.py:383
↓ 1 callersFunctionvalidate_server_certificates_config
Validate server certificate configuration in Ansible files (CI mode)
tests/unit/test_openssl_compatibility.py:221
↓ 1 callersFunctionvalidate_server_certificates_real
Validate actual Ansible-generated server certificates
tests/unit/test_openssl_compatibility.py:177
↓ 1 callersFunctionvalidate_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