Skip to content

Feat: Implement Test Cases for Sub-CA Certificate Operations: Issue, Retrieve Information, Delete, and Retrieve PEM/DER Content#116

Open
sambodirce wants to merge 52 commits intodevelopfrom
feat/issue-tls-server-cert
Open

Feat: Implement Test Cases for Sub-CA Certificate Operations: Issue, Retrieve Information, Delete, and Retrieve PEM/DER Content#116
sambodirce wants to merge 52 commits intodevelopfrom
feat/issue-tls-server-cert

Conversation

@sambodirce
Copy link
Collaborator

add tests:

  • Issue sub CA certificate
  • Get Certificate Information
  • Delete certificate
  • Get Certificate pem
  • Get Certificate DER content

Copy link
Collaborator

@snhane snhane left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Check out the comment about the duplicate function.
And also review the inclusion of .pyc files

Comment on lines +18 to +38
def generate_user_telephone(country_codes):
country_code = random.choice(country_codes)

if country_code == "Mozambique":
# Mozambique telephone numbers have the format +2588XXXXXXX
number = "+2588" + "".join([str(random.randint(0, 9)) for _ in range(7)])
elif country_code == "South Africa":
# South Africa telephone numbers have the format +2783XXXXXXX
number = "+2783" + "".join([str(random.randint(0, 9)) for _ in range(7)])
elif country_code == "Spain":
# Spain telephone numbers have the format +34XXXXXXXXX
number = "+34" + "".join([str(random.randint(0, 9)) for _ in range(9)])
elif country_code == "EUA":
# USA telephone numbers have the format +1-XXX-XXX-XXXX
number = "+1-" + "".join([str(random.randint(0, 9)) for _ in range(3)]) + "-" + "".join(
[str(random.randint(0, 9)) for _ in range(3)]) + "-" + "".join(
[str(random.randint(0, 9)) for _ in range(4)])
else:
number = "Country code not recognized."

return number
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • This function is being repeated.
    If possible could be defined in one place only

@snhane
Copy link
Collaborator

snhane commented Mar 11, 2024

@sambodirce & @emjunior258
can we merge this branch so that we have new test reports?

emjunior258 and others added 26 commits April 28, 2024 08:07
temporarily allow release of images in any pipeline
temporarily allow release of images in any pipeline
2
temporarily allow release of images in any pipeline
3
temporarily allow release of images in any pipeline
- use meta tags
issue tls cert
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants