-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "Create org as part of new user creation in tests"
This reverts commit b2e9bf2.
- Loading branch information
Showing
6 changed files
with
2 additions
and
94 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -379,7 +379,7 @@ func (s *Session) CreateNewUser() (string, string) { | |
password := uid.String()[8:] | ||
email := fmt.Sprintf("%[email protected]", username) | ||
|
||
p := s.Spawn("auth", "signup", "--prompt") | ||
p := s.Spawn(tagsuite.Auth, "signup", "--prompt") | ||
|
||
p.Expect("I accept") | ||
p.SendLine("") | ||
|
@@ -396,16 +396,9 @@ func (s *Session) CreateNewUser() (string, string) { | |
|
||
s.users = append(s.users, username) | ||
|
||
s.CreateOrg(username) // Many of our tests rely on this implicitly also creating an org as that's how the API used to behave | ||
|
||
return username, password | ||
} | ||
|
||
func (s *Session) CreateOrg(name string) { | ||
p := s.Spawn("organizations", "add", name) | ||
p.ExpectExitCode(0) | ||
} | ||
|
||
// NotifyProjectCreated indicates that the given project was created on the Platform and needs to | ||
// be deleted when the session is closed. | ||
// This only needs to be called for projects created by PersistentUsername, not projects created by | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters