summaryrefslogtreecommitdiff
path: root/makima/src/daemon/chain/parser.rs
diff options
context:
space:
mode:
Diffstat (limited to 'makima/src/daemon/chain/parser.rs')
-rw-r--r--makima/src/daemon/chain/parser.rs7
1 files changed, 5 insertions, 2 deletions
diff --git a/makima/src/daemon/chain/parser.rs b/makima/src/daemon/chain/parser.rs
index 3851d1f..b32d0f2 100644
--- a/makima/src/daemon/chain/parser.rs
+++ b/makima/src/daemon/chain/parser.rs
@@ -395,7 +395,9 @@ contracts:
fn test_repo_alias() {
let yaml = r#"
name: Repo Chain
-repo: https://github.com/user/project
+repositories:
+ - name: main
+ repository_url: https://github.com/user/project
contracts:
- name: Phase1
tasks:
@@ -403,8 +405,9 @@ contracts:
plan: "Work on repo"
"#;
let chain = parse_chain_yaml(yaml).unwrap();
+ assert_eq!(chain.repositories.len(), 1);
assert_eq!(
- chain.repository_url,
+ chain.repositories[0].repository_url,
Some("https://github.com/user/project".to_string())
);
}