Skip to content

Commit

Permalink
chore: fix the CI, add 2024.2 to the functional tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dtantsur committed Oct 24, 2024
1 parent c5174c3 commit bff5323
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 12 deletions.
11 changes: 4 additions & 7 deletions .github/workflows/functional.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,15 @@ jobs:
openstack_version: ["master"]
ubuntu_version: ["22.04"]
include:
- name: "dolmatian"
openstack_version: "stable/2024.2"
ubuntu_version: "22.04"
- name: "caracal"
openstack_version: "stable/2024.1"
ubuntu_version: "22.04"
- name: "bobcat"
openstack_version: "stable/2023.2"
ubuntu_version: "22.04"
- name: "antelope"
openstack_version: "stable/2023.1"
ubuntu_version: "22.04"
- name: "zed"
openstack_version: "stable/zed"
ubuntu_version: "22.04"
runs-on: ubuntu-${{ matrix.ubuntu_version }}
name: Deploy OpenStack ${{ matrix.name }} and run examples
steps:
Expand All @@ -46,7 +43,7 @@ jobs:
if: always()
- name: Upload logs artifacts
if: always()
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: functional-${{ matrix.name }}
path: /tmp/devstack-logs/*
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
rust: [stable, nightly, 1.65.0]
rust: [stable, nightly, 1.71.0]
flags:
- ""
- "--no-default-features"
Expand All @@ -25,7 +25,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
rust: [stable, nightly, 1.65.0]
rust: [stable, nightly, 1.71.0]
steps:
- uses: actions/checkout@v4
- name: Install Rust
Expand Down
2 changes: 1 addition & 1 deletion src/common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ where
}

#[cfg(test)]
pub mod test {
pub(crate) mod test {
use serde::{Deserialize, Serialize};
use serde_json;

Expand Down
3 changes: 2 additions & 1 deletion src/endpointfilters.rs
Original file line number Diff line number Diff line change
Expand Up @@ -307,13 +307,14 @@ impl EndpointFilters {
pub mod test {
use std::collections::hash_map::DefaultHasher;
use std::hash::{Hash, Hasher};
use std::mem::size_of;

use super::{InterfaceType, ValidInterfaces};
use InterfaceType::*;

#[test]
fn test_valid_interfaces_basics() {
assert_eq!(std::mem::size_of::<ValidInterfaces>(), 4);
assert_eq!(size_of::<ValidInterfaces>(), 4);

let empty = ValidInterfaces::empty();
assert_eq!(empty.len(), 0);
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
//!
//! # Requirements
//!
//! This crate requires Rust 2021 edition and rustc version 1.65.0 or newer.
//! This crate requires Rust 2021 edition and rustc version 1.71.0 or newer.
//!
//! OpenStack releases starting with Train are officially supported, although support for
//! releases older than 1.5 years is best-effort and may be dropped without a prior warning
Expand Down

0 comments on commit bff5323

Please sign in to comment.