Skip to content

Commit da2787d

Browse files
authored
chore(ci): Vendor cirros image under GitHub releases (#1527)
403 error started to occure very often when functional tests tries to download cirros image from the original location. To workaround this make a draft release with the necessary image. This helps to keep data necessary in the test close to where it is necessary.
1 parent 1b067c2 commit da2787d

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

.github/workflows/release-plz.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
name: Release-plz
1414
environment: release
1515
runs-on: ubuntu-latest
16-
if: github.repository_owner == "gtema"
16+
if: github.repository_owner == 'gtema'
1717
permissions:
1818
id-token: write
1919
pull-requests: write

openstack_cli/tests/image/v2/image/file/roundtrip.rs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -98,10 +98,11 @@ fn extract_filename_from_url(url: &str) -> Option<String> {
9898
async fn image_upload_download_roundtrip() -> Result<(), Box<dyn std::error::Error>> {
9999
let tmp_dir = Builder::new().prefix("data").tempdir()?;
100100
let cirros_ver = "0.6.3";
101-
let target = format!(
102-
"http://download.cirros-cloud.net/{ver}/cirros-{ver}-x86_64-disk.img",
103-
ver = cirros_ver
104-
);
101+
// let target = format!(
102+
// "http://download.cirros-cloud.net/{ver}/cirros-{ver}-x86_64-disk.img",
103+
// ver = cirros_ver
104+
// );
105+
let target = "https://github.com/gtema/openstack/releases/download/internal/cirros-0.6.3-x86_64-disk.img";
105106
let (fname, checksum) = download_with_md5_and_filename(&target, &tmp_dir)
106107
.await
107108
.expect("Download failed");

0 commit comments

Comments
 (0)