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