File tree Expand file tree Collapse file tree 5 files changed +8
-8
lines changed
docs/3-revenge-of-the-automated-testing Expand file tree Collapse file tree 5 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 1212
1313 ``` bash
1414 cd /tmp
15- cosign generate-key-pair k8s://${TEAM_NAME} -ci-cd/${TEAM_NAME} -cosign
15+ cosign generate-key-pair k8s://${TEAM_NAME} -ci-cd/${TEAM_NAME} -cosign --allow-insecure-registry
1616 ```
1717
1818 You should get an output like this:
1919 < div class=" highlight" style=" background: #f7f7f7" >
2020 < pre><code class=" language-bash" >
21- $ cosign generate-key-pair k8s://${TEAM_NAME} -ci-cd/${TEAM_NAME} -cosign
21+ $ cosign generate-key-pair k8s://${TEAM_NAME} -ci-cd/${TEAM_NAME} -cosign --allow-insecure-registry
2222 Enter password for private key:
2323 Enter again:
2424 Successfully created secret cosign in namespace < TEAM_NAME> -ci-cd
Original file line number Diff line number Diff line change 3030 script {
3131 sh '''
3232 oc registry login
33- cosign sign -key k8s://${TEAM_NAME}-ci-cd/${TEAM_NAME}-cosign ` oc registry info`/${DESTINATION_NAMESPACE}/${APP_NAME}:${VERSION}
33+ cosign sign -key k8s://${TEAM_NAME}-ci-cd/${TEAM_NAME}-cosign ` oc registry info`/${DESTINATION_NAMESPACE}/${APP_NAME}:${VERSION} --allow-insecure-registry
3434 ' ''
3535 }
3636 }
5959 ` ` ` bash
6060 cd /projects/pet-battle
6161 oc registry login $(oc registry info) --insecure=true
62- cosign verify --key k8s://<TEAM_NAME>-ci-cd/<TEAM_NAME>-cosign default-route-openshift-image-registry.<CLUSTER_DOMAIN>/<TEAM_NAME>-test/pet-battle:1.2.0
62+ cosign verify --key k8s://<TEAM_NAME>-ci-cd/<TEAM_NAME>-cosign default-route-openshift-image-registry.<CLUSTER_DOMAIN>/<TEAM_NAME>-test/pet-battle:1.2.0 --allow-insecure-registry
6363 ` ` `
6464
6565 The output should be like :
Original file line number Diff line number Diff line change 3939 chmod -R 775 /tmp/cosign
4040
4141 oc registry login
42- /tmp/cosign sign -key k8s://$(params.TEAM_NAME)-ci-cd/$(params.TEAM_NAME)-cosign `oc registry info`/$(params.TEAM_NAME)-test/$(params.APPLICATION_NAME):$(params.VERSION)
42+ /tmp/cosign sign -key k8s://$(params.TEAM_NAME)-ci-cd/$(params.TEAM_NAME)-cosign `oc registry info`/$(params.TEAM_NAME)-test/$(params.APPLICATION_NAME):$(params.VERSION) --allow-insecure-registry
4343 EOF
4444 ```
4545
9797 ```bash
9898 cd /projects/pet-battle-api
9999 oc registry login $(oc registry info) --insecure=true
100- cosign verify --key k8s://<TEAM_NAME>-ci-cd/<TEAM_NAME>-cosign default-route-openshift-image-registry.<CLUSTER_DOMAIN>/<TEAM_NAME>-test/pet-battle-api:1.3.1
100+ cosign verify --key k8s://<TEAM_NAME>-ci-cd/<TEAM_NAME>-cosign default-route-openshift-image-registry.<CLUSTER_DOMAIN>/<TEAM_NAME>-test/pet-battle-api:1.3.1 --allow-insecure-registry
101101 ```
102102
103103 The output should be like:
Original file line number Diff line number Diff line change 4949 class getCat(HttpUser):
5050 @task
5151 def cat(self):
52- self.client.get("/home")
52+ self.client.get("/home", verify=False )
5353
5454 @events.quitting.add_listener
5555 def _(environment, **kw):
Original file line number Diff line number Diff line change 2020 class getCat(HttpUser):
2121 @task
2222 def cat(self):
23- self.client.get("/cats")
23+ self.client.get("/cats", verify=False )
2424
2525 @events.quitting.add_listener
2626 def _(environment, **kw):
You can’t perform that action at this time.
0 commit comments