Dagger
Search

tests

Package main is the certificate-management-tests Dagger module.

Installation

dagger install github.com/z5labs/devex/daggerverse/certificate-management/tests@9ebfb29b95cb654ed5d00d1e595bcf710c2a7318

Entrypoint

Return Type
Tests
Example
dagger -m github.com/z5labs/devex/daggerverse/certificate-management/tests@9ebfb29b95cb654ed5d00d1e595bcf710c2a7318 call \
func (m *MyModule) Example() *dagger.Tests  {
	return dag.
			Tests()
}
@function
def example() -> dagger.Tests:
	return (
		dag.tests()
	)
@func()
example(): Tests {
	return dag
		.tests()
}

Types

Tests 🔗

all() 🔗

All runs every certificate-management round-trip test in parallel.

Return Type
Void !
Example
dagger -m github.com/z5labs/devex/daggerverse/certificate-management/tests@9ebfb29b95cb654ed5d00d1e595bcf710c2a7318 call \
 all
func (m *MyModule) Example(ctx context.Context)   {
	return dag.
			Tests().
			All(ctx)
}
@function
async def example() -> None:
	return await (
		dag.tests()
		.all()
	)
@func()
async example(): Promise<void> {
	return dag
		.tests()
		.all()
}

createCaProducesUsableKeyStore() 🔗

CreateCaProducesUsableKeyStore checks that a freshly created CA’s keystore decodes successfully under its bound password and yields a CA-flagged certificate.

Return Type
Void !
Example
dagger -m github.com/z5labs/devex/daggerverse/certificate-management/tests@9ebfb29b95cb654ed5d00d1e595bcf710c2a7318 call \
 create-ca-produces-usable-key-store
func (m *MyModule) Example(ctx context.Context)   {
	return dag.
			Tests().
			Createcaproducesusablekeystore(ctx)
}
@function
async def example() -> None:
	return await (
		dag.tests()
		.createcaproducesusablekeystore()
	)
@func()
async example(): Promise<void> {
	return dag
		.tests()
		.createCaProducesUsableKeyStore()
}

issueClientCertificateChainsToCa() 🔗

Return Type
Void !
Example
dagger -m github.com/z5labs/devex/daggerverse/certificate-management/tests@9ebfb29b95cb654ed5d00d1e595bcf710c2a7318 call \
 issue-client-certificate-chains-to-ca
func (m *MyModule) Example(ctx context.Context)   {
	return dag.
			Tests().
			Issueclientcertificatechainstoca(ctx)
}
@function
async def example() -> None:
	return await (
		dag.tests()
		.issueclientcertificatechainstoca()
	)
@func()
async example(): Promise<void> {
	return dag
		.tests()
		.issueClientCertificateChainsToCa()
}

issueMutualTlsCertificateChainsToCa() 🔗

Return Type
Void !
Example
dagger -m github.com/z5labs/devex/daggerverse/certificate-management/tests@9ebfb29b95cb654ed5d00d1e595bcf710c2a7318 call \
 issue-mutual-tls-certificate-chains-to-ca
func (m *MyModule) Example(ctx context.Context)   {
	return dag.
			Tests().
			Issuemutualtlscertificatechainstoca(ctx)
}
@function
async def example() -> None:
	return await (
		dag.tests()
		.issuemutualtlscertificatechainstoca()
	)
@func()
async example(): Promise<void> {
	return dag
		.tests()
		.issueMutualTlsCertificateChainsToCa()
}

issueServerCertificateChainsToCa() 🔗

Return Type
Void !
Example
dagger -m github.com/z5labs/devex/daggerverse/certificate-management/tests@9ebfb29b95cb654ed5d00d1e595bcf710c2a7318 call \
 issue-server-certificate-chains-to-ca
func (m *MyModule) Example(ctx context.Context)   {
	return dag.
			Tests().
			Issueservercertificatechainstoca(ctx)
}
@function
async def example() -> None:
	return await (
		dag.tests()
		.issueservercertificatechainstoca()
	)
@func()
async example(): Promise<void> {
	return dag
		.tests()
		.issueServerCertificateChainsToCa()
}

issueServerCertificateWithEcdsaKey() 🔗

IssueServerCertificateWithEcdsaKey exercises the caller-chosen-algorithm capability by signing the CA and leaf with ECDSA P-256 keys.

