Skip to content

Commit

Permalink
Re-add credentials writing mock
Browse files Browse the repository at this point in the history
  • Loading branch information
skazi0 committed Nov 30, 2021
1 parent 54c0185 commit 415b24c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/registration_spec.rb
Expand Up @@ -16,6 +16,7 @@
reg_code = "reg_code"
target_distro = "sles-12-x86_64"

expect(SUSE::Connect::YaST).to receive(:create_credentials_file)
expect(SUSE::Connect::YaST).to(receive(:announce_system)
.with(hash_including(token: reg_code), target_distro)
.and_return([username, password]))
Expand Down

0 comments on commit 415b24c

Please sign in to comment.