Skip to content

Commit

Permalink
fix: update test
Browse files Browse the repository at this point in the history
  • Loading branch information
3benbox committed Apr 2, 2024
1 parent 54298cf commit 54f63d8
Show file tree
Hide file tree
Showing 15 changed files with 18 additions and 20 deletions.
2 changes: 1 addition & 1 deletion operator/src/network/ceramic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -644,7 +644,7 @@ pub fn stateful_set_spec(ns: &str, bundle: &CeramicBundle<'_>) -> StatefulSetSpe
"/ceramic-init/ceramic-init.sh".to_owned(),
]),
env: Some(init_env),
image: Some(bundle.config.image.to_owned()),
image: Some(bundle.config.init_image_name.to_owned()),
image_pull_policy: Some(bundle.config.image_pull_policy.to_owned()),
name: "init-ceramic-config".to_owned(),
resources: Some(ResourceRequirements {
Expand Down
10 changes: 4 additions & 6 deletions operator/src/network/controller.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3193,7 +3193,7 @@ mod tests {
- "value": "/ceramic/local-0"
}
],
"image": "ceramicnetwork/composedb:latest",
"image": "ceramicnetwork/composedb-cli:latestt",
"#]]);
let (testctx, api_handle) = Context::test(mock_rpc_client);
let fakeserver = ApiServerVerifier::new(api_handle);
Expand Down Expand Up @@ -3230,13 +3230,11 @@ mod tests {
"livenessProbe": {
"httpGet": {
"path": "/api/v0/node/healthcheck",
@@ -372,8 +372,8 @@
"value": "/ceramic/local-0"
@@ -373,7 +373,7 @@
}
],
- "image": "ceramicnetwork/composedb:latest",
"image": "ceramicnetwork/composedb-cli:latestt",
- "imagePullPolicy": "Always",
+ "image": "ceramic:foo",
+ "imagePullPolicy": "IfNotPresent",
"name": "init-ceramic-config",
"resources": {
Expand Down Expand Up @@ -3657,7 +3655,7 @@ mod tests {
+ "value": "SOME_ENV_VALUE"
}
],
"image": "ceramicnetwork/composedb:latest",
"image": "ceramicnetwork/composedb-cli:latestt",
"#]]);
let (testctx, api_handle) = Context::test(mock_rpc_client);
let fakeserver = ApiServerVerifier::new(api_handle);
Expand Down
2 changes: 1 addition & 1 deletion operator/src/network/testdata/ceramic_go_ss_1
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ Request {
"value": "/ceramic/local-0"
}
],
"image": "ceramicnetwork/composedb:latest",
"image": "ceramicnetwork/composedb-cli:latestt",
"imagePullPolicy": "Always",
"name": "init-ceramic-config",
"resources": {
Expand Down
2 changes: 1 addition & 1 deletion operator/src/network/testdata/ceramic_ss_1
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ Request {
"value": "/ceramic/local-0"
}
],
"image": "ceramicnetwork/composedb:latest",
"image": "ceramicnetwork/composedb-cli:latestt",
"imagePullPolicy": "Always",
"name": "init-ceramic-config",
"resources": {
Expand Down
2 changes: 1 addition & 1 deletion operator/src/network/testdata/ceramic_ss_weighted_0
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ Request {
"value": "/ceramic/local-0"
}
],
"image": "ceramicnetwork/composedb:latest",
"image": "ceramicnetwork/composedb-cli:latestt",
"imagePullPolicy": "Always",
"name": "init-ceramic-config",
"resources": {
Expand Down
2 changes: 1 addition & 1 deletion operator/src/network/testdata/ceramic_ss_weighted_1
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ Request {
"value": "/ceramic/local-0"
}
],
"image": "ceramicnetwork/composedb:latest",
"image": "ceramicnetwork/composedb-cli:latestt",
"imagePullPolicy": "Always",
"name": "init-ceramic-config",
"resources": {
Expand Down
2 changes: 1 addition & 1 deletion operator/src/network/testdata/ceramic_ss_weighted_2
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ Request {
"value": "/ceramic/local-0"
}
],
"image": "ceramicnetwork/composedb:latest",
"image": "ceramicnetwork/composedb-cli:latestt",
"imagePullPolicy": "Always",
"name": "init-ceramic-config",
"resources": {
Expand Down
2 changes: 1 addition & 1 deletion operator/src/network/testdata/ceramic_ss_weighted_3
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ Request {
"value": "/ceramic/local-0"
}
],
"image": "ceramicnetwork/composedb:latest",
"image": "ceramicnetwork/composedb-cli:latestt",
"imagePullPolicy": "Always",
"name": "init-ceramic-config",
"resources": {
Expand Down
2 changes: 1 addition & 1 deletion operator/src/network/testdata/ceramic_ss_weighted_4
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ Request {
"value": "/ceramic/local-0"
}
],
"image": "ceramicnetwork/composedb:latest",
"image": "ceramicnetwork/composedb-cli:latestt",
"imagePullPolicy": "Always",
"name": "init-ceramic-config",
"resources": {
Expand Down
2 changes: 1 addition & 1 deletion operator/src/network/testdata/ceramic_ss_weighted_5
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ Request {
"value": "/ceramic/local-0"
}
],
"image": "ceramicnetwork/composedb:latest",
"image": "ceramicnetwork/composedb-cli:latestt",
"imagePullPolicy": "Always",
"name": "init-ceramic-config",
"resources": {
Expand Down
2 changes: 1 addition & 1 deletion operator/src/network/testdata/ceramic_ss_weighted_6
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ Request {
"value": "/ceramic/local-0"
}
],
"image": "ceramicnetwork/composedb:latest",
"image": "ceramicnetwork/composedb-cli:latestt",
"imagePullPolicy": "Always",
"name": "init-ceramic-config",
"resources": {
Expand Down
2 changes: 1 addition & 1 deletion operator/src/network/testdata/ceramic_ss_weighted_7
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ Request {
"value": "/ceramic/local-0"
}
],
"image": "ceramicnetwork/composedb:latest",
"image": "ceramicnetwork/composedb-cli:latestt",
"imagePullPolicy": "Always",
"name": "init-ceramic-config",
"resources": {
Expand Down
2 changes: 1 addition & 1 deletion operator/src/network/testdata/ceramic_ss_weighted_8
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ Request {
"value": "/ceramic/local-0"
}
],
"image": "ceramicnetwork/composedb:latest",
"image": "ceramicnetwork/composedb-cli:latestt",
"imagePullPolicy": "Always",
"name": "init-ceramic-config",
"resources": {
Expand Down
2 changes: 1 addition & 1 deletion operator/src/network/testdata/ceramic_ss_weighted_9
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ Request {
"value": "/ceramic/local-0"
}
],
"image": "ceramicnetwork/composedb:latest",
"image": "ceramicnetwork/composedb-cli:latestt",
"imagePullPolicy": "Always",
"name": "init-ceramic-config",
"resources": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ Request {
"value": "/ceramic/local-0"
}
],
"image": "ceramicnetwork/composedb:latest",
"image": "ceramicnetwork/composedb-cli:latestt",
"imagePullPolicy": "Always",
"name": "init-ceramic-config",
"resources": {
Expand Down

0 comments on commit 54f63d8

Please sign in to comment.