Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
Signed-off-by: Itxaka <[email protected]>
  • Loading branch information
Itxaka committed Oct 18, 2024
1 parent 7821e8e commit c765897
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 1 addition & 2 deletions pkg/plugins/user_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -212,8 +212,7 @@ last:x:999:999:Test user for uid:/:/usr/bin/nologin
Expect(foo.HomeDir()).To(Equal("/run/foo"))
Expect(foo.Shell()).To(Equal("/bin/bash"))
Expect(foo.Password()).To(Equal("x"))
// we specifically set this UID()
Expect(foo.UID()).To(Equal(5000))
Expect(foo.UID()).To(Equal(1000))

})

Expand Down
2 changes: 0 additions & 2 deletions pkg/schema/schema_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,6 @@ stages:
users:
- name: "bar"
passwd: "foo"
uid: "1002"
lock_passwd: true
groups:
- sudo
Expand All @@ -113,7 +112,6 @@ write_files:
owner: "bar"
`)
Expect(len(yipConfig.Stages)).To(Equal(3))
Expect(yipConfig.Stages["boot"][0].Users["bar"].UID).To(Equal("1002"))
Expect(yipConfig.Stages["boot"][0].Users["bar"].PasswordHash).To(Equal("foo"))
Expect(yipConfig.Stages["boot"][0].SSHKeys).To(Equal(map[string][]string{"bar": {"faaapploo", "asdd"}}))
Expect(yipConfig.Stages["boot"][0].Files[0].Path).To(Equal("/foo/bar"))
Expand Down

0 comments on commit c765897

Please sign in to comment.