Skip to content

Commit 762863d

Browse files
author
Aakash Shah
committed
Fix tests asserting user is locked
Locked users are signified by the ! or !! [#171754230]
1 parent b683818 commit 762863d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/os-conf-acceptance-tests/user_add_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ var _ = Describe("UserAdd", func() {
2222
By("adding a password for the password user", func() {
2323
session := boshSSH("os-conf/0", "sudo cat /etc/shadow")
2424
Eventually(session, 30*time.Second).Should(gbytes.Say(`test-user-password:\$6\$kMBogqsbx\$70Y2m/mwYR8vKZqR9RD2UUPoWz8mJoBiH8IAbvH2v6LCjxJgB3kDtwR8QttqtI/WSqCsFy4qXZaKPM64sZMwK\.:\d+:1:99999:7:::`))
25-
Eventually(session, 30*time.Second).Should(gbytes.Say(`test-user-key::\d+:1:99999:7:::`))
25+
Eventually(session, 30*time.Second).Should(gbytes.Say(`test-user-key:!:\d+:1:99999:7:::`))
2626
Eventually(session, 30*time.Second).Should(gbytes.Say(`test-user-key-and-password:\$6\$kMBogqsbx\$70Y2m/mwYR8vKZqR9RD2UUPoWz8mJoBiH8IAbvH2v6LCjxJgB3kDtwR8QttqtI/WSqCsFy4qXZaKPM64sZMwK\.:\d+:1:99999:7:::`))
2727
Eventually(session, 30*time.Second).Should(gexec.Exit(0))
2828
})

0 commit comments

Comments
 (0)