|
@@ 155-172 (lines=18) @@
|
| 152 |
|
} |
| 153 |
|
} |
| 154 |
|
|
| 155 |
|
public function testWillAcceptSignedAndTrustedPackages() : void |
| 156 |
|
{ |
| 157 |
|
$gpgHomeDirectory = $this->makeGpgHomeDirectory(); |
| 158 |
|
|
| 159 |
|
$vendorName = 'Mr. Magoo'; |
| 160 |
|
$vendorEmail = '[email protected]'; |
| 161 |
|
$vendorKey = $this->makeKey($gpgHomeDirectory, $vendorEmail, $vendorName); |
| 162 |
|
$vendorDir = $this->makeVendorDirectory(); |
| 163 |
|
$vendor1 = $this->makeDependencyGitRepository($vendorDir, 'vendor1/package1', $vendorEmail, $vendorName); |
| 164 |
|
|
| 165 |
|
$this->signDependency($vendor1, $gpgHomeDirectory, $vendorKey); |
| 166 |
|
|
| 167 |
|
$this->configureCorrectComposerSetup(); |
| 168 |
|
|
| 169 |
|
putenv('GNUPGHOME=' . $gpgHomeDirectory); |
| 170 |
|
|
| 171 |
|
Verify::verify($this->event); |
| 172 |
|
} |
| 173 |
|
|
| 174 |
|
public function testWillRejectPackageSignedWithImportedButUnTrustedKey() : void |
| 175 |
|
{ |
|
@@ 304-321 (lines=18) @@
|
| 301 |
|
Verify::verify($this->event); |
| 302 |
|
} |
| 303 |
|
|
| 304 |
|
public function testWillAcceptSignedAndTrustedTaggedPackages() : void |
| 305 |
|
{ |
| 306 |
|
$gpgHomeDirectory = $this->makeGpgHomeDirectory(); |
| 307 |
|
|
| 308 |
|
$vendorName = 'Mr. Magoo'; |
| 309 |
|
$vendorEmail = '[email protected]'; |
| 310 |
|
$vendorKey = $this->makeKey($gpgHomeDirectory, $vendorEmail, $vendorName); |
| 311 |
|
$vendorDir = $this->makeVendorDirectory(); |
| 312 |
|
$vendor1 = $this->makeDependencyGitRepository($vendorDir, 'vendor1/package1', $vendorEmail, $vendorName); |
| 313 |
|
|
| 314 |
|
$this->createDependencySignedTag($vendor1, $gpgHomeDirectory, $vendorKey); |
| 315 |
|
|
| 316 |
|
$this->configureCorrectComposerSetup(); |
| 317 |
|
|
| 318 |
|
putenv('GNUPGHOME=' . $gpgHomeDirectory); |
| 319 |
|
|
| 320 |
|
Verify::verify($this->event); |
| 321 |
|
} |
| 322 |
|
|
| 323 |
|
public function testWillRejectUnSignedCommits() : void |
| 324 |
|
{ |