Return Type
Void !
Example
dagger -m github.com/z5labs/devex/daggerverse/certificate-management/tests@9ebfb29b95cb654ed5d00d1e595bcf710c2a7318 call \
 issue-server-certificate-with-ecdsa-key
func (m *MyModule) Example(ctx context.Context)   {
	return dag.
			Tests().
			Issueservercertificatewithecdsakey(ctx)
}
@function
async def example() -> None:
	return await (
		dag.tests()
		.issueservercertificatewithecdsakey()
	)
@func()
async example(): Promise<void> {
	return dag
		.tests()
		.issueServerCertificateWithEcdsaKey()
}

issueServerCertificateWithEd25519Key() 🔗

IssueServerCertificateWithEd25519Key exercises the caller-chosen-algorithm capability by signing the CA and leaf with Ed25519 keys.

Return Type
Void !
Example
dagger -m github.com/z5labs/devex/daggerverse/certificate-management/tests@9ebfb29b95cb654ed5d00d1e595bcf710c2a7318 call \
 issue-server-certificate-with-ed-2-5-5-1-9-key
func (m *MyModule) Example(ctx context.Context)   {
	return dag.
			Tests().
			Issueservercertificatewithed25519key(ctx)
}
@function
async def example() -> None:
	return await (
		dag.tests()
		.issueservercertificatewithed25519key()
	)
@func()
async example(): Promise<void> {
	return dag
		.tests()
		.issueServerCertificateWithEd25519Key()
}

loadCertificateAuthorityRoundTrip() 🔗

LoadCertificateAuthorityRoundTrip creates a CA, exports its keystore as a file, reloads it via LoadCertificateAuthority, then issues a server cert from the reloaded CA and verifies it chains to the original.

Return Type
Void !
Example
dagger -m github.com/z5labs/devex/daggerverse/certificate-management/tests@9ebfb29b95cb654ed5d00d1e595bcf710c2a7318 call \
 load-certificate-authority-round-trip
func (m *MyModule) Example(ctx context.Context)   {
	return dag.
			Tests().
			Loadcertificateauthorityroundtrip(ctx)
}
@function
async def example() -> None:
	return await (
		dag.tests()
		.loadcertificateauthorityroundtrip()
	)
@func()
async example(): Promise<void> {
	return dag
		.tests()
		.loadCertificateAuthorityRoundTrip()
}

loadKeyStoreFromPkcs12RoundTrip() 🔗

LoadKeyStoreFromPkcs12RoundTrip exercises LoadKeyStoreFromPkcs12 by re-wrapping an issued cert’s keystore and asserting its PKCS#12 still decodes with the original password.

Return Type
Void !
Example
dagger -m github.com/z5labs/devex/daggerverse/certificate-management/tests@9ebfb29b95cb654ed5d00d1e595bcf710c2a7318 call \
 load-key-store-from-pkcs-1-2-round-trip
func (m *MyModule) Example(ctx context.Context)   {
	return dag.
			Tests().
			Loadkeystorefrompkcs12roundtrip(ctx)
}
@function
async def example() -> None:
	return await (
		dag.tests()
		.loadkeystorefrompkcs12roundtrip()
	)
@func()
async example(): Promise<void> {
	return dag
		.tests()
		.loadKeyStoreFromPkcs12RoundTrip()
}

loadTrustStoreFromPkcs12RoundTrip() 🔗

LoadTrustStoreFromPkcs12RoundTrip exercises LoadTrustStoreFromPkcs12 by re-wrapping a CA’s truststore.

Return Type
Void !
Example
dagger -m github.com/z5labs/devex/daggerverse/certificate-management/tests@9ebfb29b95cb654ed5d00d1e595bcf710c2a7318 call \
 load-trust-store-from-pkcs-1-2-round-trip
func (m *MyModule) Example(ctx context.Context)   {
	return dag.
			Tests().
			Loadtruststorefrompkcs12roundtrip(ctx)
}
@function
async def example() -> None:
	return await (
		dag.tests()
		.loadtruststorefrompkcs12roundtrip()
	)
@func()
async example(): Promise<void> {
	return dag
		.tests()
		.loadTrustStoreFromPkcs12RoundTrip()
}