-
Notifications
You must be signed in to change notification settings - Fork 79
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixes #26340: Write a new test framework for the Rudder methods #6174
base: branches/rudder/8.3
Are you sure you want to change the base?
Fixes #26340: Write a new test framework for the Rudder methods #6174
Conversation
Commit modified |
ccd0318
to
001d061
Compare
PR updated with a new commit |
policies/lib/Cargo.toml
Outdated
@@ -0,0 +1,18 @@ | |||
[package] | |||
name = "rudder-methods" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd prefer to have the same name as the folder. We could rename it to "methods", or rename the library to "lib".
@@ -0,0 +1,43 @@ | |||
extern crate rudderc; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no need for this in edition 2021
} | ||
} | ||
|
||
#[allow(dead_code)] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you can put a #![allow(dead_code)]
at the crate root
PR updated with a new commit |
1 similar comment
PR updated with a new commit |
policies/lib/Cargo.toml
Outdated
|
||
[dependencies] | ||
serde = { version = "1", features = ["derive"] } | ||
rudderc = { path = "../rudderc", features = ["embedded-lib"] } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rudderc = { path = "../rudderc", features = ["embedded-lib"] } | |
rudderc = { path = "../rudderc" } |
I don't think we want this feature here.
PR updated with a new commit |
7 similar comments
PR updated with a new commit |
PR updated with a new commit |
PR updated with a new commit |
PR updated with a new commit |
PR updated with a new commit |
PR updated with a new commit |
PR updated with a new commit |
PR rebased |
143d52b
to
0249ddf
Compare
PR updated with a new commit |
PR rebased |
6d529e1
to
a801eed
Compare
@@ -146,13 +147,38 @@ pub fn cfengine_canonify_condition(c: &str) -> String { | |||
} | |||
} | |||
|
|||
#[derive(Clone, Debug, PartialEq, Eq, Deserialize, Serialize, Hash)] | |||
pub struct CfEngineDatastate { | |||
#[serde(rename = "classes")] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no need for rename if the name is the same
PR updated with a new commit |
1 similar comment
PR updated with a new commit |
PR updated with a new commit |
This PR is not mergeable to upper versions. |
OK, squash merging this PR |
a91fd43
to
4ee491a
Compare
Needs a rebase. |
PR rebased |
4ee491a
to
3f27451
Compare
PR rebased |
3f27451
to
6879ff1
Compare
Fixes #26340: Write a new test framework for the Rudder methods
PR updated with a new commit |
https://issues.rudder.io/issues/26340