Skip to content

Commit

Permalink
updated tests
Browse files Browse the repository at this point in the history
Signed-off-by: shruti2522 <[email protected]>
  • Loading branch information
shruti2522 committed May 20, 2024
1 parent 19d2d58 commit 848a019
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion kclvm/tools/src/LSP/src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1667,7 +1667,6 @@ fn konfig_hover_test_main() {
})
.unwrap();

// Schema definition hover
let pos = KCLPos {
filename: main_path_str.clone(),
line: 6,
Expand All @@ -1685,6 +1684,11 @@ fn konfig_hover_test_main() {
language: "KCL".to_string(),
value: "Server is abstaction of Deployment and StatefulSet.".to_string(),
}),
MarkedString::LanguageString(LanguageString {
language: "KCL".to_string(),
value: "Attributes:\n\nname?: str\n\nworkloadType: str(Deployment) | str(StatefulSet)\n\nrenderType?: str(Server) | str(KubeVelaApplication)\n\nreplicas: int\n\nimage: str\n\nschedulingStrategy: SchedulingStrategy\n\nmainContainer: Main\n\nsidecarContainers?: [Sidecar]\n\ninitContainers?: [Sidecar]\n\nuseBuiltInLabels?: bool\n\nlabels?: {str:str}\n\nannotations?: {str:str}\n\nuseBuiltInSelector?: bool\n\nselector?: {str:str}\n\npodMetadata?: ObjectMeta\n\nvolumes?: [Volume]\n\nneedNamespace?: bool\n\nenableMonitoring?: bool\n\nconfigMaps?: [ConfigMap]\n\nsecrets?: [Secret]\n\nservices?: [Service]\n\ningresses?: [Ingress]\n\nserviceAccount?: ServiceAccount\n\nstorage?: ObjectStorage\n\ndatabase?: DataBase".to_string(),
}),

// Add other expected language strings here
];
assert_eq!(expect, arr);
Expand Down

0 comments on commit 848a019

Please sign in to comment.