File tree 5 files changed +8
-8
lines changed
docs/3-revenge-of-the-automated-testing
5 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 12
12
13
13
``` bash
14
14
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
16
16
```
17
17
18
18
You should get an output like this:
19
19
< div class=" highlight" style=" background: #f7f7f7" >
20
20
< 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
22
22
Enter password for private key:
23
23
Enter again:
24
24
Successfully created secret cosign in namespace < TEAM_NAME> -ci-cd
Original file line number Diff line number Diff line change 30
30
script {
31
31
sh '''
32
32
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
34
34
' ''
35
35
}
36
36
}
59
59
` ` ` bash
60
60
cd /projects/pet-battle
61
61
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
63
63
` ` `
64
64
65
65
The output should be like :
Original file line number Diff line number Diff line change 39
39
chmod -R 775 /tmp/cosign
40
40
41
41
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
43
43
EOF
44
44
```
45
45
97
97
```bash
98
98
cd /projects/pet-battle-api
99
99
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
101
101
```
102
102
103
103
The output should be like:
Original file line number Diff line number Diff line change 49
49
class getCat(HttpUser):
50
50
@task
51
51
def cat(self):
52
- self.client.get("/home")
52
+ self.client.get("/home", verify=False )
53
53
54
54
@events.quitting.add_listener
55
55
def _(environment, **kw):
Original file line number Diff line number Diff line change 20
20
class getCat(HttpUser):
21
21
@task
22
22
def cat(self):
23
- self.client.get("/cats")
23
+ self.client.get("/cats", verify=False )
24
24
25
25
@events.quitting.add_listener
26
26
def _(environment, **kw):
You can’t perform that action at this time.
0 commit comments