Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
bkhouri committed Nov 21, 2024
1 parent 023ba9a commit a3ff42c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 17 deletions.
4 changes: 1 addition & 3 deletions Tests/PackageSigningTests/SigningEntityTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,7 @@ struct SigningEntityTests {
}

@Test(
.enabledOn(platform: .MacOS),
.enableIfRealSigningIdentityTestEnabled,
.enableIfEnvVarSet("REAL_SIGNING_IDENTITY_LABEL")
.enabled(if: isMacOS() && isRealSigningIdentityTestEnabled() && isEnvironmentVariableSet("REAL_SIGNING_IDENTITY_LABEL"))
)
func fromKeychainCertificate() async throws {
let label = try #require(Environment.current["REAL_SIGNING_IDENTITY_LABEL"])
Expand Down
4 changes: 1 addition & 3 deletions Tests/PackageSigningTests/SigningIdentityTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,7 @@ struct SigningIdentityTests {
}

@Test(
.enabledOn(platform: .MacOS),
.enableIfRealSigningIdentityTestEnabled,
.enableIfEnvVarSet("REAL_SIGNING_IDENTITY_LABEL")
.enabled(if: isMacOS() && isRealSigningIdentityTestEnabled() && isEnvironmentVariableSet("REAL_SIGNING_IDENTITY_LABEL"))
)
func testSigningIdentityFromKeychain() async throws {
let label = try #require(Environment.current["REAL_SIGNING_IDENTITY_LABEL"])
Expand Down
16 changes: 5 additions & 11 deletions Tests/PackageSigningTests/SigningTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -616,7 +616,7 @@ struct SigningTests {
}

@Test(
.enableIfRealSigningIdentityTestEnabled
.enabled(if: isRealSigningIdentityTestEnabled())
)
func cMSEndToEndWithRSAKeyADPCertificate() async throws {

Expand Down Expand Up @@ -676,7 +676,7 @@ struct SigningTests {
}

@Test(
.enableIfRealSigningIdentityTestEnabled
.enabled(if: isRealSigningIdentityTestEnabled())
)
func cMSEndToEndWithECKeyADPCertificate() async throws {
let keyAndCertChain = try ecADPKeyAndCertChain()
Expand Down Expand Up @@ -735,9 +735,7 @@ struct SigningTests {


@Test(
.enabledOn(platform: .MacOS),
.enableIfRealSigningIdentityTestEnabled,
.enableIfEnvVarSet("REAL_SIGNING_IDENTITY_LABEL")
.enabled(if: isMacOS() && isRealSigningIdentityTestEnabled() && isEnvironmentVariableSet("REAL_SIGNING_IDENTITY_LABEL"))
)
func testCMS1_0_0EndToEndWithADPSigningIdentityFromKeychain() async throws {
let label = try #require(
Expand Down Expand Up @@ -793,9 +791,7 @@ struct SigningTests {
}

@Test(
.enabledOn(platform: .MacOS),
.enableIfRealSigningIdentityTestEnabled,
.enableIfEnvVarSet("REAL_SIGNING_IDENTITY_LABEL")
.enabled(if: isMacOS() && isRealSigningIdentityTestEnabled() && isEnvironmentVariableSet("REAL_SIGNING_IDENTITY_LABEL"))
)
func testCMSEndToEndWithECKeyADPSigningIdentityFromKeychain() async throws {
let label = try #require(
Expand Down Expand Up @@ -849,9 +845,7 @@ struct SigningTests {
}

@Test(
.enabledOn(platform: .MacOS),
.enableIfRealSigningIdentityTestEnabled,
.enableIfEnvVarSet("REAL_SIGNING_IDENTITY_LABEL")
.enabled(if: isMacOS() && isRealSigningIdentityTestEnabled() && isEnvironmentVariableSet("REAL_SIGNING_IDENTITY_LABEL"))
)
func MSEndToEndWithRSAKeyADPSigningIdentityFromKeychain() async throws {
let label = try #require(
Expand Down

0 comments on commit a3ff42c

Please sign in to comment.